User's Manual
Table Of Contents
- HP Process Resource Manager User Guide
- Contents
- Preface
- 1 Overview
- 2 Understanding how PRM manages resources
- 3 PRM configuration planning
- 4 Setting up PRM
- 5 Using PRM with HP System Management Homepage (SMH)
- 6 Using PRM with HP Systems Insight Manager (SIM)
- 7 Configuring and enabling PRM on the command line
- Quick start to using PRM’s command-line interface
- Configuring PRM
- The PRM configuration file
- Configuration tips and requirements
- Specifying PRM groups/controlling CPU resource use
- Controlling memory use
- Controlling applications
- Specifying PRM users
- Assigning secure compartments to PRM groups
- Assigning Unix groups to PRM groups
- Checking the configuration file
- Loading the PRM configuration
- Enabling resource managers
- Updating the configuration
- 8 Fine-tuning your PRM configuration
- 9 Administering PRM
- Moving processes between PRM groups
- Displaying application filename matches
- Displaying netgroup expansions
- Displaying accessible PRM groups
- Displaying state and configuration information
- Displaying application and configuration information
- Setting the memory manager’s polling interval
- Setting the application manager’s polling interval
- Disabling PRM
- Resetting PRM
- Monitoring PRM groups
- Logging PRM memory messages
- Logging PRM application messages
- Displaying groups’ allocated and used resources
- Displaying user information
- Displaying available memory to determine number of shares
- Displaying number of cores to determine number of shares
- Displaying past process information
- Displaying current process information
- Monitoring PRM with GlancePlus
- Monitoring PRM with OpenView Performance Agent (OVPA) / OpenView Performance Manager (OVPM)
- Automating PRM administration with scripts
- Protecting the PRM configuration from reboots
- Reconstructing a configuration file
- Special case of interest: Client/server connections
- Online cell operations
- Backing up PRM files
- A Command reference
- B HP-UX command/system call support
- C Monitoring PRM through SNMP
- D Creating Secure Resource Partitions
- E Using PRM with Serviceguard
- F Using PRM with HP Integrity Virtual Machines
- G PRM error messages
- Glossary
- Index
Because the ’.*b’ record is first (based on ASCII dictionary order), the application abb would
be assigned to the PRM group GroupB.
Knowing the names of all the processes spawned and renamed by the applications can help in
creating pattern matching that is only as general as it needs to be. Eliminate redundant name
resolutions whenever possible, and make sure pattern matching does not cause unwarranted moves.
For information on how alternate name pattern matching affects precedence, see the next section,
““Precedence of PRM group assignments” (page 34).”
Precedence of PRM group assignments
The PRM application manager checks that applications are running in the correct PRM groups
every interval seconds. The default interval is 30 seconds; however, you can change it as
explained in the section “Setting the application manager’s polling interval” (page 92).
The precedence of PRM record types—from highest to lowest—is:
1. Compartment record
2. Application record
3. User record
4. Unix group record
The PRM application manager goes through the following steps to determine in which PRM group
to place a process.
1. Manually moved processes
Leave manually moved processes (processes moved using prmrun or prmmove) in their
current PRM groups.
2. Compartment records
Move a process running in a secure compartment that is mapped to a PRM group using a
compartment record to the assigned PRM group.
3. Application records
If the file ID of the process matches the file ID for the full pathname of any application listed
in an application record in the current configuration, make the following checks:
a. If the process name is an exact match of an alternate name given in the application
record, move the application to the PRM group assigned in the record.
b. If the process name matches any of the alternate names specified by pattern (regular
expression) in application records, then:
• If it matches only one alternate name, move it to the PRM group specified in that
record.
• If it matches multiple alternate names specified by pattern, move the process to the
PRM group specified in the “first” matching record.
The “first” matching record is determined by sorting the alternate names specified
by pattern in lexicographical (ASCII dictionary) order.
c. Move the process to the PRM group specified in the application record that has no alternate
name.
4. Root processes
Move any process running as root to the PRM_SYS group (or to root’s initial group if explicitly
given in a user record).
5. User records
Move any process run by a nonroot user to the initial group assigned to the user in a user
record, assuming the initial group is other than (NONE).
34 Understanding how PRM manages resources