Linux Performance Analysis
Find the bottleneck on a slow Linux system with a systematic method, standard tools, perf and introductory eBPF tracing.
4 objectives 6 steps about 135 min
Check what you know
The lessons are coming later. The knowledge check is ready now.
This skill page is a public outline. Its lessons and knowledge check appear here as subject-matter experts approve them.
Learning objectives
- Apply the USE method (utilization, saturation, errors) to CPU, memory, disk and network resources.
- Use uptime, vmstat, mpstat, pidstat, iostat, free, sar and pressure stall information (PSI) to locate a saturated resource.
- Profile CPU usage with perf and flame graphs to find hot code paths.
- Use bcc or bpftrace tools (for example execsnoop, opensnoop, biolatency, runqlat) to observe kernel events with low overhead.
Lesson plan
6 steps, about 135 min · 0 of 5 lessons available so far
- Method before tools: the USE method and a 60-second triage checklist Concept · 20 min · coming later
- Lab: find the saturated resource with vmstat, mpstat, pidstat, iostat and PSI Lab · 30 min · coming later
- CPU profiling with perf and flame graphs Worked example · 25 min · coming later
- eBPF for observability: what runs in the kernel and why it is safe Concept · 15 min · coming later
- Lab: what is this server doing? Answers from bpftrace and bcc tools Lab · 25 min · coming later
- Check: diagnose four performance cases from tool output Knowledge check · 8 questions
Practise it
On a VM running a provided workload with an injected bottleneck (CPU hot loop, memory pressure, slow disk or lock contention), follow the USE method, identify the bottleneck with standard tools, confirm it with perf or a bpftrace one-liner, and write a one-page analysis citing the evidence.
References
Hard prerequisites
Unlocks
Nothing depends on this skill yet.
On these roadmaps
Progress and evidence for this skill are shared across all of them.