LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-22-2007, 02:14 AM   #1
kevinfishburne
LQ Newbie
 
Registered: Jun 2007
Posts: 23

Rep: Reputation: 16
copying files over smb or nfs unusually slow


I've noticed that on multiple machines over various networking hardware that copying files from one machine to another, whether using Samba or NFS, peaks at around 1 MB a second. From previous observations it should have peaked at around 9-10 MB a second on 10/100 hardware.

In the first scenario the copying was taking place to/from Windows XP and Ubuntu 7.04 machines using Samba over a 10/100 switch. In the second scenario it was Ubuntu 7.04 and Debian Etch machines using Samba over a 10/100 switch. In the third scenario it was two Xubuntu 7.04 machines using NFS over a 10/100 hub.

The CPUs and HDDs on all of the machines are barely being touched as the copying progresses. All machines have static IPs with the hosts defined. In scenario one and two the copying was using Windows Explorer and Nautilus to browse to the network shares. In scenario three the copying was using Thunar and the shares were mounted in fstab using lines like:

lycaeum:/media/60 /media/60_on_lycaeum nfs rw,suid 0 0

Anyone have any ideas what could be causing this? I really want to think it's the switch and the hub, but I find that difficult to accept. I so don't want to have to set up two Winblows test boxes or buy another switch. Thanks all.
 
Old 06-22-2007, 06:56 PM   #2
cyborg_jt
Member
 
Registered: Jan 2004
Location: New Zealand
Distribution: 2.6.11-gentoo-r3
Posts: 120

Rep: Reputation: 15
I am having a similar problem. I achieve around 2MB/s. I am using Samba with security = share (for convenience).

If you try a local HTTP transfer what speeds do you get? I get about 10MB/s which is reasonable for a 100/10 local connection.

But I'd like samba to transfer at similar rates.
 
Old 06-23-2007, 09:42 AM   #3
IsaacKuo
Senior Member
 
Registered: Apr 2004
Location: Baton Rouge, Louisiana, USA
Distribution: Debian Stable
Posts: 2,546
Blog Entries: 8

Rep: Reputation: 465Reputation: 465Reputation: 465Reputation: 465Reputation: 465
I'd first suspect the cables or the switch; it can even be specific ports on a switch which are flakey. Generally, I find that the transfer rates on 100mbit are around 10MB/s for nfs, and around 5MB/s for samba (I use security=share, but I don't think it makes any difference).

But it's strange to only get 2MB/s for samba but 10MB/s for HTTP. 1MB/s is definitely too slow.
 
Old 07-06-2007, 12:59 AM   #4
kevinfishburne
LQ Newbie
 
Registered: Jun 2007
Posts: 23

Original Poster
Rep: Reputation: 16
Though it flashed by in an instant when booting it looks like my NIC was enabled at 10 Mbps rather than 100. If this is the problem then it is strange that it is doing the same thing in so many different places, but it would explain the 1 MBps transfer rates. Anyone know how I can check to see what my NIC's connecting at, and how to force it to connect at 100 Mbps?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS Trouble on copying large files (400Mb+) Yalla-One Slackware 2 03-17-2007 08:29 AM
Very Slow Exporting during NFS Start / Many NFS Problems VorlonInfoTech Linux - Networking 3 06-28-2006 06:48 PM
Slow or failed copy of large files to NFS david.skinner Linux - Networking 1 06-11-2006 05:22 AM
copying files to NFS share goes into uninterruptible sleep damien Linux - Networking 1 10-05-2003 06:48 PM
Unusually slow computer guygriffiths Linux - Software 14 09-21-2003 04:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration