Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 19 Feb 2013 09:44:54 +0000
From:      "Eggert, Lars" <lars@netapp.com>
To:        Fleuriot Damien <ml@my.gd>
Cc:        "current@freebsd.org" <current@freebsd.org>
Subject:   Re: system 20% busy at all times?
Message-ID:  <D4D47BCFFE5A004F95D707546AC0D7E91F72FEA5@SACEXCMBX01-PRD.hq.netapp.com>
In-Reply-To: <E0C13149-50DF-4C88-A1AC-8BACA2965687@my.gd>
References:  <D4D47BCFFE5A004F95D707546AC0D7E91F72FC53@SACEXCMBX01-PRD.hq.netapp.com> <E0C13149-50DF-4C88-A1AC-8BACA2965687@my.gd>

next in thread | previous in thread | raw e-mail | index | archive | help
Hi,

On Feb 19, 2013, at 10:40, Fleuriot Damien <ml@my.gd>
 wrote:
> What about reviewing top(1) ?

top shows the ~20% I mentioned:

last pid:  3176;  load averages:  0.79,  0.80,  0.84                       =
                                                              up 0+14:49:49=
  09:43:51
17 processes:  1 running, 16 sleeping
CPU:  0.0% user,  0.0% nice, 18.7% system,  0.0% interrupt, 81.3% idle
Mem: 32M Active, 9456K Inact, 196M Wired, 19M Buf, 15G Free
Swap:=20

  PID USERNAME    THR PRI NICE   SIZE    RES STATE   C   TIME   WCPU COMMAN=
D
 3002 root          1  20    0 14264K  1664K select  0   0:02  0.00% powerd
 2999 root          1  20    0 25120K  3304K select  3   0:01  0.00% ntpd
 3084 root          1  20    0 81420K  6120K select  0   0:00  0.00% sshd
 3094 root          1  20    0 17180K  3956K pause   1   0:00  0.00% csh
 3062 root          1  21    0 17180K  3900K ttyin   2   0:00  0.00% csh
 2867 root          1  20    0 14296K  2028K select  1   0:00  0.00% syslog=
d
 2959 root          1  52    0 20500K  7512K rpcsvc  3   0:00  0.00% rpc.lo=
ckd
 2943 root          1  20    0 16376K  2064K select  2   0:00  0.00% rpcbin=
d
 3061 root          1  20    0 47504K  2604K wait    3   0:00  0.00% login
 2945 root          1  20    0   274M  7448K select  1   0:00  0.00% rpc.st=
atd
 3176 root          1  20    0 19608K  2996K CPU3    1   0:00  0.00% top
 2676 root          1  20    0  9016K  4652K select  0   0:00  0.00% devd
 3014 root          1  20    0 56152K  4964K select  2   0:00  0.00% sshd
 2562 root          1  29    0 14416K  2224K select  1   0:00  0.00% dhclie=
nt
 2629 _dhcp         1  20    0 14416K  2240K select  2   0:00  0.00% dhclie=
nt
 3065 root          1  20    0 14528K  1708K select  2   0:00  0.00% netser=
ver
 2708 root          1  20    0 14232K  1568K select  2   0:00  0.00% rtsold


> or possibly ps(1) aufx

