Performance & eBPF
eBPF hooks
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 before trusting it.
What you will be able to do
- Explain how kprobes and tracepoints differ in stability and coverage.
- Confirm a probe fires with a known request before reading its counter.
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
- 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…
- bpftraceIntermediate · 4 min
Explains how bpftrace turns probes, filters and actions into short scripts that aggregate kernel events into maps and histograms. Covers when to aggregate rather than…
- Perf eventsIntermediate · 4 min
Explains how perf reads hardware and software events in counting and sampling modes, and how IPC and cache misses read together. Shows why comparisons need matched…
- Distributed bottlenecksIntermediate · 4 min
Explains how a shared pool or dependency becomes the bottleneck of a distributed request path, and how retries can make a full queue worse. Shows how to find the shared…
- Tail latency amplificationIntermediate · 4 min
Explains how fan-out multiplies rare slow calls into a slow page, and why a healthy per-call percentile can still hide the problem. Shows how to calculate the odds of…