This discussion is archived
2 Replies Latest reply: Oct 20, 2011 5:56 PM by user13078764 RSS

CPU Usage on gobal and non-global zone

828152 Newbie
Currently Being Moderated
Hi,

I have three zones running on Sun Fire V445. Sar commnd shows "0%" idle on all non-global zones, but it shows almost 50% idle on the global zone, i don't have any resource pool configured or assigned. I would to like understand how it works.

Global-zone# sar 3 5

SunOS Global-zone 5.10 Generic_127127-11 sun4u 09/06/2011

11:02:44 %usr %sys %wio %idle
11:02:47 23 28 0 50
11:02:50 21 30 0 50
11:02:53 25 25 0 50
11:02:57 28 22 0 50
11:03:00 31 19 0 50

Average 26 25 0 50



non-globalzone1# sar 3 5

SunOS non-globalzone1 5.10 Generic_127127-11 sun4u 09/06/2011

11:59:14 %usr %sys %wio %idle
11:59:17 79 21 0 0
11:59:20 39 61 0 0
11:59:23 35 65 0 0
11:59:26 55 45 0 0
11:59:29 64 36 0 0

Average 55 45 0 0



non-globalzone2# sar 3 5

SunOS non-globalzone2 5.10 Generic_127127-11 sun4u 09/06/2011

11:59:56 %usr %sys %wio %idle
11:59:59 37 63 0 0
12:00:02 64 36 0 0
12:00:05 64 36 0 0
12:00:08 66 34 0 0
12:00:11 58 42 0 0

Average 58 42 0 0


non-globalzone3# sar 3 5

SunOS non-globalzone3 5.10 Generic_127127-11 sun4u 09/06/2011

12:01:29 %usr %sys %wio %idle
12:01:32 43 57 0 0
12:01:35 60 40 0 0
12:01:38 58 42 0 0
12:01:52 70 30 0 0
12:01:56 47 53 0 0

Average 61 39 0 0


Thanks,
Ros.
  • 1. Re: CPU Usage on gobal and non-global zone
    895125 Oracle ACE
    Currently Being Moderated
    Hi NEO,

    try on global zone with command prstat -Z

    regards
  • 2. Re: CPU Usage on gobal and non-global zone
    user13078764 Newbie
    Currently Being Moderated
    Hi ,
    I am not sure sar will know or care about zones,
    The best way to identify cpu usage on different zones would be to create pools associated with processor set (pset)
    then you can use prstat -Z as suggested but also use poolstat
    It takes a while to understand and use pooladm but it's worth it.
    Then you can also check min and max number of cpus for each psets, and also look at different schedulers
    example below:
    root@globmel7:[]# poolstat -r pset 3
    id pool type rid rset min max size used load
    5 weblogic-pool pset 1 weblogic-pset 12 48 48 0.00 0.31
    6 zone-pool pset 2 zone-pset 12 48 12 0.00 0.00
    0 pool_default pset -1 pset_default 1 66K 68 0.00 0.20

    id pool type rid rset min max size used load
    5 weblogic-pool pset 1 weblogic-pset 12 48 48 0.68 0.30
    6 zone-pool pset 2 zone-pset 12 48 12 0.00 0.00
    0 pool_default pset -1 pset_default 1 66K 68 0.18 0.20
    ^C
    root@globmel7:[]#

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points