昨天发错了发到别的版了...
==== 测试环境 ====
机器A:
E3-1275L v3 @ 2.70GHz
Gigabyte B85M DS3H
16G RAM
UK-A2XGS(Intel 82599) at PCIEx16
IP: 192.168.111.201
机器B:
i5-4590 CPU @ 3.30GHz
Gigabyte B85M D3H
32G RAM
Intel X520 DA2 at PCIEx4
IP: 192.168.111.202
系统一样都是Centos7.9, 都yum update到最新, 使用默认启动命令, 未开启iommu
两边都是默认的MTU 1500, 默认的net.core参数
net.core.rmem_default = 212992
net.core.rmem_max = 212992
net.core.wmem_default = 212992
net.core.wmem_max = 212992
==== 测试方法 ====
A B 同时开启iperf3服务
A iperf3 --server --bind 192.168.111.201
B iperf3 --server --bind 192.168.111.202
== 新窗口 A对B压测 ==
[root@kvm-host ~]# iperf3 --interval 1 --time 8 --omit 1 --client 192.168.111.202 --udp --bandwidth 10G --verbose --parallel 1
iperf 3.1.7
Linux kvm-host 3.10.0-1160.21.1.el7.x86_64 #1 SMP Tue Mar 16 18:28:22 UTC 2021 x86_64
Control connection MSS 1448
Setting UDP block size to 1448
Time: Tue, 30 Mar 2021 13:36:01 GMT
Connecting to host 192.168.111.202, port 5201
Cookie: kvm-host.1617111361.559285.47bccda12
[ 4] local 192.168.111.201 port 49395 connected to 192.168.111.202 port 5201
Starting Test: protocol: UDP, 1 streams, 1448 byte blocks, omitting 1 seconds, 8 second test
[ ID] Interval Transfer Bandwidth Total Datagrams
[ 4] 0.00-1.00 sec 426 MBytes 3.58 Gbits/sec 308828 (omitted)
[ 4] 0.00-1.00 sec 452 MBytes 3.79 Gbits/sec 327265
[ 4] 1.00-2.00 sec 452 MBytes 3.79 Gbits/sec 327422
[ 4] 2.00-3.00 sec 452 MBytes 3.79 Gbits/sec 327350
[ 4] 3.00-4.00 sec 452 MBytes 3.79 Gbits/sec 327192
[ 4] 4.00-5.00 sec 452 MBytes 3.79 Gbits/sec 327203
[ 4] 5.00-6.00 sec 452 MBytes 3.79 Gbits/sec 327309
[ 4] 6.00-7.00 sec 452 MBytes 3.79 Gbits/sec 327449
[ 4] 7.00-8.00 sec 452 MBytes 3.79 Gbits/sec 327233
- - - - - - - - - - - - - - - - - - - - - - - - -
Test Complete. Summary Results:
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 4] 0.00-8.00 sec 3.53 GBytes 3.79 Gbits/sec 0.001 ms 21356/2618396 (0.82%)
[ 4] Sent 2618396 datagrams
CPU Utilization: local/sender 99.4% (21.3%u/78.3%s), remote/receiver 6.5% (2.1%u/4.5%s)
iperf Done.
== 新窗口B对A压测 ==
[root@host103 ~]# iperf3 --interval 1 --time 8 --omit 1 --client 192.168.111.201 --udp --bandwidth 10G --verbose --parallel 1
iperf 3.1.7
Linux host103 3.10.0-1160.21.1.el7.x86_64 #1 SMP Tue Mar 16 18:28:22 UTC 2021 x86_64
Control connection MSS 1448
Setting UDP block size to 1448
Time: Tue, 30 Mar 2021 05:35:15 GMT
Connecting to host 192.168.111.201, port 5201
Cookie: host103.1617082515.351944.47c163eb6a
[ 4] local 192.168.111.202 port 49244 connected to 192.168.111.201 port 5201
Starting Test: protocol: UDP, 1 streams, 1448 byte blocks, omitting 1 seconds, 8 second test
[ ID] Interval Transfer Bandwidth Total Datagrams
[ 4] 0.00-1.00 sec 366 MBytes 3.07 Gbits/sec 265247 (omitted)
[ 4] 0.00-1.00 sec 397 MBytes 3.33 Gbits/sec 287739
[ 4] 1.00-2.00 sec 398 MBytes 3.33 Gbits/sec 287894
[ 4] 2.00-3.00 sec 398 MBytes 3.33 Gbits/sec 287861
[ 4] 3.00-4.00 sec 398 MBytes 3.34 Gbits/sec 288140
[ 4] 4.00-5.00 sec 404 MBytes 3.39 Gbits/sec 292265
[ 4] 5.00-6.00 sec 403 MBytes 3.38 Gbits/sec 292080
[ 4] 6.00-7.00 sec 403 MBytes 3.38 Gbits/sec 291944
[ 4] 7.00-8.00 sec 403 MBytes 3.38 Gbits/sec 292100
- - - - - - - - - - - - - - - - - - - - - - - - -
Test Complete. Summary Results:
[ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams
[ 4] 0.00-8.00 sec 3.13 GBytes 3.36 Gbits/sec 0.005 ms 120/2319993 (0.0052%)
[ 4] Sent 2319993 datagrams
CPU Utilization: local/sender 99.5% (25.3%u/74.3%s), remote/receiver 5.6% (1.6%u/4.0%s)
iperf Done.
=======================
多次压测, 都是 A->B 3.8Gbps, B->A 3.3Gbps,
如果用 --parallel 4, 就是A->B 5.21Gbps, B->A 4.31Gbps
怀疑是光纤线有一头脏, 导致两边收发不一致, 于是把光纤两模块调个头再测, 数据依旧, 还是A->B高一截.
请教各位大佬, 这种会是什么情况?
--
修改:Mikov FROM 60.253.242.*
FROM 60.253.242.*