Performance & eBPF
Off CPU profiling: operational verification
Explains off-CPU time, the time threads spend blocked or waiting, which CPU profiles miss. Shows how scheduler statistics and switch traces expose it, and how to split run-queue wait from blocking.
What you will be able to do
- Read the schedstat fields to split on-CPU time from run-queue wait.
- Trace sched_switch to find where threads block.
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
- CPU saturation: operational verificationAdvanced · 4 min
Explains how pressure stall information separates CPU saturation from high utilization and load average inflated by I/O wait. Shows how to read PSI for a host or a…
- CPU flamegraphs: failure analysisAdvanced · 4 min
Explains how CPU flame graphs turn sampled stacks into a picture of where CPU time goes, and what they cannot show about blocked time. Shows how to check a graph…
- Heap profiling: failure analysisAdvanced · 4 min
Explains heap profile views, in-use and allocation, and how to tell a real leak from heavy allocation that the collector frees. Shows how to compare two profiles taken…
- Memory fragmentation: operational verificationAdvanced · 4 min
Explains memory fragmentation, where free memory exists but no contiguous block of the needed size is free, and how buddyinfo and compaction show it. Shows when to…
- Garbage collection: failure analysisAdvanced · 4 min
Explains the Go heap goal and the cost of each collection cycle, and how GOGC and the live heap set the trade between memory and CPU.
- Disk latency: operational verificationAdvanced · 4 min
Explains how block device counters give mean read and write latency and queue time, and why low device utilization can hide slow reads. Shows how to derive latency from…