HP-UX Workload Manager User's Guide

Example configuration files
manual_cpucount.wlm
Chapter 9 297
# Dependencies:
# This example was designed to run with HP-UX WLM version A.02.01 or
# later. It uses the CPU movement among PSET groups feature
# introduced in WLM A.02.01. Consequently, it is incompatible with
# earlier versions of HP-UX WLM.
#
#
# prm structure
# There is a single WebLogic instance, instA, being controlled
# in a WLM workload group, wls1_grp.
#
# The users statement allows the user named ‘wladmin’ to run jobs in
# OTHERS or wls1_grp, with group wls1_grp being his default group.
#
prm {
groups =
OTHERS : 1,
wls1_grp : PSET
;
# Now use a user record to place all processes owned by ‘wladmin’
# in the target group. This assumes that ‘wladmin’ runs the instance
# but no other resource-intensive jobs. If the user ‘wladmin’ runs
# other UNIX processes, they will be placed in the wls1_grp too, and
# compete for its resources.
users =
wladmin: wls1_grp OTHERS
;
}
#
# Create an SLO that allocates CPU resources to group wls1_grp based on the
# metric wls1_grp.desired.cpucount. If wls1_grp.desired.cpucount is 1.0, the
# allocation is 100, which is one core of CPU resources. 2 is 200, or two
# cores, and so on.
#
slo wls_base {
pri = 1;
entity = PRM group wls1_grp;
cpushares = 100 total per metric wls1_grp.desired.cpucount;
}