Follow these instructions if the application encounters network packet loss or performance issues when processing network traffic.
To reduce network packet loss and incomplete extraction of files from traffic:
If your network interface does not allow setting the maximum number of RSS queues to 16, set it to the maximum supported number.
sudo bash interrupts.sh <dev> <min_cpu> <max_cpu> <step>
, where
<dev>
is the network interface whose interrupts you want to distribute among cores.<min_cpu>
is the first core in the range for network adapter interrupt distribution.<max_cpu>
is the last core in the range for network adapter interrupt distribution.<step>
is the increment for picking the next core to assign to interrupts.Example:
|
ethtool -L $dev rx 16
ethtool -X $dev equal 16
ethtool -X $dev hfunc xor
rmmod i40e && modprobe i40e
ifconfig $dev down
ethtool -L $dev combined 16
ethtool -K $dev rxhash on
ethtool -K $dev ntuple on
ifconfig $dev up
ethtool -X $dev hkey 6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:
5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A:6D:5A equal 16
ethtool -A $dev rx off
ethtool -C $dev adaptive-rx off adaptive-tx off rx-usecs 125
ethtool -G $dev rx 1024
ethtool -N $dev rx-flow-hash tcp4 sdfn
ethtool -N $dev rx-flow-hash tcp6 sdfn
ethtool -N $dev rx-flow-hash udp4 sdfn
ethtool -N $dev rx-flow-hash udp6 sdfn
The network interfaces are configured.
After restarting the application, you must reconfigure the network interfaces following the instructions.
Page top