Scheduler latency analysis
Record context switches then show per-task wakeup latency; find runqueue starvation
perf sched record -- sleep 10 && perf sched latency --sort max
- tool
- perf17 commands
More perf commands
-
perf trace -s -p <pid>strace-like syscall trace with -s summary; lower overhead, no ptrace stop-the-world
-
perf probe --add 'tcp_sendmsg size' && perf record -e probe:tcp_sendmsg -a -- sleep 5Add a kprobe with an argument, then record it; inspect kernel internals without rebuilding
-
perf record -g ./my_appRecord performance data with call-graph info
-
perf reportInteractive display of recorded perf data
-
perf listList all supported perf events on current system