sysctl.si › Parameters › net.core.netdev_max_backlog
net.core.netdev_max_backlog
Packets queued per CPU before the network stack handles them.
- Default
- 1000
- Typical value
- 5000 at 1G, 30000 at 10G
When to change it
Raise it on fast network cards if you see drops in /proc/net/softnet_stat. Higher values use a little more memory.
Check the current value
sysctl net.core.netdev_max_backlog
Change it until the next reboot
sudo sysctl -w net.core.netdev_max_backlog=5000
Make it permanent
echo "net.core.netdev_max_backlog = 5000" | sudo tee /etc/sysctl.d/99-custom.conf sudo sysctl --system
Related parameters
net.core.somaxconn · net.ipv4.tcp_max_syn_backlog · net.core.rmem_max · net.core.wmem_max · net.ipv4.tcp_congestion_control · net.core.default_qdisc · net.ipv4.tcp_tw_reuse · net.ipv4.tcp_fin_timeout
Generate a full sysctl config for your server
Values are starting points. Test on a staging machine and measure before and after.