Further to my (as yet unanswered) last 2 requests for help, I can add the following: I tried reconfiguring and recompiling without winbind and it made no difference at all. I've just reinstalled another server for a client (RH7.2, samba 2.2.2 with smbmount and pam and without winbind and it works perfectly - no leaks at all). My server I've reinstalled 3 times and it consistently has the same runaway smbd process. I can kill that process and it just restarts under a different PID. Currently I'm running a cron job every night to killall -9 smbd and then reload it again (killall -HUP smbd does *not* kill the relevant process and free the memory used, only killall -9.) Obviously this is a nasty hack and it does affect performance. Please, if there's anybody out there who can give me some pointers, please do. It gets quite despondent after 2 posts being ignored. (1st one was Dec 22, 2nd one was Jan 13). Thanks in anticipation Mark
On 16 Jan 2002, Mark Shearar wrote:> Further to my (as yet unanswered) last 2 requests for help, I can add > the following: > > I tried reconfiguring and recompiling without winbind and it made no > difference at all. > > I've just reinstalled another server for a client (RH7.2, samba 2.2.2 > with smbmount and pam and without winbind and it works perfectly - no > leaks at all). My server I've reinstalled 3 times and it consistently > has the same runaway smbd process. I can kill that process and it just > restarts under a different PID. Currently I'm running a cron job every > night to killall -9 smbd and then reload it again (killall -HUP smbd > does *not* kill the relevant process and free the memory used, only > killall -9.) Obviously this is a nasty hack and it does affect > performance.The sugject refers to a memory leak, but this paragraph refers to a runaway process. Do you mean runaway memory usage? Are you running as a PDC? if so, up the log level and look for NT_STATUS_NO_SUCH_USER or a similar message. I fixed a memory leak relating to domain logons a few weeks ago. It's in the cvs tree or I can send you a patch. chau, jerry --------------------------------------------------------------------- Hewlett-Packard http://www.hp.com SAMBA Team http://www.samba.org -- http://www.plainjoe.org "Sam's Teach Yourself Samba in 24 Hours" 2ed. ISBN 0-672-32269-2 --"I never saved anything for the swim back." Ethan Hawk in Gattaca--
Nasır Yılmaz (ATM/Network Grp. Bşk. Sistem Mühendisi)
2002-Feb-07 07:44 UTC
[Samba] Re: smbd memory leak
I have same error like this is it about memory ? cc: Error: libsmb/clierror.c, line 185: In the initializer for nt_errno_map[0].status.v, "NTSTATUS" is a struct type, which is not scalar. (needscalartyp) {NT_STATUS_ACCESS_VIOLATION, EACCES}, ---------^ cc: Error: libsmb/clierror.c, line 186: In the initializer for nt_errno_map[1].status.v, "NTSTATUS" is a struct type, which is not scalar. (needscalartyp) {NT_STATUS_NO_SUCH_FILE, ENOENT}, ---------^ cc: Error: libsmb/clierror.c, line 187: In the initializer for nt_errno_map[2].status.v, "NTSTATUS" is a struct type, which is not scalar. (needscalartyp) {NT_STATUS_NO_SUCH_DEVICE, ENODEV}, ---------^ cc: Error: libsmb/clierror.c, line 188: In the initializer for nt_errno_map[3].status.v, "NTSTATUS" is a struct type, which is not scalar. (needscalartyp) {NT_STATUS_INVALID_HANDLE, EBADF}, ---------^ cc: Error: libsmb/clierror.c, line 189: In the initializer for nt_errno_map[4].status.v, "NTSTATUS" is a struct type, which is not scalar. (needscalartyp) {NT_STATUS_NO_MEMORY, ENOMEM}, ---------^ cc: Error: libsmb/clierror.c, line 190: In the initializer for nt_errno_map[5].status.v, "NTSTATUS" is a struct type, which is not scalar. (needscalartyp) {NT_STATUS_ACCESS_DENIED, EACCES}, ---------^ cc: Error: libsmb/clierror.c, line 191: In the initializer for nt_errno_map[6].status.v, "NTSTATUS" is a struct type, which is not scalar. (needscalartyp) {NT_STATUS_OBJECT_NAME_NOT_FOUND, ENOENT}, ---------^ cc: Error: libsmb/clierror.c, line 192: In the initializer for nt_errno_map[7].status.v, "NTSTATUS" is a struct type, which is not scalar. (needscalartyp) {NT_STATUS_SHARING_VIOLATION, EBUSY}, ---------^ cc: Error: libsmb/clierror.c, line 193: In the initializer for nt_errno_map[8].status.v, "NTSTATUS" is a struct type, which is not scalar. (needscalartyp) {NT_STATUS_OBJECT_PATH_INVALID, ENOTDIR}, ---------^ cc: Error: libsmb/clierror.c, line 194: In the initializer for nt_errno_map[9].status.v, "NTSTATUS" is a struct type, which is not scalar. (needscalartyp) {NT_STATUS_OBJECT_NAME_COLLISION, EEXIST}, ---------^ cc: Error: libsmb/clierror.c, line 195: In the initializer for nt_errno_map[10].status.v, "NTSTATUS" is a struct type, which is not scalar. (needscalartyp) {NT_STATUS_PATH_NOT_COVERED, ENOENT}, ---------^ cc: Error: libsmb/clierror.c, line 196: In the initializer for nt_errno_map[11].status.v, "NTSTATUS" is a struct type, which is not scalar. (needscalartyp) {NT_STATUS(0), 0} ---------^ *** Exit 1 Stop. -----Original Message----- From: Detlef Lammermann [mailto:detlef.lammermann@er.materna.de] Sent: 07 ?ubat 2002 Per?embe 16:35 Cc: Samba Mailing List Subject: [Samba] Re: smbd memory leak Gerald Carter wrote:> > On 16 Jan 2002, Mark Shearar wrote: > > > Further to my (as yet unanswered) last 2 requests for help, I can add > > the following: > > > > I tried reconfiguring and recompiling without winbind and it made no > > difference at all. > > > > I've just reinstalled another server for a client (RH7.2, samba 2.2.2 > > with smbmount and pam and without winbind and it works perfectly - no > > leaks at all). My server I've reinstalled 3 times and it consistently > > has the same runaway smbd process. I can kill that process and it just > > restarts under a different PID. Currently I'm running a cron job every > > night to killall -9 smbd and then reload it again (killall -HUP smbd > > does *not* kill the relevant process and free the memory used, only > > killall -9.) Obviously this is a nasty hack and it does affect > > performance. > > The sugject refers to a memory leak, but this paragraph refers to a > runaway process. Do you mean runaway memory usage? > > Are you running as a PDC? if so, up the log level and look > for NT_STATUS_NO_SUCH_USER or a similar message. I fixed a > memory leak relating to domain logons a few weeks ago. It's in the cvs > tree or I can send you a patch.Hello Jerry, I can see the same problem here and your assumption perfectly matches. Is this patch included in 2.2.3a (I found no hint in the WHATSNEW)? Thanks, -- Detlef //// (Q Q) ---------------------------------------------------------------o0o.-(_)-.o0o ---- Detlef Lammermann MATERNA GmbH Information & Communications mailto:detlef.lammermann@materna.de Wetterkreuz 3 Voice: +49 9131 7723-60 D-91058 Erlangen Fax: +49 9131 7723-45 -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba