Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 83911 - Severe memory leak in winbindd of Samba 3.0.10
Summary: Severe memory leak in winbindd of Samba 3.0.10
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-03-02 23:07 UTC by Wolf Giesen (RETIRED)
Modified: 2005-08-03 06:32 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Wolf Giesen (RETIRED) gentoo-dev 2005-03-02 23:07:52 UTC
winbindd from the samba-3.0.10 stable x86 ebuild exhibits a huge memory leak.

I run Samba 3.0.10 with winbind in ADS mode to authenticate against our Micro$oft domain. After running for couple of hours, winbindd quickly eats up memory, swapping other processes to disk and slowing down the machines.

This behaviours happens on my workstation and 7 production servers. I had to add a nightly restart during the night to avoid bogging down the machines.

Built with USE="mmx sse nptl X freetype bindist doc qt qtmt kde openal arts gtk2 gtk gnome alsa samba winbind kerberos ldap mysql gd apache2 aalib dga tiff snmp unicode xinerama -acl gnokii oscar xvid".

Kernel on all machines is gentoo-dev-sources-2.6.10-r6. Servers have various memory sizes from 512k MB to 2G.

Reproducible: Always
Steps to Reproduce:
1. Emerge samba with USE-flags mentioned above
2. Put it in ADS mode and start winbindd
3. Use the machine and watch winbindd grow

Actual Results:  
winbindd uses like 70% of memory overnight

Expected Results:  
Sane behaviour
Comment 1 Michael Glauche (RETIRED) gentoo-dev 2005-03-04 02:05:31 UTC
Please try the 3.0.11 (currently marked unstable), it might contain the fix you need:

Common bugs fixed in 3.0.11 include:

  o Crash in smbd when using CUPS printing.
  o Parsing error of other SIDs included in the user_info_3
    structure returned from domain controllers.
  o Inefficiencies when searching non-AD LDAP directories.
  o Failure to expand variables in user domain attributes
    in tdbsam and ldapsam.
  o Memory leaks.
  o Failure to retrieve certain attribute when migrating from 
    a Windows DC to a Samba DC via 'net rpc vampire'.
  o Numerous printing bugs bugs including memory 
    bloating on large/busy print servers.
  o Compatibility issues with Exchange 5.5 SP4.
  o sendfile fixes.

Additional features introduced in Samba 3.0.11:

  o Winbindd performance improvements.
  o More 'net rpc vampire' functionality.
  o Support for the Windows privilege model to assign rights
    to specific SIDs.
  o New administrative options to the 'net rpc' command.
Comment 2 Wolf Giesen (RETIRED) gentoo-dev 2005-03-04 04:05:38 UTC
I will try to upgrade in a test environment and get back to you on Monday/Tuesday.
Comment 3 Wolf Giesen (RETIRED) gentoo-dev 2005-03-04 06:11:04 UTC
Looks promising so far on my workstation where the problem used to show up after less than an hour.

Any known caveats with the 3.0.11 ebuild I should be aware of?
Comment 4 Michael Glauche (RETIRED) gentoo-dev 2005-03-04 07:28:51 UTC
no, its a bugfix only release. It's only in ~x86 for testing and i think we can bump it to stable soon. (esp. when there are quite serious issues with winbind in 3.0.10 as it seems) 
Comment 5 Wolf Giesen (RETIRED) gentoo-dev 2005-03-04 07:41:24 UTC
I would definitely consider that a good idea. Give me the weekend to see if the new version fixes the trouble. 3.0.10 in this configuration should be considered dangerous for production servers.
Comment 6 Wolf Giesen (RETIRED) gentoo-dev 2005-03-06 22:15:24 UTC
Coming back after the weekend reveals that the bug was not completely fixed in 3.0.11, although it is not as bad as before. When I came in today, winbindd's memory usage was about 29%. When I left Friday afternoon I had just booted the machine, making winbindd use ~0,4% of memory.

Still no go for production environment :-/
Comment 7 Michael Glauche (RETIRED) gentoo-dev 2005-03-07 00:58:53 UTC
Hmm, thats bad. Changelog for 3.0.12-rc1 lists memory leaks again :( I hope the new samba4 will have some more strict checking :(

Anyway, can you please bug upstream for this issue :
https://bugzilla.samba.org/
(and send me a note, or file a bug if there's some news on that topic)

Many thanks for the testing !
Comment 8 Christian Andreetta (RETIRED) gentoo-dev 2005-03-25 04:39:23 UTC
3.0.13?
Comment 9 Wolf Giesen (RETIRED) gentoo-dev 2005-04-05 05:42:23 UTC
3.0.13 looks way better by now, but I refuse to declare it "working" as of now :) Gotta see for a little longer.
Comment 10 Wolf Giesen (RETIRED) gentoo-dev 2005-07-13 05:04:45 UTC
This one is obsolete for me now as I was forced to go to 3.0.14a anyway to keep
it working with a pure 2003 domain. Follow-up is #98303. Thank you.
Comment 11 Seemant Kulleen (RETIRED) gentoo-dev 2005-08-03 06:32:54 UTC
fixed due to 3.0.14a-r2 about to go stable