2.Remove the line corresponding to the shared memory record you wish to remove. Shared memory records have the following form:

#!SHARED_MEM:{PRMIDGROUP}:MEGABYTES

3.Save the file and exit the text editor.

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 [-fconfigfile] {-s -c}

To keep the existing assignments of users, processes, and groups, use the command:

#prmconfig -k [-fconfigfile] {-s -c}

Use the -fconfigfile option to specify a file other than the default /etc/prmconf. The -soption displays warnings regarding the configuration file. (The -coption displays a subset of the -swarnings.)

5.Enable PRM’s memory manager if it is not already enabled:

#prmconfig -e MEM

Alternatively, enable all PRM resource managers using prmconfig -ewithout any additional arguments:

#prmconfig -e

Isolating private memory for a group

To isolate memory for a group, follow these steps:

1.Open the desired configuration file in a text editor.

2.Using the syntax shown below:

#!PRM_MEM:{PRMIDGROUP}:SHARES:[MAX]:::[[IMPORT]:[EXPORT]:] and explained in the section “Memory record syntax” (page 59):

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.

3.Save the file and exit your editor.

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 [-fconfigfile] {-s -c}

To keep the existing assignments of users, processes, and groups, use the command:

#prmconfig -k [-fconfigfile] {-s -c}

Use the -fconfigfile option to specify a file other than the default /etc/prmconf. The -soption displays warnings regarding the configuration file. (The -coption displays a subset of the -swarnings.)

5.Enable PRM’s memory manager if it is not already enabled:

#prmconfig -e MEM

Alternatively, enable all PRM resource managers using prmconfig -ewithout any additional arguments:

#prmconfig -e

64 Configuring and enabling PRM on the command line

Page 64
Image 64
HP Process Resource Manager (PRM) manual Isolating private memory for a group