Read Nmon Code To Learn Analyzing Linux Performance
Nmon is a poweful but simple tool (just one single source file with about ~9000
lines of code) to monitor Linux
performance, so it is a good tutorial to learn how to analyze Linux
performance.