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.
Hi,
I am performing network bandwidth benchmarking between 2 nodes in different locations.
iperf and scp shows huge difference in Bandwidth.
iperf3 -i 5 -w 64M -t 60 -p 443 -c remote_host
scp 100G_file.img remote_host:/tmp/
iperf showed bandwidth of around 9.32 Gbits/sec, which is approximately 1.165 GB/sec
scp showed speed of just approximately 100-140MBps
So that is like scp is 10 times slower than iperf.
Any idea why is that so ?
One reason I could think of is that scp need to write to harddisk on remote host, which can slow things. While iperf doesn't really write anything to disk.
But again, that shouldn't really make a difference of 10x.
Anyone who has experience on the same, please share your inputs.
You are forgetting about the overhead from the encryption used in the connection with the scp, depending on the speed of the machines doing that, it could take considerable time.
One reason I could think of is that scp need to write to harddisk on remote host, which can slow things. While iperf doesn't really write anything to disk.
But again, that shouldn't really make a difference of 10x.
It looks like you have a fast network. A HDD will definitely slow down the data transfer. You can try to cp 100G on that host without network to check.
Thanks guys. Looks like both the factors contributes to the delay i.e. encryption as well as slow disk (compared to network)
dd command shows disk speed significantly lower than network speed
dd if=/dev/zero of=100G.img bs=1024 count=102400000
102400000+0 records in
102400000+0 records out
104857600000 bytes (105 GB) copied, 330.768 s, 317 MB/s
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.