[Samba] Over 400 smbd pid's?
Ed Kasky
ed at esson.net
Sun Feb 15 23:34:40 GMT 2009
On Fri, Feb 13, 2009 at 2:07:29 pm, Volker wrote:
>Ok, you need to figure out now where fd "22" points. lsof together
>with "ls -l /proc/22122/fd" might help. I'd suspect that it's a
>socket where the other end is dead for some reason. If you can
>figure out what daemon is on the other end, you might try to restart it.
>
>Volker
Well, everything went okay for about 36 hours and then at around
10:30 am today, I noticed 3 new pid's every 6 minutes and growing. I
traced a couple of the first ones and they all come back pretty much
with the same info. I did notice some sockets in the list though -
but am not sure how to read it all:
This is a shortened list of the forst 9- there are over 150 as I
write this. 13618 seems to be the oldest:
# ps aux | grep smbd
USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
root 13334 0.0 0.0 26752 860 ? S 10:34 0:00 smbd -D
root 13336 0.0 0.0 26752 860 ? S 10:34 0:00 smbd -D
root 13341 0.0 0.0 26752 860 ? S 10:34 0:00 smbd -D
root 13576 0.0 0.0 26752 860 ? S 10:40 0:00 smbd -D
root 13578 0.0 0.0 26752 860 ? S 10:40 0:00 smbd -D
root 13584 0.0 0.0 26752 860 ? S 10:40 0:00 smbd -D
root 13594 0.0 0.2 26752 2992 ? Ss Feb14 0:00 smbd -D
root 13608 0.0 0.1 16376 1084 ? S Feb14 0:00 smbd -D
ed 13618 17.6 0.5 28884 5712 ? S Feb14 199:16 smbd -D
This is the same as the other day:
# strace -p 13336
Process 13336 attached - interrupt to quit
write(22, "q", 1
Here is the results of the ls and lsof for one of the first ones on the list:
# ls -l /proc/13336/fd
lrwx------ 1 root root 64 Feb 15 14:55 0 -> /dev/null
lrwx------ 1 root root 64 Feb 15 14:55 1 -> /dev/null
lrwx------ 1 root root 64 Feb 15 14:55 10 -> /var/lib/samba/brlock.tdb
lrwx------ 1 root root 64 Feb 15 14:55 11 -> /var/lib/samba/locking.tdb
lrwx------ 1 root root 64 Feb 15 14:55 12 -> /var/lib/samba/gencache.tdb
lrwx------ 1 root root 64 Feb 15 14:55 13 -> /var/lib/samba/ntdrivers.tdb
lrwx------ 1 root root 64 Feb 15 14:55 14 -> /var/lib/samba/group_mapping.ldb
lrwx------ 1 root root 64 Feb 15 14:55 15 -> /var/lib/samba/account_policy.tdb
lrwx------ 1 root root 64 Feb 15 14:55 16 -> /var/lib/samba/ntprinters.tdb
lrwx------ 1 root root 64 Feb 15 14:55 17 -> /var/lib/samba/ntforms.tdb
lr-x------ 1 root root 64 Feb 15 14:55 18 -> pipe:[2447382]
l-wx------ 1 root root 64 Feb 15 14:55 2 -> /var/log/samba/log.smbd
lrwx------ 1 root root 64 Feb 15 14:55 21 -> socket:[2447395]
lrwx------ 1 root root 64 Feb 15 14:55 22 -> socket:[2447396]
lr-x------ 1 root root 64 Feb 15 14:55 23 -> pipe:[2447397]
l-wx------ 1 root root 64 Feb 15 14:55 24 -> pipe:[2447397]
lrwx------ 1 root root 64 Feb 15 14:55 25 -> socket:[2447398]
lr-x------ 1 root root 64 Feb 15 14:55 26 -> pipe:[2447402]
l-wx------ 1 root root 64 Feb 15 14:55 27 -> pipe:[2447402]
l-wx------ 1 root root 64 Feb 15 14:55 28 -> /var/log/samba/log.smbd
lr-x------ 1 root root 64 Feb 15 14:55 3 -> /dev/urandom
lrwx------ 1 root root 64 Feb 15 14:55 4 -> /var/lib/samba/private/secrets.tdb
lrwx------ 1 root root 64 Feb 15 14:55 5 -> /var/lib/samba/messages.tdb
lrwx------ 1 root root 64 Feb 15 14:55 6 -> socket:[2845921]
l-wx------ 1 root root 64 Feb 15 14:55 7 -> /var/run/smbd.pid
lrwx------ 1 root root 64 Feb 15 14:55 8 -> /var/lib/samba/sessionid.tdb
lrwx------ 1 root root 64 Feb 15 14:55 9 -> /var/lib/samba/connections.tdb
# /usr/sbin/lsof | grep 13336
smbd 13336 root cwd DIR 253,1 4096
524289 /home/ed
smbd 13336 root rtd DIR 253,0 4096 2 /
smbd 13336 root txt REG 253,3 6282700
2879016 /usr/sbin/smbd
smbd 13336 root mem REG 253,0 125728
1831475 /lib/ld-2.5.so
smbd 13336 root mem REG 253,3 240444
500290 /usr/lib/libldap-2.3.so.0.2.18
smbd 13336 root mem REG 253,3 53824
499653 /usr/lib/liblber-2.3.so.0.2.18
smbd 13336 root mem REG 253,3 174540
500135 /usr/lib/libgssapi_krb5.so.2.2
smbd 13336 root mem REG 253,3 559532
500132 /usr/lib/libkrb5.so.3.2
smbd 13336 root mem REG 253,3 157196
500129 /usr/lib/libk5crypto.so.3.0
smbd 13336 root mem REG 253,0 7944
1834038 /lib/libcom_err.so.2.1
smbd 13336 root mem REG 253,0 76400
1834033 /lib/libresolv-2.5.so
smbd 13336 root mem REG 253,0 16428
1834002 /lib/libdl-2.5.so
smbd 13336 root mem REG 253,3 229776
495776 /usr/lib/libcups.so.2
smbd 13336 root mem REG 253,3 75284
498649 /usr/lib/libz.so.1.2.3
smbd 13336 root mem REG 253,0 125644
1834016 /lib/libpthread-2.5.so
smbd 13336 root mem REG 253,0 208352
1834012 /lib/libm-2.5.so
smbd 13336 root mem REG 253,0 27736
1831556 /lib/libcrypt-2.5.so
smbd 13336 root mem REG 253,0 43592
1835568 /lib/libpam.so.0.81.5
smbd 13336 root mem REG 253,0 26028
1835566 /lib/libacl.so.1.1.0
smbd 13336 root mem REG 253,0 15972
1835565 /lib/libattr.so.1.1.0
smbd 13336 root mem REG 253,0 11752
1834028 /lib/libcap.so.1.10
smbd 13336 root mem REG 253,0 101404
1834031 /lib/libnsl-2.5.so
smbd 13336 root mem REG 253,3 31656
498013 /usr/lib/libdns_sd.so.1.0.1
smbd 13336 root mem REG 253,0 33944
1831226 /lib/libpopt.so.0.0.0
smbd 13336 root mem REG 253,3 34180
500305 /usr/lib/libtalloc.so.1
smbd 13336 root mem REG 253,3 54716
493731 /usr/lib/libtdb.so.1
smbd 13336 root mem REG 253,3 34284
500281 /usr/lib/libwbclient.so.0
smbd 13336 root mem REG 253,0 1589908
1833997 /lib/libc-2.5.so
smbd 13336 root mem REG 253,3 99252
500282 /usr/lib/libsasl2.so.2.0.22
smbd 13336 root mem REG 253,0 281008
1835557 /lib/libssl.so.0.9.8b
smbd 13336 root mem REG 253,0 1243024
1834039 /lib/libcrypto.so.0.9.8b
smbd 13336 root mem REG 253,3 30596
500125 /usr/lib/libkrb5support.so.0.1
smbd 13336 root mem REG 253,3 509840
501154 /usr/lib/libgnutls.so.13.0.6
smbd 13336 root mem REG 253,0 76772
1831557 /lib/libaudit.so.0.0.0
smbd 13336 root mem REG 253,3 45576
500139 /usr/lib/libavahi-common.so.3.4.3
smbd 13336 root mem REG 253,3 63196
500143 /usr/lib/libavahi-client.so.3.2.1
smbd 13336 root mem REG 253,3 347700
500936 /usr/lib/libgcrypt.so.11.2.2
smbd 13336 root mem REG 253,3 13376
500291 /usr/lib/libgpg-error.so.0.3.0
smbd 13336 root mem REG 253,0 238080
1834030 /lib/libdbus-1.so.3.2.0
smbd 13336 root mem REG 253,3 9484
493647 /usr/lib/gconv/UTF-16.so
smbd 13336 root mem REG 253,3 9472
493542 /usr/lib/gconv/IBM850.so
smbd 13336 root mem REG 253,0 46680
1832137 /lib/libnss_files-2.5.so
smbd 13336 root mem REG 253,4 90112
1966186 /var/lib/samba/connections.tdb
smbd 13336 root mem REG 253,4 8192
1966192 /var/lib/samba/account_policy.tdb
smbd 13336 root mem REG 253,4 77824
2719748 /var/lib/samba/group_mapping.ldb
smbd 13336 root mem REG 253,4 696
1966198 /var/lib/samba/ntforms.tdb
smbd 13336 root mem REG 253,4 8192
1966197 /var/lib/samba/ntprinters.tdb
smbd 13336 root mem REG 253,4 8192
1966189 /var/lib/samba/gencache.tdb
smbd 13336 root mem REG 253,4 1552384
1966188 /var/lib/samba/locking.tdb
smbd 13336 root mem REG 253,4 90112
1966187 /var/lib/samba/brlock.tdb
smbd 13336 root mem REG 253,3 65536
622290 /usr/lib/samba/valid.dat
smbd 13336 root mem REG 253,3 56453488
493413 /usr/lib/locale/locale-archive
smbd 13336 root mem REG 253,3 131072
622151 /usr/lib/samba/lowcase.dat
smbd 13336 root mem REG 253,3 131072
622153 /usr/lib/samba/upcase.dat
smbd 13336 root mem REG 253,4 8192
1966196 /var/lib/samba/ntdrivers.tdb
smbd 13336 root mem REG 253,4 163840
1966185 /var/lib/samba/sessionid.tdb
smbd 13336 root mem REG 253,4 12288
2429241 /var/lib/samba/private/secrets.tdb
smbd 13336 root mem REG 253,4 8192
1966183 /var/lib/samba/messages.tdb
smbd 13336 root mem REG 253,3 25462
493659 /usr/lib/gconv/gconv-modules.cache
smbd 13336 root 0u CHR 1,3
1906 /dev/null
smbd 13336 root 1u CHR 1,3
1906 /dev/null
smbd 13336 root 2w REG 253,4 0
131104 /var/log/samba/log.smbd
smbd 13336 root 3r CHR 1,9
2455 /dev/urandom
smbd 13336 root 4u REG 253,4 12288
2429241 /var/lib/samba/private/secrets.tdb
smbd 13336 root 5u REG 253,4 8192
1966183 /var/lib/samba/messages.tdb
smbd 13336 root 6u sock 0,5
2845921 can't identify protocol
smbd 13336 root 7w REG 253,4 6
688193 /var/run/smbd.pid
smbd 13336 root 8u REG 253,4 163840
1966185 /var/lib/samba/sessionid.tdb
smbd 13336 root 9u REG 253,4 90112
1966186 /var/lib/samba/connections.tdb
smbd 13336 root 10u REG 253,4 90112
1966187 /var/lib/samba/brlock.tdb
smbd 13336 root 11u REG 253,4 1552384
1966188 /var/lib/samba/locking.tdb
smbd 13336 root 12u REG 253,4 8192
1966189 /var/lib/samba/gencache.tdb
smbd 13336 root 13u REG 253,4 8192
1966196 /var/lib/samba/ntdrivers.tdb
smbd 13336 root 14u REG 253,4 77824
2719748 /var/lib/samba/group_mapping.ldb
smbd 13336 root 15u REG 253,4 8192
1966192 /var/lib/samba/account_policy.tdb
smbd 13336 root 16u REG 253,4 8192
1966197 /var/lib/samba/ntprinters.tdb
smbd 13336 root 17u REG 253,4 696
1966198 /var/lib/samba/ntforms.tdb
smbd 13336 root 18r FIFO 0,6 2447382 pipe
smbd 13336 root 21u unix 0xd4342200 2447395 socket
smbd 13336 root 22u unix 0xf1fd4000 2447396 socket
smbd 13336 root 23r FIFO 0,6 2447397 pipe
smbd 13336 root 24w FIFO 0,6 2447397 pipe
smbd 13336 root 25u unix 0xd283c600 2447398 socket
smbd 13336 root 26r FIFO 0,6 2447402 pipe
smbd 13336 root 27w FIFO 0,6 2447402 pipe
smbd 13336 root 28w REG 253,4 0
131104 /var/log/samba/log.smbd
And the sockets from the first 9 in the lsit of pid's:
# ls -l /proc/13334/fd | grep socket
lrwx------ 1 root root 64 Feb 15 14:54 21 -> socket:[2447395]
lrwx------ 1 root root 64 Feb 15 14:54 22 -> socket:[2447396]
lrwx------ 1 root root 64 Feb 15 14:54 25 -> socket:[2447398]
lrwx------ 1 root root 64 Feb 15 14:54 29 -> socket:[2845913]
# ls -l /proc/13336/fd | grep socket
lrwx------ 1 root root 64 Feb 15 14:55 21 -> socket:[2447395]
lrwx------ 1 root root 64 Feb 15 14:55 22 -> socket:[2447396]
lrwx------ 1 root root 64 Feb 15 14:55 25 -> socket:[2447398]
lrwx------ 1 root root 64 Feb 15 14:55 6 -> socket:[2845921]
# ls -l /proc/13341/fd | grep socket
lrwx------ 1 root root 64 Feb 15 14:56 21 -> socket:[2447395]
lrwx------ 1 root root 64 Feb 15 14:56 22 -> socket:[2447396]
lrwx------ 1 root root 64 Feb 15 14:56 25 -> socket:[2447398]
lrwx------ 1 root root 64 Feb 15 14:56 6 -> socket:[2845934]
# ls -l /proc/13576/fd | grep socket
lrwx------ 1 root root 64 Feb 15 14:59 21 -> socket:[2447395]
lrwx------ 1 root root 64 Feb 15 14:59 22 -> socket:[2447396]
lrwx------ 1 root root 64 Feb 15 14:59 25 -> socket:[2447398]
lrwx------ 1 root root 64 Feb 15 14:59 28 -> socket:[2846849]
# ls -l /proc/13578/fd | grep socket
lrwx------ 1 root root 64 Feb 15 14:59 21 -> socket:[2447395]
lrwx------ 1 root root 64 Feb 15 14:59 22 -> socket:[2447396]
lrwx------ 1 root root 64 Feb 15 14:59 25 -> socket:[2447398]
lrwx------ 1 root root 64 Feb 15 14:59 28 -> socket:[2846854]
# ls -l /proc/13584/fd | grep socket
lrwx------ 1 root root 64 Feb 15 14:59 21 -> socket:[2447395]
lrwx------ 1 root root 64 Feb 15 14:59 22 -> socket:[2447396]
lrwx------ 1 root root 64 Feb 15 14:59 25 -> socket:[2447398]
lrwx------ 1 root root 64 Feb 15 14:59 28 -> socket:[2846889]
# ls -l /proc/13594/fd | grep socket
lrwx------ 1 root root 64 Feb 15 14:59 19 -> socket:[2447386]
lrwx------ 1 root root 64 Feb 15 14:59 20 -> socket:[2447388]
lrwx------ 1 root root 64 Feb 15 14:59 21 -> socket:[2447395]
lrwx------ 1 root root 64 Feb 15 14:59 22 -> socket:[2447396]
lrwx------ 1 root root 64 Feb 15 14:59 25 -> socket:[2447398]
# ls -l /proc/13608/fd | grep socket
# ls -l /proc/13618/fd | grep socket
lrwx------ 1 root root 64 Feb 15 14:59 19 -> socket:[2449284]
lrwx------ 1 root root 64 Feb 15 14:59 28 -> socket:[2447423]
Any ideas are welcome and appreciated as I don't have a clue nor can
I find anything in my googling...
Ed
...........................................................................
Randomly Generated Quote (14 of 1503):
"A man travels the world over in search of what he needs, and
returns home to find it." - George Moore
More information about the samba
mailing list