Benchmarking: iPerf
Jump to navigation
Jump to search
Installation
## Ubuntu
apt-get install iperf
## Redhat
yum install iperfNB: EPEL repositories may be required for Redhat installation
Basic tests
Run a server process
iperf -sRun the client process
# where 10.1.1.1 is the server address from above
iperf -c 10.1.1.1Sample basic results out of the box
[root@dalmatian002 ~]# iperf -c dalmatian001
------------------------------------------------------------
Client connecting to dalmatian001, TCP port 5001
TCP window size: 64.0 KByte (default)
------------------------------------------------------------
[ 3] local 172.31.4.3 port 39475 connected with 172.31.4.2 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 1.12 GBytes 958 Mbits/sec # <-- 1GB link performance
[root@dalmatian002 ~]# iperf -c dalmatian001-ib0
------------------------------------------------------------
Client connecting to dalmatian001-ib0, TCP port 5001
TCP window size: 193 KByte (default)
------------------------------------------------------------
[ 3] local 192.168.0.29 port 44095 connected with 192.168.0.16 port 5001
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 5.95 GBytes 5.11 Gbits/sec # <-- Qlogic QDR performanceParallel Tests
Link on the IB network not being saturated above, try a parallel run:
[root@dalmatian002 ~]# iperf -c dalmatian001-ib0 -P 10
------------------------------------------------------------
Client connecting to dalmatian001-ib0, TCP port 5001
TCP window size: 193 KByte (default)
------------------------------------------------------------
[ 12] local 192.168.0.29 port 44167 connected with 192.168.0.16 port 5001
[ 3] local 192.168.0.29 port 44158 connected with 192.168.0.16 port 5001
[ 4] local 192.168.0.29 port 44159 connected with 192.168.0.16 port 5001
[ 5] local 192.168.0.29 port 44160 connected with 192.168.0.16 port 5001
[ 6] local 192.168.0.29 port 44161 connected with 192.168.0.16 port 5001
[ 7] local 192.168.0.29 port 44162 connected with 192.168.0.16 port 5001
[ 8] local 192.168.0.29 port 44163 connected with 192.168.0.16 port 5001
[ 9] local 192.168.0.29 port 44164 connected with 192.168.0.16 port 5001
[ 10] local 192.168.0.29 port 44165 connected with 192.168.0.16 port 5001
[ 11] local 192.168.0.29 port 44166 connected with 192.168.0.16 port 5001
[ ID] Interval Transfer Bandwidth
[ 5] 0.0-10.0 sec 967 MBytes 811 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.0 sec 1.00 GBytes 861 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 8] 0.0-10.0 sec 1008 MBytes 845 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 10] 0.0-10.0 sec 1001 MBytes 839 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 3] 0.0-10.0 sec 853 MBytes 715 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 7] 0.0-10.0 sec 1.26 GBytes 1.09 Gbits/sec
[ ID] Interval Transfer Bandwidth
[ 6] 0.0-10.0 sec 915 MBytes 767 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 12] 0.0-10.0 sec 1.15 GBytes 989 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 11] 0.0-10.0 sec 915 MBytes 766 Mbits/sec
[ ID] Interval Transfer Bandwidth
[ 9] 0.0-10.0 sec 1.09 GBytes 932 Mbits/sec
[SUM] 0.0-10.0 sec 10.0 GBytes 8.60 Gbits/secMore customised tests
Run a server process
iperf -sRun the client process
user1@ubuntu:~$ iperf -c 10.20.3.5 -w256k -t60 -P3 -N -l131072
------------------------------------------------------------
Client connecting to 10.20.3.5, TCP port 5001
TCP window size: 256 KByte (WARNING: requested 256 KByte)
------------------------------------------------------------
[ 5] local 10.20.3.54 port 47929 connected with 10.20.3.5 port 5001
[ 4] local 10.20.3.54 port 47927 connected with 10.20.3.5 port 5001
[ 3] local 10.20.3.54 port 47928 connected with 10.20.3.5 port 5001
[ ID] Interval Transfer Bandwidth
[ 5] 0.0-60.0 sec 11.1 GBytes 1.59 Gbits/sec
[ 4] 0.0-60.0 sec 11.1 GBytes 1.59 Gbits/sec
[ 3] 0.0-60.0 sec 1.71 GBytes 245 Mbits/sec
[SUM] 0.0-60.0 sec 24.0 GBytes 3.43 Gbits/sec