Bug 6277 - Samba memory use grows massively
Summary: Samba memory use grows massively
Status: RESOLVED INVALID
Alias: None
Product: Samba 3.3
Classification: Unclassified
Component: File services (show other bugs)
Version: 3.3.2
Hardware: x64 Linux
: P3 critical
Target Milestone: ---
Assignee: Samba Bugzilla Account
QA Contact: Samba QA Contact
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-04-19 05:40 UTC by Matt Durkin
Modified: 2009-04-20 03:02 UTC (History)
0 users

See Also:


Attachments

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....

Thanks,

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