Stop your network buffer from dropping packets during bursts
Performance Tuning & Kernel Parameters (Sysctl)
Stop your network buffer from dropping packets during bursts
🧩 The Challenge
Dealing with a high-traffic server where you see drops in netstat but the CPU isn’t even breaking a sweat. It’s maddening when you know the hardware can handle more but the kernel is just dropping the ball.
💡 The Fix
Increase the size of the receive queue buffer to stop the kernel from choking on sudden traffic spikes. It keeps your packets in memory for a split second longer so the application layer can actually grab them.
sysctl -w net.core.netdev_max_backlog=5000
sysctl -w net.core.rmem_max=16777216
sysctl -w net.core.wmem_max=16777216
⚙️ Why It Works
By cranking up these values, you’re telling the kernel to allocate more buffer space for incoming packets before they hit the application. Most default settings were picked back when we were all on T1 lines and just aren’t keeping up with modern 10Gbps interfaces.
🚀 Pro-Tip: Don’t forget to make these changes permanent in /etc/sysctl.d/99-networking.conf unless you want them wiped after a reboot.
Linux Tips & Tricks | © ngelinux.com | 9/22/2026
