iperf 是一个简单的工具,可让您测量访问网络的内存到内存的性能。iperf3是一个从头开始的新实现,其目标是更小、更简单的代码库,以及可在其他程序中使用的功能库版本。iperf3是不是与iperf2.x向后兼容。最新的 iperf3 版本始终可用于来自 perfSONAR 存储库的Debian和基于 RHEL 的系统。我们推荐 iperf3 而不是旧版本的 iperf2,因为 TCP 重传和 CWND 报告对故障排除非常有帮助。iperf2.0.8 及更高版本现在通过“-e”标志支持这一点。
命令使用方法:
Disk Testing using iperf3
The latest version of iperf3 now supports disk to disk testing.
For Disk to Disk testing, you would do this:
1st test memory to memory:
server: iperf3 -s
client: iperf3 -c testhost
Then disk to memory:
server: iperf3 -s
client: iperf3 -c testhost -F filename
Then memory to disk:
server: iperf3 -s -F filename
client: iperf3 -c testhost
The results of the slowest test will indicate the bottleneck.
Note that if you run the test a second time the file will be cached, so you need to use a different file, or do this (as root):
sync; echo 3 > /proc/sys/vm/drop_caches
The tests will run till the end of the file, or till the end of the test duration, whichever comes first.