PowerScale:将 iperf3 与 OneFS 配合使用

Summary: 使用 iperf 测试从客户端到 OneFS 群集的带宽。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

iperf3 程序测试在不使用协议层的情况下从客户端到服务器的原始网络吞吐量。这使您能够建立关于网络上的原始流量的粗略基准。

提醒:iperf3 将向您显示可用带宽。如果有其他流量正在运行,将不会考虑其他流量。

在 40G 或 100G 测试主机上实现线速通常需要并行数据流。但是,使用 iperf3 并不是添加 -P 标记那么简单,因为每个 iperf3 进程都是单线程的,包括该 iperf 进程用于并行测试的所有数据流。这意味着一个测试的所有并行数据流都使用相同的 CPU 核心。如果您受到核心限制(40G 主机通常是这种情况,100G 主机通常是这种情况),则添加并行流将无济于事,除非您通过添加可以使用额外核心的额外 iperf3 进程来实现此目的。

要运行多个 iperf3 进程并使用额外的 CPU 核心来测试高速主机,请执行以下作:

通过运行以下命令启动多个服务器: 
iperf3 -s -p 5101 &; iperf3 -s -p 5102 &; iperf3 -s -p 5103 &
然后运行多个客户端,使用 -T 标记来标记输出:
iperf3 -c hostname -T s1 -p 5101 &;  
iperf3 -c hostname -T s2 -p 5102 &; 
iperf3 -c hostname -T s3 -p 5103 &
通过微调客户端 NIC 参数,Windows 客户端上的 OneFS 可以看到从客户端到群集的结果稳定在 38 Gbe/秒(8 个并行数据流)。这是运行具有 8 个线程的 iperf3 的示例,这是您想要用于 40G 网络测试的示例。

如果您想要在客户端输出中获取服务器结果,请使用 --get-server-output 选项,如下所示:
$ iperf3 -c 192.168.188.11 -P 8 -t 600 --get-server-output
此示例连接到主机 192.168.188.11,端口 5201,8 个数据流,并运行 5 分钟。
PS C:\tmp> iperf3 -c 192.168.188.11 -P 8 -t 600

[  4] local 192.168.188.57 port 60221 connected to 192.168.188.11 port 5201
[  6] local 192.168.188.57 port 60227 connected to 192.168.188.11 port 5201
[  8] local 192.168.188.57 port 60228 connected to 192.168.188.11 port 5201
[ 10] local 192.168.188.57 port 60229 connected to 192.168.188.11 port 5201
[ 12] local 192.168.188.57 port 60230 connected to 192.168.188.11 port 5201
[ 14] local 192.168.188.57 port 60231 connected to 192.168.188.11 port 5201
[ 16] local 192.168.188.57 port 60232 connected to 192.168.188.11 port 5201
[ 18] local 192.168.188.57 port 60233 connected to 192.168.188.11 port 5201
[ ID] Interval           Transfer     Bandwidth
[  4]   0.00-1.00   sec   444 MBytes  3.73 Gbits/sec
[  6]   0.00-1.00   sec   896 MBytes  7.51 Gbits/sec
[  8]   0.00-1.00   sec   440 MBytes  3.69 Gbits/sec
[ 10]   0.00-1.00   sec   572 MBytes  4.79 Gbits/sec
[ 12]   0.00-1.00   sec   432 MBytes  3.62 Gbits/sec
[ 14]   0.00-1.00   sec   559 MBytes  4.69 Gbits/sec
[ 16]   0.00-1.00   sec   543 MBytes  4.55 Gbits/sec
[ 18]   0.00-1.00   sec   422 MBytes  3.54 Gbits/sec
[SUM]   0.00-1.00   sec  4.21 GBytes  36.1 Gbits/sec
将 iperf3 测试中的平均值与下面“平均接口值”表中的值进行比较。此表显示预计可从各种接口类型获得的平均吞吐量。
提醒:这些值不是绝对的;它们旨在用作指南。
  • 如果您的吞吐量结果明显低于表中列出的吞吐量,则问题可能与物理网络有关。
  • 如果您的吞吐量结果与表中列出的吞吐量大致相同,则问题可能与物理网络无关。
平均接口值
网络接口类型 平均吞吐量
1 GbE 800 Mb/秒
10 GbE 3 Gb/秒(MTU 1500
)6 Gb/秒(MTU 9000)
1 GbE 聚合 (0.95 Gb/秒)x(接口数)
10 GbE 聚合 6 Gb/秒

Affected Products

PowerScale OneFS
Article Properties
Article Number: 000188735
Article Type: How To
Last Modified: 23 Oct 2025
Version:  8
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.