Sun Microsystems 10 manual Global # prctl -i zone zone1 Zone 22 zone1, 111

Models: 10

1 121
Download 121 pages 49.77 Kb
Page 118
Image 118

Version 3.1-enSolaris 10 Container Guide - 3.1 5. Cookbooks

Effective: 30/11/2009

Settings for swap (= virtual memory), locked memory and other resource controls of a zone can be queried at runtime with prctl -i zone <zone>.

global # prctl -i zone zone1

 

 

 

zone: 22: zone1

 

 

 

 

NAME

PRIVILEGE

VALUE

FLAG

ACTION RECIPIENT

zone.max-swap

 

 

 

 

 

privileged

200MB

-

deny

-

 

system

16.0EB

max

deny

-

zone.max-locked-memory

 

 

 

 

 

privileged

20.0MB

-

deny

-

 

system

16.0EB

max

deny

-

zone.max-shm-memory

 

 

 

 

 

system

16.0EB

max

deny

-

zone.max-shm-ids

 

 

 

 

 

system

16.8M

max

deny

-

 

. . .

 

 

 

 

zone.max-lwps

 

 

 

 

 

system

2.15G

max

deny

-

zone.cpu-shares

 

 

 

 

 

privileged

1

-

none

-

 

system

65.5K

max

none

-

Changing these settings at runtime can be done using the command prctl.

global # prctl -r -t privileged -n zone.max-swap -v 180m -e deny -i

zone zone1

 

 

 

 

global # prctl -n zone.max-swap -i zone

zone1

 

zone: 22: zone1

 

 

 

 

NAME

PRIVILEGE

VALUE

FLAG

ACTION

RECIPIENT

zone.max-swap

 

 

 

 

 

privileged

180MB

-

deny

-

 

system

16.0EB

max

deny

-

111

Page 118
Image 118
Sun Microsystems 10 Global # prctl -i zone zone1 Zone 22 zone1, Zone.max-swap Privileged 180MB Deny System 16.0EB Max, 111