Interview Prep/Linux/Processes, Signals & systemd

Explain the process states shown in ps (R, S, D, T, Z).

IntermediateConceptProcesses, Signals & systemd
Answer
  • R running or runnable (on the run queue)
  • S interruptible sleep (waiting for an event, e.g. socket read)
  • D uninterruptible sleep (waiting on I/O, usually disk or NFS); cannot be killed
  • T stopped (SIGSTOP / Ctrl+Z) or traced
  • Z zombie
  • I idle kernel thread

Lots of D processes point to storage or NFS trouble and raise load average.

All Linux questions Roadmap: Linux

More on Processes, Signals & systemd