LinuxQuestions.org
Review your favorite Linux distribution.
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 09-20-2014, 01:45 AM   #1
win_the_day_go_ducks
LQ Newbie
 
Registered: Sep 2014
Posts: 25

Rep: Reputation: Disabled
Samba and NFS transfers are extremely slow, please help!


Full disclosure, I am new to Linux, so I apologize if this may seem elementary. I really need help in speeding up my transfers. I am having a heck of a time getting my files to transfer over the network. My goal is to have this server act as a file server for my various machines across the network. The first task is copying my files from the clients to the server.

My server:
Atom board (Asrock AD2550R/U3S3)
4 Gb of Ram
Kingston 64GB SSD Sata 2 (system drive)
Toshiba 3TB Canvio Desktop USB 3.0 (Network Drive) NTFS Format

Client computers:
Power Mac G5 Desktop
Windows XP Desktop

Network:
Gigafast EZ-800s 10/100 switch
Cat 5 cables
The switch is connected to TrendNet N300 TEW-731BR router for internet access.

----SAMBA----
After many issues, I finally was able to get both the Mac and PCs to read and write the drive and folders on the server. This was a major victory (so I thought) as I had been struggling to get them to see one another. The one problem was that the server couldn't browse the XP machine's shared files, but it did see the computer.

When I started copying the files I was very disappointed in the performance that I was averaging between 5-8 5MBps. After hours of transfers I started reading up and decided to go with NFS.

----NFS----
Very painful to get started on the client side. I couldn't get the PC to connect to the server's NFS shared folders. However, I was able to get the Mac to connect to the server's shared folders. The only problem is that I couldn't write to them.

In an assbackwards manner, I was able to copy the files to the server, by sharing folders on the Mac client and essentially pulling them to the server. The one thing I found weird is that the server was able to write and delete files on the client mac. On a positive note, the rates doubled (11-18 MBps).

--------

I managed to get the files copied over throughout the course of the day, but these rates are terrible.

I read through other posts and have tried disabling the firewalls and VPN. Still no love.

Does anyone have any idea what could be causing the lag in the transfers? I appreciate any help.
 
Old 09-21-2014, 12:15 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 2,500

Rep: Reputation: Disabled
By "MBps", do you mean "megabyte per second" or "megabit per second"?

A 100Mbps (100 megabit/s) Fast Ethernet switch is capable of transfer rates between 10 and 12.5 megabyte/s, depending on packet/frame size. If your transfer rates are significantly lower, there's a bottleneck somewhere. You should do some testing:
  • Try testing the network bandwidth with iperf. This tests the IP stack at both ends and everything below (NIC drivers, NICs, switches, cabling). Do the UDP test first, then do a TCP test. If performance is poor, run ifconfig and look for RX or TX errors. There should be none of either.
  • If the above test gives reasonable results (in the neighborhood of 90-100 megabit/second), try running top on your server while copying a file. Atom CPUs are somewhat anemic, and could conceivably represent a bottleneck in some setups.
  • Repeat the above test with iostat -dx <interval> instead of top. You should specify an interval (in seconds) large enough to capture average performance during the transfer. Pay special attention to the "%iowait", "avgqu-sz", "await" and "%util" columns; they will tell you if there's a problem at the block layer (see man iostat or this page for detailed information).

Last edited by Ser Olmy; 09-21-2014 at 12:20 PM. Reason: forgot "avgqu-sz"
 
Old 09-22-2014, 11:50 PM   #3
win_the_day_go_ducks
LQ Newbie
 
Registered: Sep 2014
Posts: 25

Original Poster
Rep: Reputation: Disabled
Thank you for your reply.

I've tried to use the iperf software and can't seem to really wrap my head around it. I'll try and set some time aside this weekend to try and trouble shoot some more. But it sounds like, more than anything I need to upgrade my infrastructure (install cat6 cable and upgrade my switch).

Thank you again for your help!
 
  


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
Bizzare samba / network problem, transfers run extremely slow unless 2+ are going abeeson Linux - Software 0 12-13-2008 09:42 PM
Extremely slow Windows-to-Linux transfers Oddish Fedora 5 02-10-2006 08:53 AM
Extremely slow mount times for NFS wayloud Linux - Networking 2 06-04-2005 12:58 AM
samba extremely slow after a disconnect Rarrum Linux - Software 5 03-07-2005 11:19 PM
What would make an NFS mount EXTREMELY slow ? lostboy Linux - General 3 06-17-2004 09:20 PM

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

All times are GMT -5. The time now is 11:22 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration