Linux Performance Profiling and Monitoring
summary
Covers a practical checklist of tools and what to trust: use VMStat, mpstat and top for summaries, iostat and iotop for block I O but prefer average queue size plus await over %util for SSDs, and use perf record -a -g then flamegraphs to find hot call stacks, or ftrace/trace-cmd for kernel function traces. Shows how pidstat and ps WCHAN reveal uninterruptible IO waits, explains cgroup counters inside LXC, and recommends Percona tools and pt-query-digest for MySQL slow query analysis.
AI-written summary · about
chapters (22)
- 0:00Introduction and overview
- 1:13Basic Linux statistics tools
- 9:24Process and memory analysis
- 13:22Live iostat demonstration
- 18:20Block device performance metrics
- 20:25Advanced monitoring with dstat
- 23:14Historical data collection tools
- 25:02Live process monitoring with top
- 28:00Interactive system monitoring with htop
- 29:05Block and network I/O tools
- 30:06Introduction to tracing and profiling
- 31:10Using ftrace for kernel tracing
- 33:18Perf events and performance counters
- 36:54Raw CPU counters and cache misses
- 38:16Perf stat and performance analysis
- 41:24Flame graphs for CPU profiling
- 43:15Understanding flame graphs
- 46:07Linux containers and cgroups
- 51:05Container resource monitoring
- 52:32MySQL performance tools
- 58:14MySQL performance schema
- 1:02:31Q&A and closing remarks
