Why does "nmbd" takes 99% CPU
our development server serves as a Samba server. Since yesterday, one of the Samba daeman nmbd constantly takes very high CPU usage, while all the responses to that server slows down! This already caused negotive impact to our development now. Could anyone give some explanation and solution? Thanks a lot!!!
I am attaching some of the output here.
---------------------
[root@l5mlnx18 root]# rpm -q samba
samba-2.2.1a-4
[root@l5mlnx18 root]# service smb status
smbd (pid 12389 12328 10930 8407 8378 3780 29165 12669 18582 3892 1106) is running...
nmbd (pid 1111) is running...
[root@l5mlnx18 root]#
[root@l5mlnx18 root]# cat /etc/resolv.conf
nameserver 127.0.0.1
----------------
[root@l5mlnx18 samba]# cat /etc/samba/smb.conf
# Samba config file created using SWAT
# from 172.17.51.116 (172.17.51.116)
# Date: 2003/03/28 12:25:54
# Global parameters
[global]
workgroup = L-DEV
server string = Samba Server
encrypt passwords = Yes
unix password sync = Yes
log file = /var/log/samba/%m.log
max log size = 0
dns proxy = No
printing = lprng
[homes]
comment = Home Directories
valid users = %S
read only = No
create mask = 0664
directory mask = 0775
browseable = No
#[testdir]
# comment = Home Directories
# path=/home/l5m
# read only = No
# create mask = 0664
# directory mask = 0775
# browseable = No
[printers]
comment = All Printers
path = /var/spool/samba
printable = Yes
browseable = No
-----------------------------
screenshot of "top":
10:39am up 38 days, 13:51, 13 users, load average: 0.89, 0.39, 0.33
453 processes: 451 sleeping, 2 running, 0 zombie, 0 stopped
CPU0 states: 1.2% user, 0.3% system, 0.0% nice, 97.4% idle
CPU1 states: 9.2% user, 1.0% system, 0.0% nice, 89.1% idle
CPU2 states: 0.4% user, 0.2% system, 0.0% nice, 98.4% idle
CPU3 states: 98.2% user, 1.2% system, 0.0% nice, 0.0% idle
Mem: 6179952K av, 5755660K used, 424292K free, 0K shrd, 114284K buff
Swap: 2096440K av, 776028K used, 1320412K free 2321480K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND
1111 root 25 0 3552 3372 3256 R 99.9 0.0 47:22 nmbd
13004 ysong 25 0 96596 94M 2844 S 10.6 1.5 0:08 java
12419 root 16 0 1548 1548 832 R 0.9 0.0 0:01 top
13077 ysong 15 0 96596 94M 2844 S 0.9 1.5 0:00 java
10925 xsong 15 0 1572 1572 832 S 0.7 0.0 0:22 top
850 root 15 0 0 0 0 SW 0.1 0.0 4:50 rpciod
1 root 15 0 508 460 456 S 0.0 0.0 0:07 init
2 root 15 0 0 0 0 SW 0.0 0.0 0:00 keventd
3 root 15 0 0 0 0 SW 0.0 0.0 0:00 keventd
4 root 15 0 0 0 0 SW 0.0 0.0 0:00 keventd
5 root 15 0 0 0 0 SW 0.0 0.0 0:00 keventd
6 root 34 19 0 0 0 SWN 0.0 0.0 0:02 ksoftirqd_CPU0
|