HP-UX Workload Manager User's Guide
WLM quick start: the essentials for using WLM
How to put an application under WLM control
Chapter 282
group. However, you can change the workload group in which a
particular user’s processes run by adding user records to the WLM
configuration file. You can add Unix group records to the configuration
file so that the processes running in a specified Unix group are placed in
a specific workload group. Furthermore, you can specify the workload
groups in which processes run by adding application records to your
WLM configuration, or defining secure compartments that isolate the
processes in specified workload groups. You can even define process maps
that include your own criteria for the placement of processes in workload
groups.
When determining the workload groups where particular processes
should be placed, the assignments specified in application records take
precedence over user records, and user records take precedence over
Unix group records. For example, if the same process is identified in both
application records and user records, the process is placed in the
workload group assigned to it by the application record. If you define
secure compartments, compartment records take precedence over
application, user, and Unix group records. If you define process maps,
they take precedence over all the WLM records. Note also that you can
alter the workload group of an application by using the prmmove and
prmrun utilities, which are discussed in the subsections to follow.
WLM provides several methods for placing processes in workload groups.
It is important to understand these methods, as they form the basis of
the workload separation.
First, we define the workload groups for the workloads. The following
snippet from a WLM configuration file creates three workload groups:
servers_grp, apache_grp, and OTHERS. (The OTHERS group is a reserved
workload group and must have ID 1. If you do not explicitly create this
group, WLM creates it for you.)
prm {
groups = OTHERS : 1,
servers_grp : 2,
apache_grp : 3;
}
Note that each workload group is given a name and a number. Following
sections of the WLM configuration file assign resources to the groups.
Processes within the groups then share the resources allocated to that
group.
With the workload groups defined, the remainder of this section explores
how processes can be placed in the workload groups.