Linux & OS Internals
perf profiling
Explain how sampling with perf estimates where CPU time goes, why symbols and event types decide whether a profile can be trusted, and how to read the top of a report.
What you will be able to do
- Explain why a sampling profile gives shares of CPU time rather than exact counts.
- Decide which threads, time window and symbols a profile needs before reading it.
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 Linux & OS Internals
- Capabilities and seccompAdvanced · 4 min
Explain how capabilities split root into smaller rights, how the bounding set limits exec, and how seccomp filters the system calls a process can make.
- strace tracingAdvanced · 4 min
Explain how strace uses ptrace to record a process's system calls, and read an unfinished call to find what a stuck process is waiting for without changing its code.
- eBPF observabilityAdvanced · 4 min
Explain how eBPF programs are checked by the verifier, attached to kernel events and read through maps, so you can measure a live kernel path with less overhead than…
- PID and user namespaces: failure analysisAdvanced · 4 min
Explain how user and PID namespaces map IDs and process numbers between a container and the host, so a permission or signal fault can be tied to the right side.
- Mount namespaces: operational verificationAdvanced · 4 min
Explain how mount namespaces and propagation decide what each process sees in its file tree, and how to check a bind-mounted file for a stale inode after a host change.