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?
Theprctlutility 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 thezone.cpu-sharesValue in a Zone Dynamically
This procedure can be used in the global zone or in a non-global zone.
For more information about roles, seeConfiguring and Using RBAC (Task Map) inSystem Administration Guide: Security Services.
# prctl -n zone.cpu-shares -r -v value -i zone zonename
idtypeis either thezonenameor thezoneid.valueis the new value.
Note: project.cpu-shares
Number of CPU shares granted to a project for use with the fair share scheduler
Currently there are no comments in this discussion, be the first to comment!