System Administration Guide: Oracle Solaris Containers-Resource Management and Oracle Solaris Zones

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

This procedure can be used for any zone, not just the global zone.

  1. Become superuser, or assume the Primary Administrator role.

    To create the role and assign the role to a user, see Using the Solaris Management Tools With RBAC (Task Map) in System Administration Guide: Basic Administration

  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.