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
6. Enable PRM:
#prmconfig -e
7. Confirm that the processes are running in the appropriate PRM groups:
#ps -efP
Configuring PRM
Configuring PRM is independent of enabling PRM. You can configure PRM without enabling it. In
such a state, PRM stamps processes with PRM group identifiers so that their resource usage can
be controlled when you enable the PRM CPU, memory, or application manager. For information
on how to enable PRM, see “Enabling resource managers” (page 80).
The following sections explain PRM’s configuration file and how to configure PRM.
The PRM configuration file
The PRM configuration file defines PRM groups and their resource shares. It also specifies which
PRM groups each user can access and which applications are assigned to PRM groups. The default
configuration file is /etc/prmconf; however, you can create and use alternate configuration files,
which are usually kept in the directory /etc/opt/prm/conf/, with the owner set to hpsmh.
The PRM configuration file contains the following record types:
• Group/CPU
• Memory
• Application
• User
• Compartment
• Unix group
Specify PRM groups and CPU allocations in group/CPU records. The configuration file must contain
a group/CPU record for each PRM group you want to create on your system. The file must also
contain a group/CPU record for any PRM group listed in a user or application record. Optionally,
define memory records to assign memory allocations for the groups. Use compartment records,
also optional, to map secure compartments to PRM groups. (Create secure compartment
configurations using the HP-UX feature Security Containment—or a PRM utility such as srpgen or
prm2scomp.) Use the optional Unix group records to map Unix groups on the system to PRM
groups.
Each PRM group is denoted by an identifier called a PRM group ID, or PRMID. The PRMID for an
FSS PRM group must be an integer between 0 and 63 (inclusive) or between 0 and 255 (inclusive)
starting with HP-UX v2 Update 2. PRMID 0 is reserved for the PRM_SYS group, and PRMID 1 is
reserved for the OTHERS group. PSET PRM group IDs are assigned by PRM. When using the PRM
interface in HP System Management Homepage or in HP Systems Insight Manager to create groups,
all PRMIDs are automatically assigned.
You do not need to specify PRM user records for all users on your system. Users without PRM user
records are automatically assigned to the user default group, OTHERS (PRMID 1).
Create application records for those applications requiring a certain level of resources. However,
you do not need to assign every application to a PRM group. An application without a PRM
application record runs in the initial PRM group of the invoking user.
For detailed syntax information on configuration files, see the prmconf(4) manpage.
52 Configuring and enabling PRM on the command line