f



high sys cpu on cpu# based on mpstat, but if using prstat -Lm -P 7, little cpu is used

The following prstat show little cpu is used on CPU 7#
test$>  prstat -Lm -P 7
   PID USERNAME USR SYS TRP TFL DFL LCK SLP LAT VCX ICX SCL SIG
PROCESS/LWPID
  4020 oracle   6.0 1.3 0.0 0.0 0.0 2.4  90 0.2  2K  33 18K   0 mysqld/
9
   417 root     0.0 0.0 0.0 0.0 0.0 0.0 100 0.0  12   0  60   6
in.mpathd/1
  4020 oracle   0.0 0.0 0.0 0.0 0.0 0.0 100 0.0   6   0  55   0 mysqld/
1
  1022 root     0.0 0.0 0.0 0.0 0.0 0.0 100 0.0   0   0   0   0 lcfd/1
   843 root     0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0   0   0   0   0 fmd/18
   879 root     0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0   0   0   0   0
syslogd/52


But the mpstat shows sys cpu on 7# is high, which one of the result is
correct?
CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys
wt idl
  0    0   0    0   440  146  269    1   17   52    0   833    0   1
0  99
  1    0   0    8   321    0  712    1   15   45    0  3108    3   2
0  95
  2  331   0   30    63    0  120    0    6    3    0   256    0   0
0 100
  3    0   0    0   768    3 1524    4    7   50    0  6463    9   2
0  89
  4  103   0    0   662    0 1326    2    8   30    0  5837    8   3
0  89
  5    0   0    2   636    1 1261    4    3   35    0  5597    9   2
0  89
  6    0   0    0   779    0 1558    2    2   31    0  7086    9   2
0  89
  7    0   0    0 19798 19738  914   22    4  242    0  3569    5
14   0  81
  8  103   0   29   591    1 1180    2    2   36    0  5210    8   3
0  89
  9    0   0    0    12    0   12    0    0    0    0    11    0   0
0 100
 10    0   0    0     6    0    0    0    0    0    0     0    0   0
0 100
 11    0   0    0     7    0    2    0    0    0    0     0    0   6
0  94
 12    0   0    0   786    1 1572    1    2   33    0  6791    9   2
0  89
 13  204   0   15    11    0   10    0    1    1    0   106    0   1
0  99
 14    0   0    0   143    0  278    1    0   13    0  1192    2   1
0  97
 15    0   0    0  1005    0 2035    2    0   52    0  8912   12   3
0  85
CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys
wt idl
  0    0   0    0   632  143  678    1   26   46    0  2243    4   2
0  94
  1    0   0    0   197    0  388    2   21   42    0   929    1   0
0  99
  2    0   0    0    89    0  162    0   14   12    0   264    0   0
0 100
  3    0   0    0   489    0  977    1    9   25    0  4073    6   2
0  92
  4    0   0    0   932    0 1881    7   11   56    0  8524   12   3
0  85
  5    0   0    0   802    1 1619    3    3   50    0  7162   10   2
0  88
  6    0   0    0   646    0 1305    1    2   31    0  5659    9   2
0  89
  7    0   0    0 21068 20978 1409   27    9  276    0  5591    9
15   0  76
  8    0   0    0   753    0 1521    2    3   47    0  6637   10   2
0  88
  9    0   0    0    11    0   21    0    1    3    0    26    0   0
0 100
 10    0   0    0     3    0    4    0    1    0    0     1    0   0
0 100
 11    0   0    0     3    0    4    0    1    1    0     0    0   8
0  92
 12    0   0    0   965    0 1957    4    4   61    0  8805   13   4
0  83
 13    0   0    0   115    0  230    0    4    8    0   970    1   0
0  99
 14    0   0    0   257    0  520    0    3   18    0  2236    3   1
0  96
 15    0   0    0   531    0 1071    2    2   45    0  4707    7   2
0  91

0
all_about_mem
5/12/2009 6:23:47 AM
comp.unix.solaris 26025 articles. 2 followers. Post Follow

1 Replies
855 Views

Similar Articles

[PageSpeed] 7

all_about_mem <dtrace.wu@gmail.com> wrote:
> The following prstat show little cpu is used on CPU 7#
> test$>  prstat -Lm -P 7
>   PID USERNAME USR SYS TRP TFL DFL LCK SLP LAT VCX ICX SCL SIG
> PROCESS/LWPID
>  4020 oracle   6.0 1.3 0.0 0.0 0.0 2.4  90 0.2  2K  33 18K   0 mysqld/
> 9
>   417 root     0.0 0.0 0.0 0.0 0.0 0.0 100 0.0  12   0  60   6
> in.mpathd/1
[...]

Hmm.  I'd say that this shows that processes are not taking a lot of sys
time on the CPU.  It doesn't show work that the CPU is doing outside of
any process.

> But the mpstat shows sys cpu on 7# is high, which one of the result is
> correct?
> CPU minf mjf xcal  intr ithr  csw icsw migr smtx  srw syscl  usr sys
> wt idl
[...]
>  6    0   0    0   779    0 1558    2    2   31    0  7086    9   2
> 0  89
>  7    0   0    0 19798 19738  914   22    4  242    0  3569    5
> 14   0  81

This CPU is receiving a lot of interrupts.  That's causing it to be busy
doing non-process work.

-- 
Darren
0
ddunham
5/12/2009 5:45:41 PM
Reply: