Sun Cluster System Administration Guide for Solaris OS

Introduction to CPU Control

Sun Cluster software enables you to control the usage of CPU. The configuration choices you can make on the Solaris 9 OS are not the same as the choices you can make on the Solaris 10 OS.

The CPU control facility builds on the functionality available in the Solaris OS. For information about zones, projects, resource pools, processor sets, and scheduling classes, see System Administration Guide: Solaris Containers-Resource Management and Solaris Zones.

SPARC: On the Solaris 9 OS, you can assign CPU shares to resource groups.

On the Solaris 10 OS, you can do the following:


Note –

All procedures in this chapter are for use on the Solaris 10 OS unless labeled as specific to the Solaris 9 OS.


Choosing a Scenario

Depending on the configuration choices you make and version of the operating system you choose, you can have different levels of CPU control. All aspects of CPU control described in this chapter are dependent on the resource group property RG_SLM_TYPE being set to automated.

Table 9–1 provides a description of the different configuration scenarios available.

Table 9–1 CPU Control Scenarios

Description 

Instructions 

SPARC: Resource group runs on the Solaris 9 OS 

Assign CPU shares to a resource group, providing a value for project.cpu-shares.

SPARC: How to Control CPU Usage on the Solaris 9 OS

Resource group runs in the global-cluster voting node on the Solaris 10 OS 

Assign CPU shares to resource groups and zones, providing values for project.cpu-shares and zone.cpu-shares

You can perform this procedure whether or not global- cluster non-voting nodes are configured. 

How to Control CPU Usage in the Voting Node on a Global Cluster

Resource group runs in a global-cluster non-voting zone by using the default processor set 

Assign CPU shares to resource groups and zones, providing values for project.cpu-shares and zone.cpu-shares

Perform this procedure if you do not need to control the size of the processor set. 

How to Control CPU Usage in a Global-Cluster Non-Voting Node With the Default Processor Set

Resource group runs in a global-cluster non-voting node with a dedicated processor set 

Assign CPU shares to resource groups, providing values for project.cpu-shares, zone.cpu-shares, and maximum number of processors in a dedicated processor set.

Set the minimum number of processor sets in a dedicated processor set. 

Perform this procedure if you want to control CPU shares and the size of a processor set. You can exercise this control only in a global-cluster non-voting node by using a dedicated processor set. 

How to Control CPU Usage in a Global-Cluster Non-Voting Node With a Dedicated Processor Set

Fair Share Scheduler

The first step in the procedures to assign CPU shares to resource groups is to set the scheduler for the system to be the fair share scheduler (FSS). By default, the scheduling class for Solaris OS is timesharing schedule (TS). Set the scheduler to be FSS to have the shares configuration take effect.

You can create a dedicated processor set regardless of the scheduler class you choose.