Intel® Ethernet 800 Series
Linux Performance Tuning Guide
IP Forwarding
- Update the kernel.
Some recent in-distro kernels have degraded routing performance due to kernel changes in the routing code starting with the removal of the routing cache due to security. Recent out-of-distro kernels should have patches that alleviate the performance impact of these changes and might provide improved performance.
- Disable hyper-threading (logical cores).
- Edit kernel boot parameters (useful for older kernels):
- Limit number of queues to be equal to the number of cores on the local socket (32 in this example).
ethtool -L <ethX> combined 32 Note: While 32 queues were common in legacy setups, 32 queues are not mandatory and are insufficient for high-speed 200G workloads. Configuring 64 queues provides significantly better throughput by distributing the load across more processing units.
- Pin interrupts to local socket only (script packaged with ice driver source).
set_irq_affinity -X local <ethX> OR
set_irq_affinity -X local <ethX> Note:"-X or -x" can be used depending on the workload.
- Enable symmetric queuing to align Tx/Rx queues (script packaged with ice driver source).
set_xps_rxqs <ethX> Note: On Intel Xeon 6 platforms, when Sub-NUMA Clustering (SNC2/SNC3) is enabled in the BIOS for performance gains, ensure that interrupt vector processing (/proc/irq/<irq_num>/smp_affinity or set_irq_affinity) is strictly bound to CPU cores within the exact Sub-NUMA node directly attached to the PCIe root port of the NIC. Cross-node interrupt handling across the uncore fabric will degrade performance and increase latency. - Change the Tx and Rx ring sizes as needed, matching Rx/Tx values typically improve forwarding performance.
ethtool -G <ethX> rx 512 tx 512 Note: For E-core platforms, optimal ring size is 512 for 4-6 flow workloads to fit in L2 cache. Using 4096 cause a 5% performance loss while for P-core platforms, optimal ring size is 2048-4096. Using 512 is 'catastrophic' causing a 33% performance drop with smaller frame sizes(256-64B). - Disable adaptive interrupt moderation and set a static value.
ethtool -C <ethX> adaptive-rx off adaptive-tx off ethtool -C <ethX> rx-usecs 64 tx-usecs 64 Note:Depending on the type of processor and workload, the coalescing parameters for Rx and Tx can be adjusted for improved performance (or less frame loss). - Disable the firewall.
sudo systemctl disable firewalld sudo systemctl stop firewalld - Enable IP forwarding.
sysctl -w net.ipv4.ip_forward=1 - Configure max values for the receive and send socket buffer sizes (increase to 512MB for 200G bandwidth).
sysctl -w net.core.rmem_max=16777216 sysctl -w net.core.wmem_max=16777216 Note:Depending on the workload or requirement, these values can be changed from the default.