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?
A.
While configuring the zone, add this entry:
add rct1
set name = capped.cpu-shares
add value (priv = privileged, limit = 20, action = none)
end
exit
B.
While configuring the zone, add this entry:
add rct1
set name= zone.cpu-shares
add value (priv=privileged, limit=20, action=none)
end
exit
from command line, enter:
# dispadmin – d FSS
C.
From the command line enter:
#prct1 -n zone.cpu-shares – r – v 20 – i zone testzone
D.
From the command line, enter:
#prct1 – n zone.cpu-shares – v 80 – r – i zone global
Explanation:
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.
For more information about roles, see Configuring and Using RBAC (Task Map) in System
Administration Guide: Security Services.
# 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-sharesNumber of CPU shares granted to a project for use with the fair share scheduler
Reference: man prtcl
B or C
B permanently fix the zone CPU limit.
B
These limits can be specified for running processes by using the prctl command. An example is provided in How to Set FSS Shares in the Global Zone Using the prctl Command. Limits specified through the prctl command are not persistent. _The limits are only in effect until the system is rebooted_. from: http://docs.oracle.com/cd/E26502_01/html/E29024/z.config.ov-3.html