L.P.H. van Belle
2016-Dec-15 11:29 UTC
[Samba] memory leak 4.4.5. but where and is it fixed already?
Hai, Im seeing memory leaks, in going throug the bug list, but i think i need some help here. Mainly what i want to know if this is fixed in 4.5.2 ( now running 4.4.5) Situation. Debian Jessie amd64, Samba 4.4.5-3. (debian stretch rebuild at that time ) on both DC’s. Both servers have the same install. DC1 uses rsync for syncing sysvol and automated backups with the backup_samba script. Bind NTP etc is setup. Uptime DC1 = 21 Days. DC2 = 2 Days Im see the following. On DC1: free -m total used free shared buffers cached Mem: 2002 1923 79 1 4 100 -/+ buffers/cache: 1818 183 Swap: 1895 903 992 systemctl restart samba-ad-dc free -m total used free shared buffers cached Mem: 2002 364 1637 1 6 112 -/+ buffers/cache: 246 1755 Swap: 1895 80 1815 A drop of about 1.5 GB ram use for DC1. And on DC2: free -m total used free shared buffers cached Mem: 2002 732 1269 40 87 294 -/+ buffers/cache: 350 1651 Swap: 1895 0 1895 systemctl restart samba-ad-dc free -m total used free shared buffers cached Mem: 2002 649 1352 40 87 293 -/+ buffers/cache: 267 1734 Swap: 1895 0 1895 A drop of about 80Mb ( but only 2 days uptime ) I did see : https://bugzilla.samba.org/show_bug.cgi?id=12173 ( Rsync .. memory leak around poptGetOptArg() But i dont know how this is samba related. https://bugzilla.samba.org/show_bug.cgi?id=11985 but i dont use CTDB. https://bugzilla.samba.org/show_bug.cgi?id=7902 Memory problems in pidl python bindings maybe ? https://bugzilla.samba.org/show_bug.cgi?id=11901 Reparenting in a destructor incorrectly terminates freeing of children leading to a memory leak. Maybe , looks more like it. Software used : ii ldb-tools 2:1.1.26-1~bpo8+1 amd64 LDAP-like embedded database - tools ii libldb1:amd64 2:1.1.26-1~bpo8+1 amd64 LDAP-like embedded database - shared library ii libnss-winbind:amd64 2:4.4.5+dfsg-3~bpo8+1 amd64 Samba nameservice integration plugins ii libpam-winbind:amd64 2:4.4.5+dfsg-3~bpo8+1 amd64 Windows domain authentication integration plugin ii libsmbclient:amd64 2:4.4.5+dfsg-3~bpo8+1 amd64 shared library for communication with SMB/CIFS servers ii libtalloc2:amd64 2.1.7-1~bpo8+1 amd64 hierarchical pool based memory allocator ii libtdb1:amd64 1.3.9-1~bpo8+1 amd64 Trivial Database - shared library ii libtevent0:amd64 0.9.28-1~bpo8+1 amd64 talloc-based event loop library - shared library ii libwbclient0:amd64 2:4.4.5+dfsg-3~bpo8+1 amd64 Samba winbind client library ii python-ldb 2:1.1.26-1~bpo8+1 amd64 Python bindings for LDB ii python-samba 2:4.4.5+dfsg-3~bpo8+1 amd64 Python bindings for Samba ii python-talloc 2.1.7-1~bpo8+1 amd64 hierarchical pool based memory allocator - Python bindings ii python-tdb 1.3.9-1~bpo8+1 amd64 Python bindings for TDB ii samba 2:4.4.5+dfsg-3~bpo8+1 amd64 SMB/CIFS file, print, and login server for Unix ii samba-common 2:4.4.5+dfsg-3~bpo8+1 all common files used by both the Samba server and client ii samba-common-bin 2:4.4.5+dfsg-3~bpo8+1 amd64 Samba common files used by both the server and the client ii samba-dsdb-modules 2:4.4.5+dfsg-3~bpo8+1 amd64 Samba Directory Services Database ii samba-libs:amd64 2:4.4.5+dfsg-3~bpo8+1 amd64 Samba core libraries ii samba-vfs-modules 2:4.4.5+dfsg-3~bpo8+1 amd64 Samba Virtual FileSystem plugins ii smbclient 2:4.4.5+dfsg-3~bpo8+1 amd64 command-line SMB/CIFS clients for Unix ii tdb-tools 1.3.9-1~bpo8+1 amd64 Trivial Database - bundled binaries ii winbind 2:4.4.5+dfsg-3~bpo8+1 amd64 service to resolve user and group information from Windows NT servers ( if needed, found here : http://downloads.van-belle.nl/samba4/samba-4.4.5-3/ or install them through my apt repo. ) Now, before i upgrade these servers to samba 4.5.2. anyone interessted in debugging this? If so please let me know, because im not good in debugging memory leaks, And if so, i’ll wait a bit longer with upgrading to 4.5.2 for the DC’s. Best regards, Louis