Sun Cluster 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:
Assign CPU shares to resource groups.
Assign processors to resource groups.
All procedures in this chapter are for use on the Solaris 10 OS unless labeled as specific to the Solaris 9 OS.
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 | |
Resource group runs in the global zone 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 non-global zones are configured. | |
Resource group runs in a non-global 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 Non-Global Zone With the Default Processor Set |
Resource group runs in a non-global zone 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 non-global zone, by using a dedicated processor set. |
How to Control CPU Usage in a Non-Global Zone With a Dedicated Processor Set |
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.