
Version | Effective: 30/11/2009 |
created with poolcfg and pooladm.
5.5.9. Dynamic resource pools for zones
[dd]As already described in 4.6.2.5 Dynamic resource pools, dynamic resource pools can very easily be used for zones since Solaris 10 8/07. The number of CPUs required is specified in the zone configuration. If the corresponding zone is started up, a temporary resource pool is created and assigned to the starting zone. This resource pool will exist for the duration of the zone and will also be destroyed once the zone is turned off.
CPUs can be specified by a fixed number of CPUs (e.g. set ncpu=10). In this case, this number must be made available to the zone at the time it starts up and will also remain assigned to it for the duration of its runtime.
If a CPU range (e.g. set
global # svcs dynamic |
|
|
| |
STATE | STIME | FMRI |
|
|
online | Jan_19 | svc:/system/pools/dynamic:default | ||
global # zonecfg |
|
| ||
zonecfg:zone1> | add |
| ||
help |
| |||
set | ||||
set | importance=30 | |||
end |
| |||
zonecfg:zone1> commit |
|
|
| |
zonecfg:zone1> exit |
|
|
| |
Once the zone is started, poolstat can be used to display the status of available resource pools.
global # poolstat 5 |
|
| |
|
| pset |
|
id pool | size used load | ||
0 | pool_default | 32 0.02 | 0.04 |
<<State change>> |
|
| |
|
| pset |
|
id pool | size used load | ||
0 | pool_default | 18 0.61 | 0.05 |
12 | SUNWtmp_zone1 | 14 0.00 | 0.03 |
|
| pset |
|
id pool | size used load | ||
0 | pool_default | 18 0.03 | 0.07 |
12 | SUNWtmp_zone1 | 14 1.40 | 0.08 |
If during the runtime of a zone, in the absence of automatic influence by poold, a zone is to have additional CPUs assigned to it, this must be done by using the command poolcfg. However, the change in the number of CPUs must remain within the specified CPU range.
∙Increasing the number of CPUs in a resource pool
poolcfg
∙Reducing the number of CPUs in a resource pool
poolcfg
poolcfg