Bug 6277 - Samba memory use grows massively
Samba memory use grows massively
Product: Samba 3.3
Classification: Unclassified
Component: File services
x64 Linux
: P3 critical
: ---
Assigned To: Samba Bugzilla Account
Samba QA Contact
Depends on:
  Show dependency treegraph
Reported: 2009-04-19 05:40 UTC by Matt Durkin
Modified: 2009-04-20 03:02 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Matt Durkin 2009-04-19 05:40:01 UTC
System: Atom 330, 2Gig RAM, no swap, Raid 5 (mdadm) with LVM, Ubuntu Jaunty (RC) 64bit (AMD), samba 3.3.2.
Problem: using top to monitor memory use I can see that every file I transfer to the samba server increases the total memory used by the size of the file being transferred. Memory is never released, and if I transfer a very large file, the whole system will crash. The smbd process itself is not using the memory, but overall system memory is consumed for every file transfer. The memory is not released after the transfer.
I do not have any swap configured (this is intentional), but with 2G memory, this should not be a problem for this file-server environment.
I have rebuilt, re-installed etc but have the same error every time.

Please let me know what further diagnostics are required and I will happily run them / supply information.
Comment 1 Volker Lendecke 2009-04-19 06:06:45 UTC
Please post your smb.conf.

Can you post the output of

smbcontrol <pid> pool-usage

for such a large smbd? If that does now show anything, we'll ask you to run smbd under valgrind --tool=memcheck....


Comment 2 Volker Lendecke 2009-04-20 03:02:30 UTC
Closing upon reporter's request