Go to main content

Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: August 2019

Using the Fair Share Scheduler on a System With Zones Installed

This section shows how to use the FSS for zones. For more information, see the prctl(1) man page.

How to Temporarily Set FSS Shares in the Global Zone

The global zone is given one share by default. Perform this procedure to temporarily change the default allocation.

  1. Become a zone administrator.

    For more information, see Using Rights Profiles to Install and Manage Zones.

  2. Assign shares to the global zone.
    global$ prctl -n zone.cpu-shares -v N -r -i zone global
    –v value

    Specifies the new value, in this case, the new number of CPU shares.

    –i zone idtype

    Specifies the zone name or the zone ID.

  3. Verify the number of shares assigned to the global zone.
    global$ prctl -n zone.cpu-shares -i zone global
    zone: 0: global
    NAME    PRIVILEGE       VALUE    FLAG   ACTION                       RECIPIENT
            usage               1
            privileged          1       -   none                                 -
            system          65.5K     max   none                                 -
Example 24  Dynamically Changing the zone.cpu-shares Value in a Zone
$ prctl -n zone.cpu-shares -r -v 2 -i zone ZoneA