RHEL6及以上版本已经包含qperf,能够直接yum安装。
yum install qperf服务器
运行qperf命令,不加任何参数。
注:测试结束后,程序不会自动退出,须要使用ctrl+c结束进程。网络
一、1个简单的测试示例
测试TCP带宽及延时
qperf server_ip tcp_bw tcp_lattcp
qperf SERVERNODE [OPTIONS] TESTS工具
qperf --help examples Some examples of using qperf
qperf --help opts Summary of options
qperf --help options Description of options
qperf --help tests Short summary and description of tests
qperf --help TESTNAME More information on test TESTNAME测试
qperf有2个特殊参数conf、quit
conf参数显示测试客户端配置
quit参数能够在测试结束后终止服务器端进程,这样就不须要再ctrl+c结束进程。ui