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

HP-UX Handbook – Rev 13.00 Page 9 (of 31)
Chapter 19 Process Resource Manager (PRM)
October 29, 2013
$ ps -ef
UID PID PPID C STIME TTY TIME COMMAND
root 0 0 0 Jan 10 ? 1:09 swapper
root 1 0 0 Jan 10 ? 1:34 init
root 2 0 0 Jan 10 ? 8:24 vhand
root 3 0 0 Jan 10 ? 79:28 statdaemon
...
...
kdoi22 5403 1 0 Jan 10 ? 0:42 ora_smon_bfl
kdoi22 5242 1 0 Jan 10 ? 1:18 /oracle/app/oracle/product/8.1.5/bin/tnslsnr LISTENER -inherit
kdoi22 5420 1 0 Jan 10 ? 0:12 ora_s000_bfl
kdoi22 5422 1 0 Jan 10 ? 0:13 ora_s001_bfl
kdoi22 5424 1 0 Jan 10 ? 0:12 ora_s002_bfl
kdoi22 5426 1 0 Jan 10 ? 0:11 ora_s003_bfl
kdoi22 5428 1 0 Jan 10 ? 0:12 ora_s004_bfl
...
...
The most important PRM concept is groups. A PRM group is a collection f processes that is
assigned system resources. PRM allows the assignment of applications and users to PRM groups.
PRM then manages each group's CPU, disk bandwidth, and memory resources according to the
current configuration.
The PRM application manager checks that applications are running in the correct PRM groups
every interval seconds. The default interval is 30 seconds; however, you can change it.
There are several possibilities to associate the application processes with PRM groups, for
instance:
User record
Specifies a user or a collection of users (through a netgroup) and assigns the user or netgroup to
an initial PRM group.
Optionally, it can specify alternate PRM groups.
Unix group record
Unix groups are collections of users given Unix permissions as a whole. PRM allows you to map
Unix groups to PRM groups without having to specify each user in the Unix group. With a Unix
group record, any process running as a specific Unix group can be assigned to a PRM group.
Application record
Application records assign applications to PRM groups. Each record specifies an application and
he PRM group it and its child processes can run in. Application records are optional; if an
application does not have a record, it runs in the PRM group of the user who invoked it.
Oracle example:
If you intend to put Oracle database instances into different PRM groups you need to
consider that when you open an instance, the Oracle executable
($ORACLE_HOME/bin/oracle) renames itself regarding the environment variable