Skip to the page

Linux for operators · core

Load average, processes and signals

Load average counts tasks that run or wait, including tasks stuck on disk, so high load with an idle CPU points to I/O. Signals end processes: SIGTERM asks politely and SIGKILL cannot be caught.

The notes

What you must know

  • On Linux, load average counts tasks that are running or waiting for a CPU plus tasks in uninterruptible sleep (state D, usually waiting for disk or network storage). High load with an idle CPU points to I/O.
  • The three numbers are 1, 5 and 15 minute averages. Compare them with the core count and with each other to see if load is rising or falling.
  • First checks: uptime, top (the wa figure), vmstat 1 (b column and wa), iostat -xz 1 (%util and await), ps with the state column to find D processes, and dmesg -T for storage or NFS errors.
  • kill sends SIGTERM (15) by default: a request the process can catch to finish work and exit. SIGKILL (9) is done by the kernel with no cleanup. SIGKILL and SIGSTOP cannot be caught or ignored.
  • SIGHUP (1) is used by many daemons, such as Nginx, to reload config. SIGINT (2) is Ctrl+C.
  • The usual order is SIGTERM, wait, then SIGKILL. systemd, Docker and Kubernetes all stop services this way.
  • A zombie is a child that has exited but whose parent has not called wait() to collect its status. You cannot kill a zombie. Fix the parent or end the parent so init adopts and cleans the child.

The red pen

Common traps: mistake → fix

  • Mistake: High load means high CPU use

    Fix: load also counts tasks blocked on I/O.

  • Mistake: kill -9 is the normal way to stop a service

    Fix: it skips cleanup and can leave transactions and temp files; use SIGTERM first.

  • Mistake: kill -9 removes a zombie

    Fix: the zombie is already dead; the parent must collect it.

Easy to hard

Questions interviewers ask, easy to hard

  1. What does load average mean?
  2. Load is 38 on 8 cores but the CPU is 85 percent idle. What do you check?
  3. What is the difference between kill, kill -9 and kill -HUP?
  4. What is a zombie process and how do you get rid of it?

Explain it out loud

Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.

Practise by voice

Your first interview is free

Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.

Start your free interview