HP-UX HB v13.00 Ch-19 - PRM

HP-UX Handbook Rev 13.00 Page 20 (of 31)
Chapter 19 Process Resource Manager (PRM)
October 29, 2013
(NONE)
You can specify (NONE) in place of a group name if you
would like to explicitly show in your configuration file
that a Unix group is not to be mapped to a PRM group.
NOTE:
By default, PRM gives PRM_SYS 100 CPU shares. If you assign 100 shares to the PRM groups
you create, PRM_SYS gets 50% (100/200) of the CPU resource. The PRM_SYS group must get
at least 20% of the CPU resource. Thus, if you assign more than 400 shares to your groups, the
total shares assigned is greater than 500, and the PRM_SYS group’s 100 shares do not represent
at least 20%. In this case, PRM scales the shares for your groups proportionately so they are less
than or equal to 400 shares.
You can explicitly add the PRM_SYS (PRMID 0) group to a configuration file. However, if you
explicitly add the PRM_SYS group to a configuration file, it gets the CPU shares you assign it,
which must equate to at least 20%.
The “prmmonitor -s” output includes the PRM_SYS group in output.
Testing the Configuration
Use the “-s” option of prmconfig(1) in order to detect syntax errors in /etc/prmconf.
$ prmconfig -s
Configuration file check complete. No errors found.
Configuring the Startup Script
The default startup configuration is as follows:
$ cat /etc/rc.config.d/prm
#!/sbin/sh
#
# @(#) HP PRM C.03.05 (20081113_062452) hpux_11.23
#
# PRM configuration. See prmconfig(1)
#
# To configure (and enable) PRM automatically at boot time, a PRM configuration
# file must have been previously created and specified below.
#
# Initial configuration file values:
#
# PRM_CONFIG=0
# PRM_CONFIG_FILE=/etc/prmconf
# PRM_ENABLE=0
# PRM_SLEEP=0