Performance & eBPF
TCP backlog: failure analysis
Explain how the TCP accept queue fills under load, why the listen backlog alone does not raise the limit, and how to read the queue and counters on a listening socket.
What you will be able to do
- Read Recv-Q and Send-Q on a listening socket to see whether the accept queue is full.
- Decide when to raise somaxconn and when to fix a slow accept loop instead.
What is in the lesson
- A real situation where this goes wrong
- How it works, step by step
- A walkthrough with commands you can run
- How it fails in production, and how to tell
- Three quiz questions with explanations
Read this lessonFree. No account needed.
More in Performance & eBPF
- IOPS throughput: failure analysisAdvanced · 4 min
Explains how IOPS, bandwidth, block size and queue depth relate, and why a bandwidth quote alone does not describe a random workload. Shows how to choose a test block…
- Network buffer tuning: operational verificationAdvanced · 5 min
Explain how socket buffer sizes cap TCP throughput on long links, and check the buffers a live connection uses before changing sysctl values on any host.