[Samba] Lots of smbd processes and connections?

Brian bbayorgeon at charter.net
Wed Oct 28 15:50:32 MDT 2009


OK Progress, MAYBE!?

I know my web server is inaccessible, but let's move on from that...
that is an issue for another day.

At a log level 3, currently, I get the following sequence repeating
itself about 164 times per second.  In that sequence it appears to 
be closing 2 directories with incrementing fnum's

So what is smbd/reply.c:reply_close(4343) close directory fnum=xxxx?

that is about the only thing that changes besides the
transaction number.

I'm not sure where the pattern starts/stop but the following is
CLEARLY repeating itself at a high rate of speed.

Brian



[2009/10/28 15:46:50,  3] smbd/trans2.c:call_trans2findfirst(1926)
  call_trans2findfirst: dirtype = 16, maxentries = 1366,
 close_after_first=1, close_if_end = 1 requires_resume_key = 1
 level = 0x104, max_data_bytes = 16384
[2009/10/28 15:46:50,  3] smbd/dir.c:dptr_create(518)
  creating new dirptr 256 for path ./, expect_close = 1
[2009/10/28 15:46:50,  3] smbd/process.c:process_smb(1576)
  Transaction 801277 of length 92 (0 toread)
[2009/10/28 15:46:50,  3] smbd/process.c:switch_message(1393)
  switch message SMBntcreateX (pid 11443) conn 0x20c5d030
[2009/10/28 15:46:50,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/10/28 15:46:50,  3] smbd/process.c:process_smb(1576)
  Transaction 801278 of length 45 (0 toread)
[2009/10/28 15:46:50,  3] smbd/process.c:switch_message(1393)
  switch message SMBclose (pid 11443) conn 0x20c5d030
[2009/10/28 15:46:50,  3] smbd/reply.c:reply_close(4343)
  close directory fnum=7062
[2009/10/28 15:46:50,  3] smbd/process.c:process_smb(1576)
  Transaction 801279 of length 92 (0 toread)
[2009/10/28 15:46:50,  3] smbd/process.c:switch_message(1393)
  switch message SMBntcreateX (pid 11443) conn 0x20c5c030
[2009/10/28 15:46:50,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/10/28 15:46:50,  3] smbd/process.c:process_smb(1576)
  Transaction 801280 of length 45 (0 toread)
[2009/10/28 15:46:50,  3] smbd/process.c:switch_message(1393)
  switch message SMBclose (pid 11443) conn 0x20c5c030
[2009/10/28 15:46:50,  3] smbd/reply.c:reply_close(4343)
  close directory fnum=7063
[2009/10/28 15:46:50,  3] smbd/process.c:process_smb(1576)
  Transaction 801281 of length 112 (0 toread)
[2009/10/28 15:46:50,  3] smbd/process.c:switch_message(1393)
  switch message SMBtrans2 (pid 11443) conn 0x20c5c030


[2009/10/28 15:46:50,  3] smbd/trans2.c:call_trans2findfirst(1926)
  call_trans2findfirst: dirtype = 16, maxentries = 1366,
 close_after_first=1, close_if_end = 1 requires_resume_key = 1
 level = 0x104, max_data_bytes = 16384
[2009/10/28 15:46:50,  3] smbd/dir.c:dptr_create(518)
  creating new dirptr 256 for path ./, expect_close = 1
[2009/10/28 15:46:50,  3] smbd/process.c:process_smb(1576)
  Transaction 801282 of length 92 (0 toread)
[2009/10/28 15:46:50,  3] smbd/process.c:switch_message(1393)
  switch message SMBntcreateX (pid 11443) conn 0x20c5d030
[2009/10/28 15:46:50,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/10/28 15:46:50,  3] smbd/process.c:process_smb(1576)
  Transaction 801283 of length 45 (0 toread)
[2009/10/28 15:46:50,  3] smbd/process.c:switch_message(1393)
  switch message SMBclose (pid 11443) conn 0x20c5d030
[2009/10/28 15:46:50,  3] smbd/reply.c:reply_close(4343)
  close directory fnum=7064
[2009/10/28 15:46:50,  3] smbd/process.c:process_smb(1576)
  Transaction 801284 of length 92 (0 toread)
[2009/10/28 15:46:50,  3] smbd/process.c:switch_message(1393)
  switch message SMBntcreateX (pid 11443) conn 0x20c5c030
[2009/10/28 15:46:50,  3] smbd/sec_ctx.c:set_sec_ctx(324)
  setting sec ctx (0, 0) - sec_ctx_stack_ndx = 0
[2009/10/28 15:46:50,  3] smbd/process.c:process_smb(1576)
  Transaction 801285 of length 45 (0 toread)
[2009/10/28 15:46:50,  3] smbd/process.c:switch_message(1393)
  switch message SMBclose (pid 11443) conn 0x20c5c030
[2009/10/28 15:46:50,  3] smbd/reply.c:reply_close(4343)
  close directory fnum=7065
[2009/10/28 15:46:50,  3] smbd/process.c:process_smb(1576)
  Transaction 801286 of length 112 (0 toread)
[2009/10/28 15:46:50,  3] smbd/process.c:switch_message(1393)
  switch message SMBtrans2 (pid 11443) conn 0x20c5c030



> -----Original Message-----
> From: Jeremy Allison [mailto:jra at samba.org]
> Sent: Wednesday, October 28, 2009 12:41 PM
> 
> > -----Original Message-----
> > From: samba-bounces at lists.samba. On Behalf Of Brian
> > Sent: Wednesday, October 28, 2009 7:09 AM
>
> > http://66.190.9.142/vista-spam-1.log
> >
> > http://66.190.9.142/vista-spam-2.log
> >
> > Here is a few seconds worth in these two files.  This is with the
> > workaround in place where I have a "roo" share setup on the server
> > so you will not see all those can't find service messages.
> 
> I can't get access to these files. I'm getting "connection timed out".
> 
> > The more I investigate the more I am convinced it is a client issue..
> >
> > Another interesting tidbit of information.  Last night I setup a new
> account
> > on the bsd box (non wheel account) and a matching account on the
> vista
> > box (non administrator) and after a quick try last night it would
> appear
> > the problem goes away (or had not started yet).  I will duplicate
> > that experiment to make sure.
> 
> Please keep the list up to date with your progress.
> 
> Jeremy.



More information about the samba mailing list