| Solaris |
|
|
Zones can be bound to a Resource Pool, as well as have Resource Controls added.
A Resource Pool can be used to control the number of cpus on which a zone runs.
In the future, Resource Pools will also support partitioning Physical Memory and Swap. Multiple zones may be bound to the same pool, or each zone may be bound to a unique pool, or some combination thereof. The only restriction is that a non-global zone may not be bound to, or span, more than one Resource Pool.
A zone's pool binding is specified by setting the "pool" property.
When the zone is booted, the "pool" property is applied.
Configuring a zone to bind to a pool upon boot:
# zonecfg -z zone1
zonecfg:zone1> set pool=pool1
zonecfg:zone1> exit
# zoneadm -z zone1 reboot
Binding a running zone to a pool:
# poolbind -p pool1 -i zoneid zone1
Use poolcfg(1m) and pooladm(1m) to create pool1. See Resource Pools.
Resource controls may be set on a zone to limit it's consumption of
system resources. Current resource controls are are:
# zonecfg -z zone1
zonecfg:zone1> add rctl
zonecfg:zone1:rctl> set name=zone.max-lwps
zonecfg:zone1:rctl> add value (priv=privileged,limit=100,action=deny)
zonecfg:zone1:rctl> end
zonecfg:zone1> exit
# zoneadm -z zone1 reboot
# zonecfg -z zone1
zonecfg:zone1> add rctl
zonecfg:zone1:rctl> set name=zone.max-lwps
zonecfg:zone1:rctl> add value (priv=privileged,limit=100,action=deny)
zonecfg:zone1:rctl> end
zonecfg:zone1> exit
# prctl -s -n zone.max-lwps -v 100 -t priv -e deny -i zone zone1
If the zone already has a zone.max-lwps resource control set, then replace it:
# zonecfg -z zone1
zonecfg:zone1> select rctl name=zone.max-lwps
zonecfg:zone1:rctl> remove value (priv=privileged,limit=100,action=deny)
zonecfg:zone1:rctl> add value (priv=privileged,limit=200,action=deny)
zonecfg:zone1:rctl> end
zonecfg:zone1> exit
# prctl -r -n zone.max-lwps -v 200 -i zone zone1
Terms of Use
|
Privacy
|
Trademarks
|
Copyright Policy
|
Site Guidelines
|
Site Map
|
Help
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Use.
© 2012, Oracle Corporation and/or its affiliates.