top & htop: Process Monitoring
Load average interpretation, CPU time breakdown columns, interactive commands, and htop advantages.
Overview
Overview top and htop are the first tools you reach for when investigating system performance. Understanding what you're looking at is critical, because the numbers can be misleading without context. The screen reads from the top down: load average first, then where CPU time goes, then one row per process.
Key concepts
- Load average vs CPU count
- %wa for I/O wait
- %st steal time
- Zombie processes
Interview questions
- A server shows load average of 8.0 on a 4-CPU system. Walk through how you'd diagnose what's causing it.
- What does high %wa (I/O wait) in top indicate, and how is it different from high %us?
Sign up free to read the full topic
More Linux topics
Start free on Cariara · Coding problems · System design studio