Victor Feng wrote: > Given the importance of zones and some other info, is there any formula to > calculate the number of CPUs that system will allocate to each zone? > > e.g. > Following system has only two zones with dynamic pool service enabled. > Total number of CPU in the system is 32. > > # zonecfg -z zoneA info dedicated-cpu > dedicated-cpu: > ncpus: 4-8 > importance: 80 > > # zonecfg -z zoneB info dedicated-cpu > dedicated-cpu: > ncpus: 4-8 > importance: 5 > > zoneA has 8 CPU-intense processes running, e.g. dd if=/dev/zero of=/dev/null, > zoneB has 8 CPU-intense processes running too. > Global zone has two such processes. Global zone is not configured, so its > importance is 1 by default.
In this example the importance doesn't matter since you have more processors that you have allocated. That is, both zones are busy but they are limited to a maximum of 8 CPUs, so they should each eventually get assigned 8 CPUs for a total of 16, leaving 16 CPUs in the default pool for the global zone to use. Jerry _______________________________________________ opensolaris-discuss mailing list [email protected]
