我有两个 linux 盒子连接到一个千兆交换机。他们都有千兆网卡,电缆是cat7。
使用 iperf 测试网络显示连接速度很快,但使用 rsync、scp 或 nfs 共享传输文件很慢。
我正在测试一个 1GB 的文件。
iperf 结果:
Client connecting to odroid, TCP port 5001
TCP window size: 85.0 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.1.26 port 58788 connected with 192.168.1.32 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 979 MBytes 821 Mbits/sec
Run Code Online (Sandbox Code Playgroud)
使用 rsync、scp 或 nfs 的传输速度约为 ~13Mb/s
SCP:
scp bigfile odroid:/mnt/usb1/ [10:19:12]
bigfile 57% 590MB 12.2MB/s 00:35 ETA^CKilled by signal 2.
Run Code Online (Sandbox Code Playgroud)
同步:
rsync --progress bigfile /mnt/usb1/
bigfile
44,695,552 …Run Code Online (Sandbox Code Playgroud)