Intel® Ethernet 800 Series
Linux Performance Tuning Guide
iperf2
Intel recommends iperf2 over iperf3 for most benchmarking situations due to the ease of use and support of multiple threads in a single application instance. Intel recommends running with the -P option with 2-4 threads for 25G connections, around 6-8 threads for 100G connections, and 8-16 client threads for 200G connections.
Iperf2 can be used to validate both TCP and UDP throughput and packet delivery performance.
With TCP:
- To run uni-directional traffic from client to server:
Server command example:
iperf2 -s Client command example:
iperf2 -c <serverIP> -P 8 - To run bi-directional traffic from client to server (and vice versa):
Server command example:
iperf2 -s -p <port> Client command example:
iperf2 -c <serverIP> -p <port> -P <threads> --full-duplex & or
iperf2 -c <serverIP> -p <port> -P <threads> -d &
- Both the
--full-duplex and-d options in iperf2 allow you to perform bidirectional testing. However,--full-duplex option uses a single socket, whereas -d uses multiple sockets to run bidirectional traffic. For better throughput, we recommend using -d for bidirectional testing. Both the -d option and the traditional approach in iperf2 allow bidirectional testing. The -d option uses multiple sockets to run traffic in both directions, while the traditional method involves running iperf on both sides with the server and client configured to transmit and receive (TX and RX) simultaneously. In practice, running TX and RX on both sides tends to produce more consistent results compared to using the -d option. - When running the network throughput test with a single stream/thread (example: -P 1), Intel and AMD processors may not provide expected throughput, particularly with higher bandwidth NICs (if speed is >=25G bandwidth). As a result, application pinning to specific cores is required to achieve higher throughput. See Section 7.2, "Application Settings".
With UDP:
To run uni-directional traffic from client to server:
Server command example:
Client command example:
For bidirectional UDP testing, use the -d option or run TX and RX on both the client and server. In practice, running TX/RX on both sides generally delivers more consistent results than using -d.