Information Technology Reference
In-Depth Information
Global zone administrators can view the current configuration of pools with
the poolstat command. A private pool has a name beginning with SUNWtmp_
followed by the name of the Container:
GZ# poolstat
pset
id pool size used load
1 SUNWtmp_web 2 0.00 0.00
0 pool_default 2 0.00 0.24
Note that the pool is associated with a processor set that contains the CPUs.
To change the pool size to a dynamic quantity for the next time the Container
boots, you can run the following commands to allocate between two and four
processors to the Container. The first command enables the service poold . This
service is aware of resource pools that have been configured with a variable quantity
of CPUs. It tracks CPU utilization of those pools and, if one is over-utilized, shifts
a CPU to it from an under-utilized pool. If multiple pools are over-utilized, the
importance parameter informs the OS of the relative importance of this pool
compared to other pools. 3
GZ# svcadm enable pools/dynamic
GZ# zonecfg -z web
zonecfg:web> select dedicated-cpu
zonecfg:web:dedicated-cpu> set ncpus=2-4
zonecfg:web:dedicated-cpu> set importance=5
zonecfg:web:dedicated-cpu> end
zonecfg:web> exit
GZ# zoneadm -z web reboot
The size of a pool can be changed while the Container runs by manually shifting
CPUs from one pool to another. This manipulation requires learning the name of
the processor set.
GZ# poolstat -r pset
id pool type rid rset min max size used load
1 SUNWtmp_web pset 1 SUNWtmp_web 2 2 2 0.00 0.00
0 pool_default pset -1 pset_default 1 66K 1 0.00 0.24
3.
For more information on the ability to load balance by automatically shifting CPUs from one pool to
another, see Solaris 10 Administration Guide: Solaris Containers: Resource Management and Solaris
Zones at http://docs.sun.com/app/docs/prod/solaris.10 .
 
 
Search WWH ::




Custom Search