Enable the CPU shares attributes by setting the value of the wlm_disp_cpu_shares database manager configuration parameter to YES. Set the hard or soft CPU shares attribute using the CREATE SERVICE CLASS or ALTER SERVICE CLASS statement. You will generally want to set hard CPU shares on service classes running low-priority or high-impact work, and soft CPU shares on high-priority service classes when CPU resources are strained.
The CPU shares attributes are enabled in this task by using the command line processor method, and the CPU shares attribute is set for a service class by using the CREATE SERVICE CLASS or ALTER SERVICE CLASS statement.
Restrictions
You can assign soft CPU shares only to service classes that the workload management dispatcher can control, which are user and maintenance service classes. The CPU resource allocations for system service classes cannot be controlled by the workload management dispatcher.
Skip to step 2 if the CPU shares attributes have already been enabled.
To enable the CPU shares attributes:
Skip to step 3 if an existing service class hard or soft CPU shares setting is to be altered.
To create a new service class and set the hard or soft CPU shares attribute:
To alter the hard or soft CPU shares setting for an existing service class:
The CPU shares attributes have been enabled and you have set or altered the hard or soft CPU shares setting for the specified service class. Service classes assigned hard CPU shares can, under restricted conditions, claim CPU resources that other service classes have relinquished due to their lessened workload demand. Service classes assigned soft CPU shares, on the other hand, can always claim CPU resources that other service classes have relinquished due to their lessened workload demand.