Performance & eBPF
File descriptor exhaustion
Each open file, socket or pipe takes a descriptor from a per-process limit. A count that climbs with requests points to a leak, and a higher limit only delays the failure.
What you will be able to do
- Explain the difference between the soft and hard RLIMIT_NOFILE limits.
- Decide whether a descriptor count reflects real demand or a leak, using counts taken over time.
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
- Network buffer tuningBeginner · 4 min
TCP buffers cap how much data a connection can have in flight, so the window and the round-trip time set the rate. Size them from bandwidth times round-trip time, then…
- TCP backlogBeginner · 4 min
The listen backlog sets the accept queue for a listening socket, capped by the system somaxconn value. A full queue usually means the application accepts too slowly…
- Lock contentionIntermediate · 4 min
A contended lock makes threads sleep on a futex, so CPU can look low while throughput is capped. The length of the locked section sets the ceiling, and adding threads…
- Cache localityIntermediate · 4 min
Cache lines move between RAM and the CPU in fixed blocks, so the order of memory access changes the miss rate. Hardware counters show the cost, and false sharing can…
- NUMA effectsIntermediate · 4 min
Explains how NUMA nodes and memory policy decide where pages live, and how remote memory access shows up as tail latency. It also shows how to check where the memory of…
- eBPF hooksIntermediate · 4 min
Explains how eBPF programs attach to kernel hook points, how the verifier checks them, and why a probe can load yet count nothing. Shows how to confirm a probe fires…