I did a couple of tests, in most of tests, importance could not play its role.
With following configuration,
[EMAIL PROTECTED] zonecfg -z global info dedicated-cpu
dedicated-cpu:
ncpus: 2-20
importance: 4
[EMAIL PROTECTED] zonecfg -z zoneA info dedicated-cpu
dedicated-cpu:
ncpus: 2-20
importance: 4
[EMAIL PROTECTED] zonecfg -z zoneB info dedicated-cpu
dedicated-cpu:
ncpus: 2-20
importance: 2
Test 1.
[EMAIL PROTECTED] perl -e 'while (--$ARGV[0] and fork) {}; while () {}' 10 &
[EMAIL PROTECTED] perl -e 'while (--$ARGV[0] and fork) {}; while () {}' 10 &
# prstat -Z
ZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE
1 45 163M 236M 1.5% 0:35:36 16% zoneB
2 45 167M 240M 1.5% 0:31:30 12% zoneA
0 46 259M 332M 2.0% 0:01:48 0.1% global
Note: The server is 8-core T2000. The number of usable cpus is 12 when the
running processes are
single-thread based on my tests. Each cpu represent 1/32=3.1%. The total number
of cpus used by
zoneB and zoneA is about 9 (28%) in the case.
[EMAIL PROTECTED] perl -e 'while (--$ARGV[0] and fork) {}; while () {}' 10 &
Wait for 15 minutes
# prstat -Z
ZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE
1 45 163M 236M 1.5% 1:21:44 16% zoneB
2 45 167M 240M 1.5% 1:08:24 12% zoneA
0 57 266M 338M 2.1% 0:16:12 6.2% global
Test 2.
# init 6
[EMAIL PROTECTED] perl -e 'while (--$ARGV[0] and fork) {}; while () {}' 10 &
[EMAIL PROTECTED] perl -e 'while (--$ARGV[0] and fork) {}; while () {}' 10 &
[EMAIL PROTECTED] perl -e 'while (--$ARGV[0] and fork) {}; while () {}' 10 &
# prstat -Z
ZONEID NPROC SWAP RSS MEMORY TIME CPU ZONE
1 45 164M 237M 1.5% 0:43:22 12% zoneA
0 56 240M 301M 1.8% 0:43:51 12% global
2 45 179M 240M 1.5% 0:37:56 9.3% zoneB
Thanks
Victor
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]