I'm trying to check what the maximum transfer speed is over ethernet. In my local network I want the communication between a Linux device and a Microsoft machine.
suggest you keep it simple, you don't need to do a stream an infinite zeros.
- Install samba [server] on linux and open a shared folder such as
- On linux if it's a systemd type system, do a
systemctl enable tmpfs.mount followed by a reboot. This will put the
/tmp folder in ram and will prevent disk i/o from messing up the transfer numbers. This way it will all be in RAM and the slowest thing happening will be the transfer over ethernet whatever those hops may be.
- create some .tar file sized around 10gb, do larger if you like to test transfer speed over a longer duration.
- connect to your linux server from your windows machine making use of the samba setup, move the ~10gb file back and forth and observe the transfer speed in the popup on windows.
from linux to linux, make use of secure copy
scp which is over SSH and you will notice some reduction because of the overhead of SSH. It neatly prints out the transfer speed for you when doing
on a 1gbps wired network, such as 2 systems next to each other over a 6' cat6 cable, I see a solid 112 MB/sec transfer speed between windows and linux.
Over SSH with secure copy on a LAN having a few switches (not routers) it is often around 80 MB/sec; this is on rhel 7.
1gbps = 1000 mbit per sec, and is theoretical not accounting for ethernet overhead. 1000 / (8 bits per byte ) = 125 MB/sec maximum theoretical. Seeing ~112 MB/sec is 89.6%. I have never experienced larger than 113 mb/sec on a 1gbps wired network shown on that pop on the windows machine.
fwiw: just did a 7.6gb tar file over
scp between two rhel 7.9 systems on a 1gbps wired network in work environment, so figure at least 2 [expensive] cisco routers present. Everything within the building. From a server having 512gb ram, secure copied to a pc having an ssd and 16gb ram. SCP finished in 1:11 and and said at the end 106.5 MB/s. So consider as a baseline a 106 mb/s vs 112 mb/s transfer speed... 84.8% vs 89.6% and the ballpark reduction in speed due to ssh overhead.