Bug#407517: [Pkg-samba-maint] Bug#407517: weeklySamba/ldapsamfailureserving files to a busy win2k client

Jamie ffolliott jamieff at inline.net
Mon Jan 22 07:11:57 CET 2007


Hi Andrew,

If it's going to mean more than say 10mins of potential downtime, I'm not in
a position to try experiments on the PDC server where this problem is
affecting us.

I could try your patch on another linux box as a domain member server, would
that make sense, just to ensure it'll go smoothly on the PDC?

I'm attaching some valgrind output, I ran it briefly for about 15mins, it
was going slow but I managed to see some smb connections open to process
26519 which was IUSR_JUNIPER, although I wasn't able to hit a webpage that
is accessed over the "web" share and handled by this pid.

Attached is the valgrind output.

The two PID's running that served iis5 websites are 26511 (boxwood IIS5
server) and 26519 (juniper IIS5 server), and there's a little valgrind
output related to those pid's.

Smbstatus showed,

Samba version 3.0.23d
PID     Username      Group         Machine
-------------------------------------------
26511   IUSR_BOXWOOD  DomUsers      boxwood
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26511   IUSR_BOXWOOD  DomUsers      boxwood
26519   IUSR_JUNIPER  DomUsers      juniper
26511   IUSR_BOXWOOD  DomUsers      boxwood
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26511   IUSR_BOXWOOD  DomUsers      boxwood
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   Administrator  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26519   IUSR_JUNIPER  DomUsers      juniper
26511   IUSR_BOXWOOD  DomUsers      boxwood
26511   IUSR_BOXWOOD  DomUsers      boxwood

Service      pid     machine       Connected at
-------------------------------------------------------
netlogon     26519   juniper       Mon Jan 22 00:35:10 2007
web          26519   juniper       Mon Jan 22 00:39:25 2007
web          26519   juniper       Mon Jan 22 00:40:51 2007
web          26519   juniper       Mon Jan 22 00:37:53 2007
web          26519   juniper       Mon Jan 22 00:38:52 2007
web          26519   juniper       Mon Jan 22 00:40:11 2007
IPC$         26511   boxwood       Mon Jan 22 00:29:43 2007
IPC$         26521   walnut        Mon Jan 22 00:30:01 2007
web          26511   boxwood       Mon Jan 22 00:41:26 2007
IPC$         26519   juniper       Mon Jan 22 00:30:18 2007
web          26519   juniper       Mon Jan 22 00:38:15 2007
web          26519   juniper       Mon Jan 22 00:39:32 2007
web          26519   juniper       Mon Jan 22 00:40:59 2007
web          26511   boxwood       Mon Jan 22 00:31:15 2007
web          26519   juniper       Mon Jan 22 00:38:00 2007
web          26519   juniper       Mon Jan 22 00:38:59 2007
web          26519   juniper       Mon Jan 22 00:40:19 2007
web          26519   juniper       Mon Jan 22 00:37:37 2007
web          26511   boxwood       Mon Jan 22 00:37:48 2007
web          26519   juniper       Mon Jan 22 00:38:22 2007
web          26519   juniper       Mon Jan 22 00:39:59 2007
web          26519   juniper       Mon Jan 22 00:41:06 2007
web          26511   boxwood       Mon Jan 22 00:30:00 2007
web          26519   juniper       Mon Jan 22 00:39:07 2007
IPC$         26506   redwood       Mon Jan 22 00:29:37 2007
web          26519   juniper       Mon Jan 22 00:40:27 2007
IPC$         26519   juniper       Mon Jan 22 00:34:53 2007
web          26519   juniper       Mon Jan 22 00:38:29 2007
web          26519   juniper       Mon Jan 22 00:39:43 2007
web          26519   juniper       Mon Jan 22 00:41:14 2007
web          26511   boxwood       Mon Jan 22 00:31:19 2007
web          26519   juniper       Mon Jan 22 00:38:08 2007
IPC$         26528   plywood       Mon Jan 22 00:30:23 2007
web          26519   juniper       Mon Jan 22 00:39:14 2007
web          26519   juniper       Mon Jan 22 00:40:43 2007
web          26519   juniper       Mon Jan 22 00:37:45 2007
Administrator   26519   juniper       Mon Jan 22 00:35:14 2007
web          26519   juniper       Mon Jan 22 00:38:45 2007
IPC$         26530   lumber        Mon Jan 22 00:30:16 2007
web          26519   juniper       Mon Jan 22 00:39:51 2007
IPC$         26540   maple         Mon Jan 22 00:30:41 2007
IPC$         26530   lumber        Mon Jan 22 00:30:21 2007
web          26519   juniper       Mon Jan 22 00:41:22 2007
web          26511   boxwood       Mon Jan 22 00:33:07 2007
IPC$         26550   balsa         Mon Jan 22 00:31:02 2007

