Software >> OS >> Unix >> Solaris >> 11 >> Zones >> How to configure and unconfigure memory resource control on a zone

To configure:-

# zonecfg -z grandmazone

zonecfg:grandmazone> add capped-memory

zonecfg:grandmazone:capped-memory> set physical=50m

zonecfg:grandmazone:capped-memory> set swap=100m

zonecfg:grandmazone:capped-memory> set locked=30m

zonecfg:grandmazone:capped-memory> end

zonecfg:grandmazone> verify

zonecfg:grandmazone> commit

zonecfg:grandmazone> exit

 

To remove:

# zonecfg -z grandmazone

zonecfg:grandmazone> remove capped-memory

zonecfg:grandmazone> commit

zonecfg:grandmazone> exit