# ps -aufx
USER   PID  %CPU %MEM    VSZ  RSS TT  STAT STARTED       TIME COMMAND
root    10 346.8  0.0      0   64  -  RL    6:54PM 2862:46.43 [idle]
root     0  64.1  0.0      0  496  -  DLs   6:54PM  694:47.32 [kernel]
root     1   0.0  0.0   9344  792  -  ILs   6:54PM    0:00.09 /sbin/init --
root     2   0.0  0.0      0   16  -  DL    6:54PM    0:00.00 [crypto]
root     3   0.0  0.0      0   16  -  DL    6:54PM    0:00.00 [crypto retur=
ns]
root     4   0.0  0.0      0   16  -  DL    6:54PM    0:00.00 [ctl_thrd]
root     5   0.0  0.0      0   16  -  DL    6:54PM    0:00.00 [xpt_thrd]
root     6   0.0  0.0      0   16  -  DL    6:54PM    0:00.00 [ipmi0: kcs]
root     7   0.0  0.0      0   16  -  DL    6:54PM    0:00.04 [pagedaemon]
root     8   0.0  0.0      0   16  -  DL    6:54PM    0:00.00 [pagezero]
root     9   0.0  0.0      0   16  -  DL    6:54PM    0:00.15 [bufdaemon]
root    11   0.0  0.0      0  416  -  WL    6:54PM    0:10.47 [intr]
root    12   0.0  0.0      0   48  -  DL    6:54PM    0:00.03 [geom]
root    13   0.0  0.0      0   16  -  DL    6:54PM    0:01.87 [yarrow]
root    14   0.0  0.0      0  256  -  DL    6:54PM    0:00.50 [usb]
root    15   0.0  0.0      0   16  -  DL    6:54PM    0:00.17 [vnlru]
root    16   0.0  0.0      0   16  -  DL    6:54PM    0:00.56 [syncer]
root    17   0.0  0.0      0   16  -  DL    6:54PM    0:00.21 [softdepflush=
]
root    42   0.0  0.0      0   16  -  DL    6:54PM    0:00.03 [md0]
root    53   0.0  0.0      0   16  -  DL    6:54PM    0:00.00 [md1]
root   120   0.0  0.0      0   16  -  DL    6:54PM    0:00.00 [md2]
root   125   0.0  0.0      0   16  -  DL    6:54PM    0:00.00 [md3]
root  2562   0.0  0.0  14416 2224  -  Is    6:54PM    0:00.00 dhclient: em4=
 [priv] (dhclient)
_dhcp 2629   0.0  0.0  14416 2240  -  Is    6:54PM    0:00.00 dhclient: em4=
 (dhclient)
root  2676   0.0  0.0   9016 4652  -  Is    6:54PM    0:00.01 /sbin/devd
root  2708   0.0  0.0  14232 1568  -  Is    6:54PM    0:00.00 /usr/sbin/rts=
old -a
root  2867   0.0  0.0  14296 2028  -  Ss    6:54PM    0:00.04 /usr/sbin/sys=
logd -s
root  2943   0.0  0.0  16376 2064  -  Ss    6:54PM    0:00.03 /usr/sbin/rpc=
bind
root  2945   0.0  0.0 280472 7448  -  Ss    6:54PM    0:00.02 /usr/sbin/rpc=
.statd
root  2959   0.0  0.0  20500 7512  -  Ss    6:54PM    0:00.04 /usr/sbin/rpc=
.lockd
root  2999   0.0  0.0  25120 3304  -  Ss    6:54PM    0:00.85 /usr/sbin/ntp=
d -g -c /etc/ntp.conf -p /var/run/ntpd.pid -f /var/db/ntpd.drift
root  3002   0.0  0.0  14264 1664  -  Ss    6:54PM    0:01.61 /usr/sbin/pow=
erd
root  3014   0.0  0.0  56152 4964  -  Is    6:54PM    0:00.00 /usr/sbin/ssh=
d -o PermitRootLogin=3Dwithout-password
root  3065   0.0  0.0  14528 1708  -  Is    6:54PM    0:00.00 netserver
root  3084   0.0  0.0  81420 6120  -  Ss    9:21AM    0:00.09 sshd: root@pt=
s/0 (sshd)
root  3061   0.0  0.0  47504 2604 u0  Is    6:54PM    0:00.02 login [pam] (=
login)
root  3062   0.0  0.0  17180 3900 u0  I+    6:54PM    0:00.05 -csh (csh)
root  3094   0.0  0.0  17180 3956  0  Ss    9:32AM    0:00.05 -csh (csh)
root  3177   0.0  0.0  16436 1900  0  R+    9:44AM    0:00.00 ps -aufx


> At least you should be able to see what takes up CPU:
> - system
> - user processes
> - interrupts

# vmstat -i
interrupt                          total       rate
irq3: uart1                        11535          0
irq4: uart0                         1227          0
irq9: acpi0                   1989762564      37379
irq16: uhci0 uhci1+                  393          0
cpu0:timer                      32147924        603
irq270: em4                      1907258         35
cpu3:timer                      63027976       1184
cpu2:timer                      56428246       1060
cpu1:timer                      44799884        841
Total                         2188087007      41104

So it seems that irq 9 is firing a whole lot. Why?

Thanks,
Lars=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?D4D47BCFFE5A004F95D707546AC0D7E91F72FEA5>