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 DynamicallyThis 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 -vvalue-i zonezonename
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
C is correct for temporary
for permanent correct is B
http://docs.oracle.com/cd/E23824_01/html/821-1460/z.conf.start-115.html
B is correct
C is correct answer.
C
http://docs.oracle.com/cd/E19455-01/817-1592/z.admin.task-71/index.html
B is incorrect:
Add a zone-wide resource control by using the property name.
zonecfg:testzone> set cpu-shares=20
Sorry, B is correct
http://thegeekdiary.com/resource-management-in-solaris-zones-cpu-shares-capped-cpu-dedicated-cpu-assignment/
C is correct,add resources while running.
B also correct but not for this question
My guess is B
“expect permanently”
http://docs.oracle.com/cd/E19253-01/817-1592/gepvn/index.html
This procedure is used to “persistently” set shares in the global zone.
Correct answer should be “B”
C, the question state that the change should be made while the zone is running.