Intel® Ethernet 700 Series
Linux Performance Tuning Guide
iPerf3
If iperf3 is used, multiple instances of the application are required to take advantage of the multi-threads, RSS, and hardware queues. Intel recommends running with the 2-4 application sessions for 25G connections and around 4-6 sessions for 40G connections. Each session should specify a unique TCP port value using the
- To run uni-directional traffic from client to server:
Server command example:
iperf3 -s -p <port> Client command example:
iperf3 -c <serverIP> -p <port> - To run bi-directional traffic from client to server (and vice versa):
Server command example:
iperf3 –s –p <port> Client command example:
iperf3 -c <serverIP> -p <port> -P <IO_Streams> –-bidir - To start multiple instances (threads) of iperf3, the recommendation is to use a for-loop to map threads to TCP ports and run iperf3 in the background using
& to create multiple processes in parallel.Server command example, start 4 threads:
port=""; for i in {0..3}; do port=520$i; bash -c "iperf3 -s -p $port &"; done; Client command example, start 4 threads - Transmit test
port=""; for i in {0..3}; do port=520$i; bash -c "iperf3 -c $serverIP -p $port &"; done; Client command example, start 4 threads - Receive test
port=""; for i in {0..3}; do port=520$i; bash -c "iperf3 -R -c $serverIP -p $port &"; done;
For 40G connections, increase the for-loop to create up to 6 instances/threads.