Using HP-UX Workload Manager: A quick reference
15
Unix group records: Workload separation by Unix group ID
You can place processes in workload groups according to the Unix groups the processes run in.
Specify your Unix group-workload group mapping in the uxgrp statement as in the following
example:
prm {
groups = OTHERS : 1,
testers : 2,
coders : 3,
surfers : 4;
uxgrp = sports : surfers,
shoes : coders,
appliances : testers;
}
Besides the default OTHERS group, this example has the three workload groups testers, coders,
and surfers. The Unix group records cause processes running in Unix group sports to be placed
in workload group surfers, while processes running in Unix group shoes are placed in workload
group coders, and processes in Unix group appliances are placed in workload group testers.
Processes not running in any of the specified Unix groups are placed in OTHERS by default.
To support Unix group records, WLM must be A.03.02 or later, and PRM C.03.02 or later must be
running on the system.
Secure compartments: Workload separation by Secure Resource
Partitions
You can place processes in workload groups according to the secure compartments the processes run
in. The HP-UX feature Security Containment, available starting with HP-UX 11i v2, enables you to
create secure compartments. Specify the mapping between secure compartments and workload
groups in the scomp statement as in the following example:
prm {
groups = OTHERS : 1,
database : 2,
webapp : 3;
scomp = db_comp : database,
wa_comp : webapp;
}
Besides the default OTHERS group, two workload groups are defined in this example: database and
webapp. Processes running in the secure compartment db_comp are placed in workload group
database, while processes running in secure compartment wa_comp are placed in workload group
webapp. Processes not running in any of the two secure compartments defined in this example are
placed in OTHERS by default.
Process maps: Workload separation using your own criteria
Using the procmap statement, you define your own criteria for placing processes in workload
groups. You establish your criteria by specifying a particular workload group plus a script or
command and its arguments that gathers and outputs PIDs of processes to be placed in that group.
WLM spawns the command or script periodically at 30-second intervals. At each interval, WLM
places the identified processes in the specified group. You can use process maps to automatically