Creating and Using Oracle® Solaris Zones

Exit Print View

Updated: May 2015
 
 

How to Change the zone.cpu-shares Value in a Zone Dynamically

This procedure can be used in the global zone or in a non-global zone.

  1. Become an administrator.

    For more information, see Using Your Assigned Administrative Rights in Securing Users and Processes in Oracle Solaris 11.2 .

  2. Use the prctl command to specify a new value for cpu-shares.
    # prctl  -n zone.cpu-shares -r -v value -i zone zonename

    idtype is either the zonename or the zoneid. value is the new value.