Go to main content

Oracle® Solaris Zones Configuration Resources

Exit Print View

Updated: August 2021
 
 

Scheduling Class

You can use the fair share scheduler (FSS) to control the allocation of available CPU resources among zones, based on their importance. This importance is expressed by the number of shares of CPU resources that you assign to each zone. Even if you are not using FSS to manage CPU resource allocation between zones, you can set the zone's scheduling-class to use FSS so that you can set shares on projects within the zone.

    The following actions are ways to set the scheduling class for a zone:

  • Use the scheduling-class global property in zonecfg to set the scheduling class for the zone.

  • Set the scheduling class for a zone through the resource pools facility.

    If the zone is associated with a pool that has its pool.scheduler property set to a valid scheduling class, then processes running in the zone run in that scheduling class by default. See Introduction to Resource Pools in Administering Resource Management in Oracle Solaris 11.4 and How to Associate a Pool With a Scheduling Class in Administering Resource Management in Oracle Solaris 11.4.

  • If the cpu-shares resource control is set and FSS has not been set as the scheduling class for the zone through another action, the zoneadmd daemon sets the scheduling class to FSS when the zone boots.

  • If the scheduling class is not set through any other action, the zone inherits the system default scheduling class. You use the dispadmin command to set FSS to be the system default scheduling class.

You can use the priocntl command to move running processes into a different scheduling class without changing the default scheduling class and rebooting. For more information, see the priocntl(1) man page.