Fedora Linux Support Community & Resources Center
  #1  
Old 28th April 2011, 06:10 PM
mlblandf Offline
Registered User
 
Join Date: Jun 2007
Posts: 24
linuxfirefox
Samba causing system slow down

Hello,

I am currently running Fedora 14 on an x86_64 system that acts as a whole house server for named, dhcp, nfs, nis, htpp, samba, etc

My issue has existed for a few years and I am just now getting around to posting about it.

I have a simple samba configuration for sharing files to a windows VM on another box.

Here is the config:

[global]

workgroup = NERD
server string = Samba Server on NERD
security = user
hosts allow =192.168.1.
log file = /var/log/samba/%m.log
max log size = 50

passdb backend = smbpasswd

dns proxy = no

[homes]
comment = Home Directories
browseable = no
writable = yes


This seems to work well for extended periods of time without issues until I transfer some large files like DVD ISOs from the client to the server, or the server to the client. Once a large file has been transferred, then all remote access becomes painfully slow. NFS access, samba access, even ssh'ing into the server becomes painfully slow.

Rebooting the server clears up the issue.

Any suggestions on what might be wrong and/or how to go about debugging this issue?

Michael
Reply With Quote
  #2  
Old 29th April 2011, 11:23 PM
Doug G Offline
Registered User
 
Join Date: Jul 2005
Posts: 640
windows_7firefox
Re: Samba causing system slow down

Are there any clues in the samba log files?
__________________
======
Doug G
======
Reply With Quote
  #3  
Old 4th May 2011, 01:48 AM
mlblandf Offline
Registered User
 
Join Date: Jun 2007
Posts: 24
linuxfirefox
Re: Samba causing system slow down

Sorry for the delayed response. It was a few days before I was able to look at this again.

As my test, I added 5 movies to Itunes where the files live on the Linux machine running samba.

Then I sync'ed those movies to the ipad.

Now, the file server is completely sluggish.

I looked at the logs from the samba server. There are no entries or errors from today when I did the sync. The only messages are from when the client connected to the samba server yesterday.

Looking at top, there is still more than a gig of free memory and no swap being used.

dmesg doesn't show any errors or messages since boot.

/var/log/messages only show the typical DNS/DHCP messages from those services, but nothing of interest from samba.

I am stumped.

I will reboot the server now so the environment becomes useful again.

I welcome any thoughts.

Michael
Reply With Quote
  #4  
Old 4th May 2011, 02:20 AM
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,425
windows_7firefox
Re: Samba causing system slow down

How about:

https://wiki.samba.org/index.php?tit...rch=slow&go=Go
http://www.samba.org/samba/docs/man/...html#id2691160
Reply With Quote
  #5  
Old 4th May 2011, 03:14 AM
jpollard Online
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,898
linuxfedorafirefox
Re: Samba causing system slow down

Just out of curiosity, try restarting samba just to see if that has any effect.

If it does, then I would suspect the speed problem may be related to locking issues (directory level).

Does "top" show any heavy hitters? (I doubt it, as I suspect the system itself is fine, but a lock on a directory can hang things).
Reply With Quote
  #6  
Old 4th May 2011, 03:47 AM
mlblandf Offline
Registered User
 
Join Date: Jun 2007
Posts: 24
linuxfirefox
Re: Samba causing system slow down

Thanks for both of your responses.

The slowness isn't with the performance of samba. The files transfer at a normal rate until the slowness begins. Then the slowness impacts the entire system - not just samba. NFS, ssh, etc are all slow.

Restarting samba doesn't have any effect in resolving the issue.

Top doesn't show anything either. The server is sitting there idle with no processes eating more than 2-3% of a quad core cpu.
Reply With Quote
  #7  
Old 4th May 2011, 01:44 PM
beaker_ Offline
Registered User
 
Join Date: Nov 2008
Location: Canada
Posts: 2,425
windows_7firefox
Re: Samba causing system slow down

Then you need to take your time and observe. The common denominators I see are; the nic, the filesystem, and the network. Assuming you've already done a top so you know there's nothing consuming resources then think about how to:

1. Replace the nic with a known, good, trustworty nic.
2. Test or beat the harddrive to death so you know it's not trying to read/write to bad sectors.
3. Push or find your networks limits with two known to be good machines or services. Might discover a flaky chord, switch, or router (?).

A guess. If it's running headless, then besure you're booting into runlevel 3 as I've seen X grabbing 90% cpu before (couldn't detect monitor) but that was some time ago.
Reply With Quote
  #8  
Old 4th May 2011, 08:29 PM
mlblandf Offline
Registered User
 
Join Date: Jun 2007
Posts: 24
linuxfirefox
Re: Samba causing system slow down

Hello,

I have been watching this issue for months. Every time I start looking into the issue I come up empty handed. That is why I started posting.

I spent the morning trying to replicate the issue without samba and have not been able to.

From a known working client 'A' I have used cp+nfs to transfer all of the contents of the file server to /dev/null in a loop for several hours. This transfers several TB of data quickly without issues. Server and client remain responsive. There are no errors in netstat, nothing in dmesg, etc.

From the server itself I also did a cat /dev/sda<part> /dev/null in a loop several times. This responds quickly without issue.

The known host 'A' also is the host for the VM 'B' that running windows and connecting to the server. Since we have already ruled out the network card in this machine and the network itself, the only thing left is some strange interaction with samba.

The server, clients, and the network remain stable until I try to use a windows client to transfer large amount of data from the server and then the server becomes very sluggish. Once it becomes sluggish, it doesn't recover without a reboot.

I am at a loss here.
Reply With Quote
  #9  
Old 13th February 2012, 07:43 PM
mlblandf Offline
Registered User
 
Join Date: Jun 2007
Posts: 24
linuxfirefox
Re: Samba causing system slow down

Just an update to this issue.

I updated to Fedora 16 and the problem is resolved. I am not sure if the new kernel or the 3.6 version of samba but the problem is definitely gonie.
Reply With Quote
Reply

Tags
causing, samba, slow

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ipv6 addresses causing samba problems jbkt23 Servers & Networking 0 27th February 2010 10:46 PM
BackupPC causing system to crash othas3 Using Fedora 0 14th May 2009 08:11 PM
Torrents causing system crash joejoebob Using Fedora 4 8th April 2009 11:02 PM
Fedora 8, ATi HD 2400 Pro and a recent update causing even 2D renedering to be slow reashlin Hardware & Laptops 3 12th September 2008 10:52 AM


Current GMT-time: 12:50 (Monday, 22-12-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
...Palacio Real Y Almudena Photos on Instagram - Braseria Tibidabo - Aqua Onabrava Hotel, Santa Susanna - Gratitude Travel Photos on Instagram - Afamosa Photos on Instagram