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.
  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
    zone.cpu-shares
            usage               1
            privileged          1       -   none                                 -
            system          65.5K     max   none                                 -

Example 5-10 Dynamically Changing the zone.cpu-shares Value in a Zone

$ prctl -n zone.cpu-shares -r -v 2 -i zone ZoneA