Friday, April 6, 2012

Solaris: Zone capped memory

Add a memory cap.


zonecfg:zoneA> add capped-memory
Set the memory cap.


zonecfg:zoneA:capped-memory> set physical=50m
Set the swap memory cap.


zonecfg:zoneA:capped-memory> set swap=100m
Set the locked memory cap.


zonecfg:zoneA:capped-memory> set locked=30m
End the memory cap specification.


zonecfg:zoneA:capped-memory> end