This was the process list,
root     26494  6.6  1.6 72344 34640 ?       Ss   00:29   0:22
/usr/bin/valgrind.bin --tool=memcheck --leak-check=full
--log-file=/tmp/valgrind_smbd /usr/sbin/smbd -D
root     26505  0.0  1.6 72328 34492 ?       S    00:29   0:00
/usr/bin/valgrind.bin --tool=memcheck --leak-check=full
--log-file=/tmp/valgrind_smbd /usr/sbin/smbd -D
root     26506 22.2  2.2 81380 47592 ?       R    00:29   1:10
/usr/bin/valgrind.bin --tool=memcheck --leak-check=full
--log-file=/tmp/valgrind_smbd /usr/sbin/smbd -D
IUSR_BO  26511 33.4  2.3 80196 49516 ?       S    00:29   1:44
/usr/bin/valgrind.bin --tool=memcheck --leak-check=full
--log-file=/tmp/valgrind_smbd /usr/sbin/smbd -D
nobody   26519 27.2  2.3 81316 49372 ?       S    00:29   1:20
/usr/bin/valgrind.bin --tool=memcheck --leak-check=full
--log-file=/tmp/valgrind_smbd /usr/sbin/smbd -D
nobody   26521 18.0  2.2 79760 46092 ?       S    00:29   0:53
/usr/bin/valgrind.bin --tool=memcheck --leak-check=full
--log-file=/tmp/valgrind_smbd /usr/sbin/smbd -D
root     26528  6.4  2.0 79452 43160 ?       S    00:30   0:18
/usr/bin/valgrind.bin --tool=memcheck --leak-check=full
--log-file=/tmp/valgrind_smbd /usr/sbin/smbd -D
nobody   26530 31.0  2.3 80888 48332 ?       S    00:30   1:27
/usr/bin/valgrind.bin --tool=memcheck --leak-check=full
--log-file=/tmp/valgrind_smbd /usr/sbin/smbd -D
nobody   26540 19.4  2.2 79624 45828 ?       S    00:30   0:49
/usr/bin/valgrind.bin --tool=memcheck --leak-check=full
--log-file=/tmp/valgrind_smbd /usr/sbin/smbd -D
nobody   26550 21.2  2.2 79688 45828 ?       S    00:30   0:49
/usr/bin/valgrind.bin --tool=memcheck --leak-check=full
--log-file=/tmp/valgrind_smbd /usr/sbin/smbd -D


Regards,
Jamie

> -----Original Message-----
> From: Andrew Bartlett [mailto:abartlet at samba.org] 
> Sent: Monday, January 22, 2007 12:26 AM
> To: Jamie ffolliott
> Cc: 'Christian Perrier'; 407517 at bugs.debian.org
> Subject: RE: [Pkg-samba-maint] Bug#407517: 
> weeklySamba/ldapsamfailureserving files to a busy win2k client
> 
> On Sun, 2007-01-21 at 21:16 -0500, Jamie ffolliott wrote:
> > > > > I noticed most of the structures in there are this one:
> > > > >         struct passwd                  contains     76 
> > > bytes in   6 blocks
> > > > > (ref 0)
> > > > >             /bin/false                     contains     
> > > 11 bytes in   1
> > > > > blocks (ref 0)
> > > > >             /dev/null                      contains     
> > > 10 bytes in   1
> > > > > blocks (ref 0)
> > > > >             System User                    contains     
> > > 12 bytes in   1
> > > > > blocks (ref 0)
> > > > >             x                              contains      
> > > 2 bytes in   1
> > > > > blocks (ref 0)
> > > > >             IUSR_JUNIPER                   contains     
> > > 13 bytes in   1
> > > > > blocks (ref 0)
> > > > > 
> > > > > There's 4689 copies of this, and it seems to increase 
> roughly in 
> > > > > proportion to smbd's memory use.  Ie. There were 2xxx
> > > copies ealier
> > > > > today when it was using half the memory.
> > > > 
> > > > Are all the copies identical?  Can you remind me some details 
> > > > about your setup?  What is "IUSR_UNIIPER"?
> > 
> > Yeah it appears they are all identical, I sent a copy of the 
> > pool-usage output in the last email if you want to have a look.
> > 
> > IUSR_JUNIPER is a domain user on "JUNIPER" that executes within the 
> > IIS5.0 webserver and accesses the "web" fileshare on KINGWOOD where 
> > samba is running.  There's about 60 processes executing as 
> > IUSR_JUNIPER, and roughly 60 smb connections to kingwood.  Each of 
> > those processes run an ihtml application server as an ISAPI 
> dll (much 
> > like asp or php) which will open additional files on the 
> "web" fileshare.
> > 
> > Kingwood is debian/linux testing, with kernel 2.4.27, samba 
> is a PDC, 
> > and it's also doing some filesharing for a few win2k 
> clients running 
> > IIS webservers.
> > 
> > Juniper is Win2k SP4, and is a member of the domain.
> > 
> > > > Given this output, I'm presuming we have a call to
> > > talloc_getpwnam()
> > > > that is not talloc_free()'ing the result.
> > > 
> > > Actually, the call would be getpwnam_alloc().  Anyway, can I get 
> > > some more context around that output?  I'm interested in 
> the parent 
> > > information, and any other details you can give me.
> > 
> > If there's any other info you need, let me know.
> 
> I think this patch might help.  I've just run the 'make test' 
> on it, so it's not exactly fully baked, but I think it might 
> fix your issue, by ensuring we clean this stuff up properly, 
> all the time.
> 
> Are you in a position to try some experiments? (no is a 
> perfectly acceptable answer).
> 
> Andrew Bartlett
> 
> -- 
> Andrew Bartlett                                
> http://samba.org/~abartlet/
> Authentication Developer, Samba Team           http://samba.org
> Samba Developer, Red Hat Inc.                  http://redhat.com
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: valgrind_smbd.26489.gz
Type: application/x-gzip
Size: 33428 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20070122/9bdfc632/valgrind_smbd.26489-0001.bin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: valgrind_smbd.26444.gz
Type: application/x-gzip
Size: 6160 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-samba-maint/attachments/20070122/9bdfc632/valgrind_smbd.26444-0001.bin


More information about the Pkg-samba-maint mailing list