Stop your Linux box from dropping packets during heavy traffic spikes

Performance Tuning & Kernel Parameters (Sysctl)

Stop your Linux box from dropping packets during heavy traffic spikes

🧩 The Challenge

Dealing with a web server that randomly drops connections during traffic bursts is a special kind of hell. I spent three days digging through logs before realizing the kernel’s network receive queue was just too damn small for the load.

💡 The Fix

Increase the netdev_max_backlog to give your CPU more breathing room to process incoming packets before the kernel gives up and tosses them. It is one of those settings that defaults to values meant for a 2005-era workstation.

sysctl -w net.core.netdev_max_backlog=5000

⚙️ Why It Works

Pushing this limit higher allows the networking subsystem to buffer more frames in memory when the system is pegged, preventing those nasty silent packet drops. You should match this change in your sysctl.conf to ensure it sticks after a reboot.

🚀 Pro-Tip: Check if your NIC ring buffer is also maxed out with ethtool -g before you start tweaking the kernel.

Linux Tips & Tricks | © ngelinux.com | 8/3/2026

0 0 votes
Article Rating
Subscribe
Notify of
guest

0 Comments
Newest
Oldest Most Voted