How should you permanently restrict the non-global zone testzone so that it does not use more than 20 CPU shares while it is running?
Correct Answer: C
Explanation/Reference:
The prctl utility allows the examination and modification of the resource controls associated with an active process, task, or project on the system. It allows access to the basic and privileged limits and the current usage on the specified entity.
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. Be superuser, or have equivalent authorizations.
For more information about roles, see Configuring and Using RBAC (Task Map) in System Administration Guide: Security Services.
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.
Note: project.cpu-shares
Number of CPU shares granted to a project for use with the fair share scheduler Reference: man prtcl