HP-UX Workload Manager User's Guide

WLM quick start: the essentials for using WLM
How to put an application under WLM control
Chapter 286
In the prm structure that follows, the procmap statement causes the
PRM application manager to place in the sales group any processes
gathered by the ps command that have PIDs matching the application
pid_app. The application manager places in the mrktg group any
processes gathered by the external script pidsbyapp that have PIDs
matching the application mrketpid_app.
prm {
groups = OTHERS : 1,
sales : 2,
mrktg : 3;
procmap = sales :
/bin/env /UNIX95= /bin/ps -C pid_app -o pid=,
mrktg : /scratch/pidsbyapp mrketpid_app;
}
For more information on setting up process maps, see “Specifying process
maps to define your own criteria for workload separation (optional)” on
page 172.
prmrun: Starting a process in a workload group
You can explicitly start processes in particular workload groups using
the prmrun command. Given the groups and users statements shown in
“User records: Workload separation by process owner UID” on page 83,
user larry running the following command would cause his job to be run
in group testers:
# my_really_big_job &
However, user larry also has permission to run processes in the group
surfers. Thus, larry can use the following prmrun command to run his
process in the group surfers:
# /opt/prm/bin/prmrun -g surfers my_really_big_job &
prmmove: Moving an existing process to a workload
group
Use the prmmove command to move existing processes to a different
workload group. If larry from the previous example has a job running
with process ID (PID) 4065 in the group testers, he could move that
process to group surfers by running the command: