我在我的两台服务器中安装了万兆光纤卡,但是当我测试它们的吞吐量时,它们的速度只有 600Mbps 左右:
$ scp random.1G rcm2:/tmp
random.1G 100% 1024MB 73.1MB/s 00:14
我的路线看起来正确。网络驱动程序和硬件似乎设置正确。
有人能告诉我下一步应该去哪里找吗?
以下是更多信息:
路由
172.16.157.34
$ ip route get 172.16.157.35
172.16.157.35 dev eth1 src 172.16.157.34
172.16.157.35
$ ip route get 172.16.157.34
172.16.157.34 dev eth2 src 172.16.157.35
硬件/ifconfig
172.16.157.34
$ ifconfig
...
eth2 Link encap:Ethernet HWaddr 90:e2:ba:38:aa:ee
inet addr:172.16.157.34 Bcast:172.16.157.63 Mask:255.255.255.224
...
$ lshw -class network
...
description: Ethernet interface
product: 82599EB 10-Gigabit SFI/SFP+ Network Connection
...
serial: 90:e2:ba:38:aa:ee
...
172.16.157.35
$ ifconfig
...
eth1 Link encap:Ethernet HWaddr 90:E2:BA:38:AA:82
inet addr:172.16.157.35 Bcast:172.16.157.63 Mask:255.255.255.224
...
$ lshw -class network
...
description: Ethernet interface
product: 82599EB 10-Gigabit SFI/SFP+ Network Connection
...
serial: 90:e2:ba:38:aa:82
...
驱动程序设置
172.16.157.34
$ sudo ethtool eth2
Settings for eth2:
Supported ports: [ FIBRE ]
Supported link modes: 1000baseT/Full
10000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 1000baseT/Full
10000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 10000Mb/s
Duplex: Full
Port: FIBRE
PHYAD: 0
Transceiver: external
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
172.16.157.35
$ sudo ethtool eth1
[sudo] password for jsp:
Settings for eth1:
Supported ports: [ FIBRE ]
Supported link modes: 1000baseT/Full
10000baseT/Full
Supported pause frame use: No
Supports auto-negotiation: Yes
Advertised link modes: 1000baseT/Full
10000baseT/Full
Advertised pause frame use: No
Advertised auto-negotiation: Yes
Speed: 10000Mb/s
Duplex: Full
Port: FIBRE
PHYAD: 0
Transceiver: external
Auto-negotiation: on
Supports Wake-on: d
Wake-on: d
Current message level: 0x00000007 (7)
drv probe link
Link detected: yes
答案1
scp
在传输过程中加密数据的开销很大。更薄的加密技术nc
将为您提供更好的吞吐量,并更真实地测试您的服务器和网络的物理功能。
另外,请确保瓶颈不存在于磁盘等其他地方。使用 iperf 或类似工具来测试非磁盘限制吞吐量。