|Skip Navigation Links|
|Exit Print View|
|Oracle Solaris Administration: Oracle Solaris Zones, Oracle Solaris 10 Zones, and Resource Management Oracle Solaris 11 Information Library|
Limits specified through the prctl command are not persistent. The limits are only in effect until the system is rebooted. To set shares in a zone permanently, see How to Configure the Zone and How to Set zone.cpu-shares in the Global Zone.
The global zone is given one share by default. You can use this procedure to change the default allocation. Note that you must reset shares allocated through the prctl command whenever you reboot the system.
You must be the global administrator or a user granted the appropriate authorizations in the global zone to perform this procedure.
# prctl -n zone.cpu-shares -v 2 -r -i zone global
# prctl -n zone.cpu-shares -i zone global
For more information on the prctl utility, see the prctl(1) man page.
This procedure can be used in the global zone or in a non-global zone.
# prctl -n zone.cpu-shares -r -v value -i zone zonename
idtype is either the zonename or the zoneid. value is the new value.