Version 3.1-en Solaris 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