Bug 6480 - Samba4 uses huge amounts of memory per process
Summary: Samba4 uses huge amounts of memory per process
Status: RESOLVED FIXED
Alias: None
Product: Samba 4.0
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: Other Linux
: P3 normal (vote)
Target Milestone: ---
Assignee: Andrew Bartlett
QA Contact: Andrew Bartlett
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-16 14:56 UTC by Kai Blin
Modified: 2009-06-29 22:34 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 Kai Blin 2009-06-16 14:56:30 UTC
While trying to make Samba4 work as AD DC on a 128meg ARM box, I stumbled over a couple of samba processes using around 12 megabytes each. The memory usage as reported by top seems to decrease over time, but at startup time this forces the system to start swapping.

Simo pointed out that the tdbs are mmapped and a likely cause for this. However, the suggestion of setting "use mmap = no" in smb.conf doesn't help as S4 does not recognize this parameter.
Comment 1 Andrew Bartlett 2009-06-29 22:34:02 UTC
As per our discussion on IRC, running as a single process should be the goal on this platform.  That seemed to fix things up pretty well for you. 

If you still think it's too bloated, feel free to re-open.