HP-UX Workload Manager Toolkits User's Guide

HP-UX WLM Duration Management Toolkit and HP-UX WLM Toolkit for Base SAS Software
How do I use DMTK / SASTK?
Chapter 6136
# Use a tune structure with glance_prm to determine the number of active
# processes in the express_lane group. This structure generates the
# metric express_lane_procs_active, which is used to make the SLO below
# inactive when no processes are present in the express_lane workload
# group.
tune express_lane_procs_active {
coll_argv = wlmrcvdc glance_prm -i 2 APP_ACTIVE_PROC express_lane;
}
# Next, we create the SLO slo_express_lane. This SLO has a priority of 1.
# Also, it has a CPU request range of 5 to 45 (mincpu=5, maxcpu=45).
# A priority 1 SLO will have its shares allocated before a lower priority
# SLO. Thus, WLM will satisfy slo_express_lane at the expense of the group
# OTHERS. In addition, slo_express_lane has a condition metric,
# express_lane_procs_active. This condition metric specifies that at least
# one process must be executing in the express_lane workload group before
# the SLO becomes active.
#
# The cpushares statement requests shares based on the number of processes
# in the workload.
#
# This SLO is inactive when there are no processes in its associated
# workload group. Otherwise, the SLO provides 5 additional CPU shares to
# the group for each of its processes.
slo slo_express_lane {
pri = 1;
entity = PRM group express_lane;
mincpu = 5;
maxcpu = 45;
cpushares = 5 more per metric express_lane_procs_active;
condition = metric express_lane_procs_active > 0;
}