POSTED TO THE LIST W/O ATTACHMENTS -------- Jerry, I am sending this to you directly because it contains the tcpdump information in addition to the samba logs just in case there is sensitive information contained in the files. What is happening is that samba 3.0.25c, after first running smoothly, is becoming very "chatty" across our LAN. I don't know why, but with no files or applications open, smb is throwing about 4-5 packets a second at each windows XP client. This was causing noticeable network slowness. It is definitely 3.0.25c because after I grabbed the packets and the logs, I did a make revert to 3.0.25 and the noise on the network completely stopped. It seems like there is a race condition somewhere. I may need to send you a level 10, but when this occurred, I didn't have level 10 set so I just grabbed a tcpdump of the traffic and the log files I had. I will switch back to 3.0.25c this evening with level 10 set and see if I can duplicate the problem. In the mean time here are the files. David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 (936) 715-9339 fax www.rankinlawfirm.com
On Fri, Aug 24, 2007 at 04:07:50PM -0500, David Rankin wrote:> POSTED TO THE LIST W/O ATTACHMENTS > -------- > > Jerry, > > I am sending this to you directly because it contains the tcpdump > information in addition to the samba logs just in case there is sensitive > information contained in the files. > > What is happening is that samba 3.0.25c, after first running > smoothly, is becoming very "chatty" across our LAN. I don't know why, but > with no files or applications open, smb is throwing about 4-5 packets a > second at each windows XP client. This was causing noticeable network > slowness. It is definitely 3.0.25c because after I grabbed the packets and > the logs, I did a make revert to 3.0.25 and the noise on the network > completely stopped. It seems like there is a race condition somewhere. I may > need to send you a level 10, but when this occurred, I didn't have level 10 > set so I just grabbed a tcpdump of the traffic and the log files I had.Can you get a network trace here please so we can see what the packets are ? Jeremy.
Jeremy Allison wrote:> On Fri, Aug 24, 2007 at 04:22:14PM -0500, David Rankin wrote: > >> Sure Jerry, >> >> They are attached. One is a 18 second capture, the second is a 60 >> second capture. >> > > Is any linux process writing into that directory or changing the > directory timestamp ? > > Jeremy. > >No, at the time I made the capture, the system was sitting at idle and ethereal was the only thing active. I specifically made sure that there was nothing active on the link between 192.168.7.15 and .98. Further, the entire net was slowing down. I apologize that the dump was from the wireless card that couldn't be put into promiscuous mode, but such is life.....
-----Original Message----- From: Volker Lendecke [mailto:Volker.Lendecke@SerNet.DE] Sent: Monday, August 27, 2007 2:44 PM To: David C. Rankin Cc: jerry@samba.org; jra@samba.org Subject: Re: [Samba] Samba 3.0.25c Going Nuts on our Network??? On Mon, Aug 27, 2007 at 08:18:57AM -0500, David C. Rankin wrote:> I installed 3.0.25c on SuSE 10 this weekend and I discovered > another race condition. I have captured both tcpdumps and level 10 > logs. The files are large, but you can get them from > www.3111skyline.com/~david The files and sizes are:These are different. The traces you sent in last time had trans2notifies, this time it's a client going mad with asking for print queue status over and over again. Not sure what triggered this, but I would be very surprised if this was triggered with a .25b to .25c upgrade.> The race condition here seems related to my print to pdf script, > but I have never had any problems with it until 3.0.25b. When the > 3.0.25c race occurs, it is *huge* thousands and thousands of packets. > I hope you guys can find the culprit. If you need any additional > information, please do not hesitated to contact me and I'll send you > what you need.I don't think this is a race condition in the real computer science sense of that word. I can't see anything unusual in those logs. What kind of client is that? It's using the "old" LANMAN style printer calls. Did you set "disable spoolss = yes"? And, can you get us a debug level 10 log of the trans2findfirst/changenotify loop? Volker _______________-- Volker, Jeremy: I'll keep monitoring the 3.0.25c install here at work and try to get a level 10 of the trans2findfirst/changenotify loop issue. I was out of the office most of the day today (yesterday now). I'm sure I'll catch it in the next day or so! I was pretty sure the 3111skyline problems wasn't the same, but I didn't understand what it was doing so I though I would pass it along. Thanks guys and I'll catch the right bug next time! David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 (936) 715-9339 fax www.rankinlawfirm.com
Jeremy Allison wrote:> On Fri, Aug 24, 2007 at 04:22:14PM -0500, David Rankin wrote: >> Sure Jerry, >> >> They are attached. One is a 18 second capture, the second is a 60 >> second capture. > > FYI: I'm trying to reproduce this issue with a smbd compiled with > inotify on Linux and a WXP-SP2 client using an explorer Window > opened on a watched directory and I'm not seeing the traffic > you're seeing. > > What platform, filesystem etc. etc. is this directory on ? > > Jeremy. >Jeremy, Sorry for the late response, I am still trying to recreate the situation as well. The details are OS: Mandriva 2005 LE fully patched; Kernel: 2.6.8.1-12mdk; configure options: ./configure --prefix=/usr --infodir=/usr/share --mandir=/usr/share --with-configdir=/etc/samba --with-privatedir=/etc/samba --target=i686 Filesystem: ext3 smbclient output: //root/bonza/home/david smbclient -Udavid -Llocalhost Password: Domain=[BONZA] OS=[Unix] Server=[Samba 3.0.25c] Sharename Type Comment --------- ---- ------- samba Disk Base Samba Share office Disk Shared Office Files rankin Disk Rankin Law Firm PLLC scans Disk Scanned Images from Copier allen Disk T Stefan Allen bertin Disk Darren Bertin guillory Disk David Guillory jointcases Disk Joint Client Files lawtools Disk Case Development - Summation forms Disk Shared Forms and Briefs computer Disk Computer Drivers and Software closed Disk Closed Case Files print$ Disk pdf-gen Printer PDF Generator (only valid users) IPC$ IPC IPC Service (Samba Server 3.0.25c) david Disk Home Directories Domain=[BONZA] OS=[Unix] Server=[Samba 3.0.25c] Server Comment --------- ------- Workgroup Master --------- ------- RB_LAW BONZA smb.conf: //root/bonza/home/david testparm Load smb config files from /etc/samba/smb.conf Processing section "[homes]" Processing section "[config]" Processing section "[samba]" Processing section "[office]" Processing section "[rankin]" Processing section "[scans]" Processing section "[allen]" Processing section "[bertin]" Processing section "[guillory]" Processing section "[jointcases]" Processing section "[lawtools]" Processing section "[forms]" Processing section "[computer]" Processing section "[closed]" Processing section "[printers]" Processing section "[print$]" Processing section "[pdf-gen]" Global parameter printcap name found in service section! Loaded services file OK. Server role: ROLE_STANDALONE Press enter to see a dump of your service definitions [global] workgroup = RB_LAW server string = Samba Server %v map to guest = Bad User log level = 10 log file = /var/log/samba/log.%m max log size = 500 name resolve order = wins lmhosts bcast time server = Yes socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 printcap name = cups show add printer wizard = No os level = 80 preferred master = Yes dns proxy = No wins support = Yes hosts allow = 192.168.7., 192.168.8., 127., 66.76.63.120 printing = cups print command lpq command = %p lprm command [homes] comment = Home Directories read only = No browseable = No [config] comment = Admin Config Share path = / valid users = david admin users = david force user = root force group = root read only = No browseable = No [samba] comment = Base Samba Share path = /home/samba valid users = @ochiltree admin users = david force user = david force group = ochiltree read only = No inherit permissions = Yes [office] comment = Shared Office Files path = /home/samba/office valid users = @ochiltree admin users = david force group = ochiltree read only = No inherit permissions = Yes [rankin] comment = Rankin Law Firm PLLC path = /home/samba/rankin valid users = @rankin admin users = david force group = rankin read only = No inherit permissions = Yes [scans] comment = Scanned Images from Copier path = /home/samba/scans admin users = david force group = ochiltree read only = No guest ok = Yes [allen] comment = T Stefan Allen path = /home/samba/allen valid users = @allen admin users = david force group = allen read only = No inherit permissions = Yes [bertin] comment = Darren Bertin path = /home/samba/bertin valid users = @bertin, @roberts admin users = david force group = roberts read only = No inherit permissions = Yes [guillory] comment = David Guillory path = /home/samba/guillory valid users = @guillory admin users = david force group = guillory read only = No inherit permissions = Yes [jointcases] comment = Joint Client Files path = /home/samba/joint valid users = @ochiltree admin users = david force group = ochiltree read only = No inherit permissions = Yes [lawtools] comment = Case Development - Summation path = /home/samba/visionary valid users = @ochiltree admin users = david force group = ochiltree read only = No inherit permissions = Yes [forms] comment = Shared Forms and Briefs path = /home/samba/forms valid users = @ochiltree admin users = david force group = ochiltree read only = No inherit permissions = Yes [computer] comment = Computer Drivers and Software path = /home/samba/computer valid users = @ochiltree admin users = david force group = ochiltree read only = No inherit permissions = Yes [closed] comment = Closed Case Files path = /home/samba/closed valid users = @ochiltree admin users = david force group = ochiltree read only = No inherit permissions = Yes [printers] comment = All Printers path = /var/spool/samba create mask = 0700 guest ok = Yes printable = Yes browseable = No [print$] path = /var/lib/samba/printers write list = @adm, root inherit permissions = Yes guest ok = Yes [pdf-gen] comment = PDF Generator (only valid users) path = /var/tmp printable = Yes printing = bsd print command = /usr/share/samba/scripts/print-pdf "%s" "%H/pdf" "//%L/%u" "%m" "%I" "%J" & lpq command = /bin/true lprm command = lprm -P'%p' %j I am still looking for the traffic. My server keep crashing is crashing more often than usual, and I am still looking for the culprit. -- David C. Rankin, J.D., P.E. Rankin Law Firm, PLLC 510 Ochiltree Street Nacogdoches, Texas 75961 (936) 715-9333 (936) 715-9339 fax www.rankinlawfirm.com