[Samba] Samba 3.0.14 (Debian Sarge) Memory Leakage

Dirk Becker dirk.becker at symeo.com
Tue Nov 14 09:34:31 GMT 2006


Hi!

Our Samba file server seems to have a memory leakage. We are using samba
as file server out of the box (debian sarge) on kernel 2.6.16.31.
After a while users who have some shares and files open are acquiring
more and more memory until the smbd dies.
Here is a small shortcut from top:
  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
13843 gxxxxx    16   0 51792  44m 2552 S  0.3 17.8   0:22.97 smbd
13840 bxxxxx    17   0 31400  25m 2764 S  0.7 10.0   2:42.78 smbd
smbd is allocation and more memory. We are using user security and
smbpasswd as password backend.

The output from 'smbcontrol 13843 pool-usage' shows:
global talloc allocations in pid: 13843
name                                       chunks    bytes
---------------------------------------- -------- --------
msg_pool_usage                                  1      159
lp_talloc                                       2        2
connection_struct                               1     1844
pipe spoolss 0x922dfb0                          0        0
pipe spoolss 0x83f4380                          0        0
connection_struct                               1     1844
connection_struct                               1     1844
passdb internal SAM_ACCOUNT allocation         19      493
passdb internal SAM_ACCOUNT allocation         17      503
pdb_context internal allocation context         5     1513
passdb internal SAM_ACCOUNT allocation          8      397
---------------------------------------- -------- --------
TOTAL                                          55     8599

Does anybody have an idea where to start? A similar problem was
described in
http://lists.samba.org/archive/samba/2005-October/112991.html but
unfortunately there was no solution given.

Any help appreciated

Dirk





More information about the samba mailing list