Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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.
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.
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
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).
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.