Performance & eBPF
Perf events
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 hosts and the same events.
What you will be able to do
- Explain the difference between counting and sampling in perf events.
- Decide when IPC and cache misses together explain a CPU cost change.
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
- 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…
- 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…
- 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…
- Capacity benchmarkingAdvanced · 4 min
Explains how to find the highest load a service sustains under its latency target, by stepping the rate with long holds on production-sized data. Shows why the margin…
- Latency percentiles: failure analysisAdvanced · 4 min
Explains what percentiles tell you that averages hide, and how histogram buckets set the accuracy of a percentile estimate. Shows how to combine hosts correctly, by…