HP Process Resource Manager User's Guide

Configuring and enabling PRM on the command line
Configuring PRM
Chapter 7122
Isolating private memory for a group
To isolate memory for a group, 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. Find the memory record in the configuration file you wish to modify.
b. Set the EXPORT and IMPORT fields to zero.
NOTE You cannot set EXPORT to 0 for the OTHERS group.
Step 3. Save the file and exit your editor.
Step 4. Load the configuration using one of the following commands:
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.)
Step 5. Enable PRM’s memory manager if it is not already enabled:
# prmconfig -e MEM
Alternatively, enable all PRM resource managers using prmconfig -e
without any additional arguments:
# prmconfig -e