HP-UX Workload Manager User's Guide

Introduction
Examples of solutions that WLM provides
Chapter 154
SLOs that dynamically allocate resources based on
usage goals
The solutions in this section illustrate SLOs based on usage goals. In
each case, resources are allocated dynamically, based on current demand
or utilization. When the demand is high enough, more resources are
allocated for the workload. When the demand falls below a certain point,
unused resources can be made available for other workloads.
Allocating CPU resources dynamically based on utilization
In this example, the workload (named Orders) is a collection of processes
running in a virtual partition. WLM adjusts the CPU allocation of the
virtual partition based on the CPU utilization of the workload within
that partition. If the utilization is low (perhaps caused by fewer
applications running), then the CPU allocation for the partition is
reduced, making more resources available to other partitions in the
complex. If utilization is high, the workload receives a larger CPU
allocation. Regardless of utilization, this SLO ensures that the partition
is allocated at least 200 shares but no more than 800 shares. (When
managing partitions, WLM equates 1 core to 100 shares.)
Workload. Orders
Priority. 1
Usage goal. Match CPU allocation to consumption
Min CPU. 200 shares
Max CPU. 800 shares
Controlling the sharing and borrowing of excess CPU resources
In this scenario, the workload Development has multiple SLOs, with
each SLO having a usage goal. The Development workload is owned by a
department that funded 30% of the server. Consequently, that
department expects to get 30% of the server when needed. In the
following SLOs, 100 CPU shares represent the total CPU resources
(cores) on the server. So, 30% of the server is 30 CPU shares. (CPU units
based on a percentage of the system’s total CPU resources are known as
relative CPU units, which is the default for WLM; examples previous to
this one are based on absolute CPU units, which equate 100 shares to 1
core. For more information on using absolute and relative CPU units, see
“Using absolute CPU units” on page 217.)