Difference between revisions of "Benchmarking: iPerf"

From Define Wiki
Jump to navigation Jump to search
 
(One intermediate revision by the same user not shown)
Line 82: Line 82:
 
[  9]  0.0-10.0 sec  1.09 GBytes    932 Mbits/sec
 
[  9]  0.0-10.0 sec  1.09 GBytes    932 Mbits/sec
 
[SUM]  0.0-10.0 sec  10.0 GBytes  8.60 Gbits/sec
 
[SUM]  0.0-10.0 sec  10.0 GBytes  8.60 Gbits/sec
 +
</syntaxhighlight>
 +
 +
== More customised tests ==
 +
 +
=== Run a server process ===
 +
<syntaxhighlight>
 +
  iperf -s
 +
</syntaxhighlight>
 +
 +
=== Run the client process ===
 +
<syntaxhighlight>
 +
root@calx4:~# iperf -c 172.28.10.3 -w256k -t60 -P3 -N -l131072
 +
------------------------------------------------------------
 +
Client connecting to 172.28.10.3, TCP port 5001
 +
TCP window size:  256 KByte (WARNING: requested  256 KByte)
 +
------------------------------------------------------------
 +
[  5] local 172.28.10.4 port 55294 connected with 172.28.10.3 port 5001
 +
[  4] local 172.28.10.4 port 55292 connected with 172.28.10.3 port 5001
 +
[  3] local 172.28.10.4 port 55293 connected with 172.28.10.3 port 5001
 +
[ ID] Interval      Transfer    Bandwidth
 +
[  5]  0.0-60.0 sec  12.4 GBytes  1.77 Gbits/sec
 +
[  4]  0.0-60.0 sec  7.35 GBytes  1.05 Gbits/sec
 +
[  3]  0.0-60.0 sec  6.93 GBytes  993 Mbits/sec
 +
[SUM]  0.0-60.0 sec  26.7 GBytes  3.82 Gbits/sec
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 12:11, 21 January 2013

Installation

## Ubuntu
apt-get install iperf

## Redhat
yum install iperf

NB: EPEL repositories may be required for Redhat installation

Basic tests

Run a server process

  iperf -s

Run the client process

# where 10.1.1.1 is the server address from above
iperf -c 10.1.1.1

Sample 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 performance

Parallel 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/sec

More customised tests

Run a server process

  iperf -s

Run the client process

root@calx4:~# iperf -c 172.28.10.3 -w256k -t60 -P3 -N -l131072
------------------------------------------------------------
Client connecting to 172.28.10.3, TCP port 5001
TCP window size:  256 KByte (WARNING: requested  256 KByte)
------------------------------------------------------------
[  5] local 172.28.10.4 port 55294 connected with 172.28.10.3 port 5001
[  4] local 172.28.10.4 port 55292 connected with 172.28.10.3 port 5001
[  3] local 172.28.10.4 port 55293 connected with 172.28.10.3 port 5001
[ ID] Interval       Transfer     Bandwidth
[  5]  0.0-60.0 sec  12.4 GBytes  1.77 Gbits/sec
[  4]  0.0-60.0 sec  7.35 GBytes  1.05 Gbits/sec
[  3]  0.0-60.0 sec  6.93 GBytes   993 Mbits/sec
[SUM]  0.0-60.0 sec  26.7 GBytes  3.82 Gbits/sec