[Samba] nmbd processes hanging

Stefan Froehlich samba at Froehlich.Priv.at
Wed Mar 24 17:13:19 GMT 2004


Hello,

I have a Debian machine with samba 3.0.2a-1 (which should bei identical
to samba-latests, AFAIK). For a reason not yet known nmbd processes keep
hanging around forever, eating up memory slowly, but steadily.

Logfiles do not show anything suspicious (to me, at least, I don't want
to put a days level 10 log in here), except from things like

| Mar  8 10:06:22 bertha kernel: Out of Memory: Killed process 30214 (nmbd).

when finally running out of memory. For a hanging process, lsof is showing the
following (skipping dynamic libraries):

| nmbd      23058     root  cwd    DIR      104,1    1024      8162 /root
| nmbd      23058     root  rtd    DIR      104,1    1024         2 /
| nmbd      23058     root  txt    REG      104,5  833036     65198 /usr/sbin/nmbd
| nmbd      23058     root  mem    REG      104,7     696    293191 /var/run/samba/messages.tdb
| nmbd      23058     root  mem    REG      104,5  131072     97828 /usr/share/samba/upcase.dat
| nmbd      23058     root  mem    REG      104,5  131072     97825 /usr/share/samba/lowcase.dat
| nmbd      23058     root  mem    REG      104,5   65536     99534 /usr/share/samba/valid.dat
| nmbd      23058     root  mem    REG      104,7    8192    293192 /var/run/samba/gencache.tdb
| nmbd      23058     root    0u   CHR        1,3             10266 /dev/null
| nmbd      23058     root    1u   CHR        1,3             10266 /dev/null
| nmbd      23058     root    2w   REG      104,7    8562    276977 /var/log/samba/log.nmbd.1 (deleted)
| nmbd      23058     root    3w   REG      104,7    8562    276977 /var/log/samba/log.nmbd.1 (deleted)
| nmbd      23058     root    4r  FIFO        0,7            532122 pipe
| nmbd      23058     root    5u  unix 0xf7a26380            532124 socket
| nmbd      23058     root    6w   REG      104,7       6    293190 /var/run/samba/nmbd.pid
| nmbd      23058     root    7w  FIFO        0,7            532123 pipe
| nmbd      23058     root    8u   REG      104,7     696    293191 /var/run/samba/messages.tdb
| nmbd      23058     root    9u  IPv4     532126               UDP *:netbios-ns 
| nmbd      23058     root   10u  IPv4     532127               UDP *:netbios-dgm 
| nmbd      23058     root   11u  IPv4     532129               UDP bertha.meitner.priv:netbios-ns 
| nmbd      23058     root   12u  IPv4     532130               UDP bertha.meitner.priv:netbios-dgm 
| nmbd      23058     root   13r  FIFO        0,7            532131 pipe
| nmbd      23058     root   14w  FIFO        0,7            532131 pipe
| nmbd      23058     root   15u   REG      104,7    8192    293192 /var/run/samba/gencache.tdb
| nmbd      23058     root   16w   REG      104,7       0    293215 /var/run/samba/sync.12
| nmbd      23058     root   18r  FIFO        0,7            533502 pipe
| nmbd      23058     root   19w  FIFO        0,7            533502 pipe

An strace results in: 

| recv(1076380172,

And waiting there forever.

Is there anything I can do to help hunting down the problem? And is there
anything I can do _now_ to prevent it? A daily "killall -9" does not seem
to be a nice solution to me.

Bye,
  Stefan

--
http://kontaktinser.at/
Kontaktanzeigen für Österreich - kostenlos und unkommerziell


More information about the samba mailing list