Diagnose Linux resource pressure from the shell

8 steps · about 3 h 35 min · Intermediate

  1. Interpret system load (reference, Wikipedia, 25 min)

    Relate runnable and waiting work to CPU capacity instead of treating one load number as a diagnosis.

  2. Inspect live processes (guide, Wikipedia, 25 min)

    Compare CPU, memory and process state while noting that the display is only a sample.

  3. Assess memory pressure (guide, Wikipedia, 30 min)

    Distinguish useful cache, reclaimable memory and costly paging from simplistic free-memory readings.

  4. Detect paging activity (guide, Wikipedia, 25 min)

    Connect sustained page movement and latency to genuine working-set pressure.

  5. Measure storage activity (guide, Wikipedia, 30 min)

    Compare throughput, queueing and utilisation to identify a likely device bottleneck.

  6. Interpret process states (guide, Wikipedia, 25 min)

    Separate runnable, sleeping, stopped and uninterruptible tasks before choosing an intervention.

  7. Connect processes to files (guide, Wikipedia, 25 min)

    Identify open files, sockets and deleted-but-held data associated with the suspect workload.

  8. Write an evidence-led diagnosis (guide, Wikipedia, 30 min)

    Record timeline, commands, observations, hypothesis and a reversible next test before changing the host.