HP-UX Workload Manager User's Guide
WLM quick start: the essentials for using WLM
WLM shown in action
Chapter 2 69
5. Defines a priority 1 SLO for g3 that requests 20 CPU shares.
# Name:
# multiple_groups.wlm
#
# Version information:
#
# $Revision: 1.10 $
#
#
# Dependencies:
# This example was designed to run with HP-UX WLM version A.01.02
# or later. It uses the cpushares keyword introduced in A.01.02
# and is, consequently, incompatible with earlier versions of
# HP-UX WLM.
#
# Requirements:
# To ensure WLM places the perl scripts below in their assigned
# workload groups, add “/opt/perl/bin/perl” (without the quotes) to
# the file /opt/prm/shells.
prm {
n groups = g2 : 2,
g3 : 3;
o apps = g2 : /opt/perl/bin/perl loop2.pl,
g3 : /opt/perl/bin/perl loop3.pl;
p gmincpu = g2 : 5, g3 : 5;
gmaxcpu = g2 : 30, g3 : 60;
}
q
slo test2 {
pri = 1;
cpushares = 15 total;
entity = PRM group g2;
}
r
slo test3 {
pri = 1;
cpushares = 20 total;
entity = PRM group g3;