LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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-11-2004, 03:10 PM   #1
drkshadow
LQ Newbie
 
Registered: Sep 2004
Location: Canada
Distribution: Linux From Scratch
Posts: 3

Rep: Reputation: 0
Samba: slow network transfer


I setup samba to transfer a large amount of files and when it is running I noticed the speed is slow I was expecting just short of 100Mbps but ethstats reports around 45Mbps

total: 45.46 Mb/s In 1.81 Mb/s Out - 3925.5 p/s In 2617.6 p/s Out
eth0: 45.46 Mb/s In 1.81 Mb/s Out - 3925.5 p/s In 2617.6 p/s Out
sit0: 0.00 Mb/s In 0.00 Mb/s Out - 0.0 p/s In 0.0 p/s Out


This is not fast enough since I will regularly be transfering 100GB's+ the current transfer is 93GB's and looks like it is going to take 5 hours.

My Samba server is a AMD Athlon XP 2600 with 1 gig ram and the hard drive I am transfering to is a 7200rpm SATA (media only) the client is a Xbox 5400rpm hard drive with Linux installed and I am transfering system backups plus recordings from my TV card.

These 2 systems are the only things on my router.
 
Old 09-11-2004, 06:59 PM   #2
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
If you are using 100 Mbps Ethernet then that's not an unreasonable figure - wired Ethernet tops out at about 40% of it's rated speed.

If you are doing Linux to Linux file transfer then Samba isn't the most efficient method. You can compress the data going over the wire with the -C option of SSH file transfer. it's also worth looking at rsync, which will transmit only the differences between two file sets over the SSH connection.

If that doesn't seem suitable, consider whether it's feasible to have the script that does the transfer compress the data into one or more bz2 archive files before sending it, and uncompress at the destination.
 
Old 09-11-2004, 07:37 PM   #3
drkshadow
LQ Newbie
 
Registered: Sep 2004
Location: Canada
Distribution: Linux From Scratch
Posts: 3

Original Poster
Rep: Reputation: 0
If samba is not the right choice I might as well go back to ftp since it gives me a speed of 90Mbps. I will just use samba for smaller stuff since I like mounting a share in Linux
 
Old 09-12-2004, 10:19 AM   #4
hob
Senior Member
 
Registered: Mar 2004
Location: Wales, UK
Distribution: Debian, Ubuntu
Posts: 1,075

Rep: Reputation: 45
My experience is that SMB is awful for really big file transfers.

I'm surprised that you can get 90% out of Ethernet, but I suppose that I work on heavily-used networks.

It's definitely worth trying SSH though, if only because it's probably already running on the server already... These days running an FTP service isn't worth the time, SSH or HTTP do everything that FTP ever did plus things FTP will never do (like good security).
 
  


Reply



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
slow transfer speed samba Cavenaghi Linux - Networking 1 06-04-2005 04:39 PM
Samba transfer slow from linux client unicr0n Linux - Software 0 09-09-2004 04:12 AM
Excessively slow network transfer speeds from XP to Linux… MooGLEX Linux - Networking 1 07-04-2004 01:13 AM
slow network / samba mehesque Linux - Networking 1 01-09-2004 01:48 PM
Horribly slow transfer speeds with SAMBA jordanyeo Linux - Networking 6 11-18-2003 07:13 AM

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

All times are GMT -5. The time now is 07:31 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