无论哪边是 Server ,iperf3 测速 单线程 跑不满 10Gbps ,仅有不到 5Gbps ,需要至少四个线程 -P4
才能跑出接近的数值。单线程测速时,Server/Client 并没有任何一个 CPU Core 吃满 100%。
想请教一下可能是什么问题?
有搜到说 Windows 上的 iperf3 因为 cygwin 所以性能有问题,但是手边没有可以连上 10GbE 的 Linux/macOS 设备,所以 没法确认。
~
❯ iperf3 -c 192.168.2.22
Connecting to host 192.168.2.22, port 5201
[ 4] local 192.168.2.11 port 52865 connected to 192.168.2.22 port 5201
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.00 sec 525 MBytes 4.40 Gbits/sec
[ 4] 1.00-2.00 sec 527 MBytes 4.42 Gbits/sec
[ 4] 2.00-3.00 sec 527 MBytes 4.42 Gbits/sec
[ 4] 3.00-4.00 sec 543 MBytes 4.55 Gbits/sec
[ 4] 4.00-5.00 sec 536 MBytes 4.50 Gbits/sec
[ 4] 5.00-6.00 sec 532 MBytes 4.46 Gbits/sec
[ 4] 6.00-7.00 sec 542 MBytes 4.55 Gbits/sec
[ 4] 7.00-8.00 sec 548 MBytes 4.60 Gbits/sec
[ 4] 8.00-9.00 sec 546 MBytes 4.58 Gbits/sec
[ 4] 9.00-10.00 sec 546 MBytes 4.58 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-10.00 sec 5.25 GBytes 4.51 Gbits/sec sender
[ 4] 0.00-10.00 sec 5.25 GBytes 4.51 Gbits/sec receiver
~ took 10s
❯ iperf3 -c 192.168.2.22 -P 4
Connecting to host 192.168.2.22, port 5201
[ 4] local 192.168.2.11 port 53184 connected to 192.168.2.22 port 5201
[ 6] local 192.168.2.11 port 53185 connected to 192.168.2.22 port 5201
[ 8] local 192.168.2.11 port 53186 connected to 192.168.2.22 port 5201
[ 10] local 192.168.2.11 port 53187 connected to 192.168.2.22 port 5201
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-1.00 sec 196 MBytes 1.65 Gbits/sec
[ 6] 0.00-1.00 sec 189 MBytes 1.58 Gbits/sec
[ 8] 0.00-1.00 sec 255 MBytes 2.14 Gbits/sec
[ 10] 0.00-1.00 sec 286 MBytes 2.40 Gbits/sec
[SUM] 0.00-1.00 sec 926 MBytes 7.76 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ 4] 1.00-2.00 sec 247 MBytes 2.07 Gbits/sec
[ 6] 1.00-2.00 sec 248 MBytes 2.08 Gbits/sec
[ 8] 1.00-2.00 sec 273 MBytes 2.29 Gbits/sec
[ 10] 1.00-2.00 sec 298 MBytes 2.50 Gbits/sec
[SUM] 1.00-2.00 sec 1.04 GBytes 8.94 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ 4] 2.00-3.00 sec 278 MBytes 2.33 Gbits/sec
[ 6] 2.00-3.00 sec 264 MBytes 2.22 Gbits/sec
[ 8] 2.00-3.00 sec 278 MBytes 2.33 Gbits/sec
[ 10] 2.00-3.00 sec 299 MBytes 2.51 Gbits/sec
[SUM] 2.00-3.00 sec 1.09 GBytes 9.39 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ 4] 3.00-4.00 sec 282 MBytes 2.36 Gbits/sec
[ 6] 3.00-4.00 sec 257 MBytes 2.15 Gbits/sec
[ 8] 3.00-4.00 sec 279 MBytes 2.34 Gbits/sec
[ 10] 3.00-4.00 sec 301 MBytes 2.53 Gbits/sec
[SUM] 3.00-4.00 sec 1.09 GBytes 9.39 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ 4] 4.00-5.00 sec 268 MBytes 2.25 Gbits/sec
[ 6] 4.00-5.00 sec 248 MBytes 2.08 Gbits/sec
[ 8] 4.00-5.00 sec 302 MBytes 2.54 Gbits/sec
[ 10] 4.00-5.00 sec 301 MBytes 2.52 Gbits/sec
[SUM] 4.00-5.00 sec 1.09 GBytes 9.39 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ 4] 5.00-6.00 sec 282 MBytes 2.36 Gbits/sec
[ 6] 5.00-6.00 sec 284 MBytes 2.38 Gbits/sec
[ 8] 5.00-6.00 sec 271 MBytes 2.27 Gbits/sec
[ 10] 5.00-6.00 sec 285 MBytes 2.39 Gbits/sec
[SUM] 5.00-6.00 sec 1.10 GBytes 9.41 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ 4] 6.00-7.00 sec 290 MBytes 2.44 Gbits/sec
[ 6] 6.00-7.00 sec 263 MBytes 2.21 Gbits/sec
[ 8] 6.00-7.00 sec 281 MBytes 2.36 Gbits/sec
[ 10] 6.00-7.00 sec 286 MBytes 2.40 Gbits/sec
[SUM] 6.00-7.00 sec 1.09 GBytes 9.41 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ 4] 7.00-8.00 sec 280 MBytes 2.35 Gbits/sec
[ 6] 7.00-8.00 sec 279 MBytes 2.34 Gbits/sec
[ 8] 7.00-8.00 sec 272 MBytes 2.28 Gbits/sec
[ 10] 7.00-8.00 sec 288 MBytes 2.42 Gbits/sec
[SUM] 7.00-8.00 sec 1.09 GBytes 9.39 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ 4] 8.00-9.00 sec 288 MBytes 2.42 Gbits/sec
[ 6] 8.00-9.00 sec 268 MBytes 2.24 Gbits/sec
[ 8] 8.00-9.00 sec 280 MBytes 2.35 Gbits/sec
[ 10] 8.00-9.00 sec 284 MBytes 2.38 Gbits/sec
[SUM] 8.00-9.00 sec 1.09 GBytes 9.39 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ 4] 9.00-10.00 sec 276 MBytes 2.32 Gbits/sec
[ 6] 9.00-10.00 sec 281 MBytes 2.36 Gbits/sec
[ 8] 9.00-10.00 sec 280 MBytes 2.35 Gbits/sec
[ 10] 9.00-10.00 sec 284 MBytes 2.38 Gbits/sec
[SUM] 9.00-10.00 sec 1.09 GBytes 9.40 Gbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-10.00 sec 2.63 GBytes 2.26 Gbits/sec sender
[ 4] 0.00-10.00 sec 2.63 GBytes 2.26 Gbits/sec receiver
[ 6] 0.00-10.00 sec 2.52 GBytes 2.16 Gbits/sec sender
[ 6] 0.00-10.00 sec 2.52 GBytes 2.16 Gbits/sec receiver
[ 8] 0.00-10.00 sec 2.71 GBytes 2.33 Gbits/sec sender
[ 8] 0.00-10.00 sec 2.71 GBytes 2.33 Gbits/sec receiver
[ 10] 0.00-10.00 sec 2.84 GBytes 2.44 Gbits/sec sender
[ 10] 0.00-10.00 sec 2.84 GBytes 2.44 Gbits/sec receiver
[SUM] 0.00-10.00 sec 10.7 GBytes 9.19 Gbits/sec sender
[SUM] 0.00-10.00 sec 10.7 GBytes 9.19 Gbits/sec receiver
CPU: 5900X
NIC: Intel X520 DA1 on PCIe Gen 2 * 4 (Max * 8)
NIC Driver: Intel 官网最新的驱动手动安装
CPU: 3900X
NIC: Intel X520 DA1 on PCIe Gen 2 * 4 (Max * 8)
NIC Driver: ixgbe
QNAP QSW-M408S
1
cnbatch 2022-12-16 00:14:04 +08:00
|
2
vibbow 2022-12-16 02:09:17 +08:00
建议用 smb 复制文件测速,很容易就跑满。
|
3
jim9606 2022-12-16 03:16:12 +08:00 via Android
防病毒类软件试试暂时关闭?
可以试试微软出的(疑似弃坑的) ethr ,用 go 实现的可能没兼容层问题。 |
4
lentrody 2022-12-16 08:54:14 +08:00 via Android
用 iperf2
|
5
unidentifiedme OP |
6
vibbow 2022-12-16 21:10:14 +08:00
@unidentifiedme 我交换机是 Juniper EX4300-48P
Windows 上用的 AQC107 ,使用万兆光转电模块连交换机 对端是 QNAP TS-532X ( ARM 架构 NAS),使用 DAC 线连交换机 用 SMB 协议传文件,也没开巨帧,轻轻松松跑满万兆的。 |