Where to start First steps track · 15 stages
Linux Labs

Load average: how many tasks wait for the CPU and the disk

cheat sheet · Ubuntu 24.04 · Linux 6.8 · procps 4.0 https://lab.dimsanych.ru/en/wiki/load-average/

Cheat sheet

  • uptime load over 1, 5 and 15 minutes
  • nproc CPU count to compare with
  • cat /proc/loadavg same numbers + tasks in R / total
  • top load and the %Cpu(s) line
  • vmstat 1 5 r — wait for CPU, b — wait for disk
  • ps -eo stat,pid,pcpu,comm --sort=-pcpu | head CPU eaters
  • ps -eo stat,pid,wchan:30,cmd | awk '$1 ~ /^D/' who is in D
  • cat /proc/pressure/cpu share of time waiting for CPU
Loading…