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?

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?

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 -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



Leave a Reply 11

Your email address will not be published. Required fields are marked *


david

david

B is correct

Saeed

Saeed

C is correct answer.

gray

gray

B is incorrect:

Add a zone-wide resource control by using the property name.
zonecfg:testzone> set cpu-shares=20

Tamil

Tamil

C is correct,add resources while running.
B also correct but not for this question

Aneesh Mohan

Aneesh Mohan

Correct answer should be “B”

FRD

FRD

C, the question state that the change should be made while the zone is running.