Diagnose Linux resource pressure from the shell
8 steps · about 3 h 35 min · Intermediate
- Interpret system load (reference, Wikipedia, 25 min)
Relate runnable and waiting work to CPU capacity instead of treating one load number as a diagnosis.
- Inspect live processes (guide, Wikipedia, 25 min)
Compare CPU, memory and process state while noting that the display is only a sample.
- Assess memory pressure (guide, Wikipedia, 30 min)
Distinguish useful cache, reclaimable memory and costly paging from simplistic free-memory readings.
- Detect paging activity (guide, Wikipedia, 25 min)
Connect sustained page movement and latency to genuine working-set pressure.
- Measure storage activity (guide, Wikipedia, 30 min)
Compare throughput, queueing and utilisation to identify a likely device bottleneck.
- Interpret process states (guide, Wikipedia, 25 min)
Separate runnable, sleeping, stopped and uninterruptible tasks before choosing an intervention.
- Connect processes to files (guide, Wikipedia, 25 min)
Identify open files, sockets and deleted-but-held data associated with the suspect workload.
- Write an evidence-led diagnosis (guide, Wikipedia, 30 min)
Record timeline, commands, observations, hypothesis and a reversible next test before changing the host.