HP Process Resource Manager User's Guide

Configuring and enabling PRM on the command line
Configuring PRM
Chapter 7118
Adding/modifying private memory shares/caps
To add or modify a memory record, follow these steps:
Step 1. Open the desired configuration file in a text editor.
Step 2. Using the syntax shown below:
#!PRM_MEM:{PRMID|GROUP}:SHARES:[MAX]:::[[IMPORT]:[EXPORT]:]
and explained in the section “Memory record syntax” on page 113:
a. Add or modify a line specifying a PRMID or group name for an
existing group.
b. Specify an integer number of shares.
c. Optionally, assign a memory cap. This cap must be greater than or
equal to the percentage represented by the number of shares specified
in Substep b. (Memory caps do not have to sum to 100%.)
d. Optionally, isolate the memory by specifying an IMPORT and EXPORT
value of 0.
NOTE You cannot set EXPORT to 0 for the OTHERS group.
Step 3. Ensure that there is a one-to-one correspondence between the memory
records and group/CPU records.
Step 4. Save the file and exit your editor.
Step 5. Load the configuration using one of the commands below.
To initialize, moving user processes to the owners’ initial groups and
moving applications to their assigned groups, use the command:
# prmconfig -i [-f configfile] {-s | -c}
To keep the existing assignments of users, processes, and groups, use the
command:
# prmconfig -k [-f configfile] {-s | -c}
Use the -f configfile option to specify a file other than the default
/etc/prmconf. The -s option displays warnings regarding the
configuration file. (The -c option displays a subset of the -s warnings.)