Pcornel
Browse topics
Options
Recent
Favorites
Linux · Technical reference

Process States

Direct answer

Process states in ps STAT: R running/runnable, S sleeping (waiting for an event), D uninterruptible sleep (usually I/O), T stopped, Z zombie, I idle kernel thread. Extra flags: s session leader, + foreground, < high priority, N low priority.

When to use this

Use it to tell a busy process from a waiting, hung or dead one.

First 30 seconds

1. ps -eo stat,pid,wchan:20,cmd | awk '$1~/^D/' — D processes and what they wait on.

2. D on NFS or a disk → check dmesg -T and the storage.

3. Z → restart the parent.

4. T → kill -CONT <pid> if stopped by mistake.

5. R at 100 % → CPU-bound; profile or limit it.

Operational verification

running (R) ↔ waiting (S/D) → stopped (T) by signal → exit → zombie (Z) until reaped

Evidence · next step

For Processes → Process States, continue with the first unproven Topic check: Sample process state across time instead of relying on one ps/top snapshot. If that boundary is healthy, advance to the adjacent check: Correlate state with wait channel, CPU/I/O activity, parent behavior and application timeline. Preserve the same host/time/identity scope and rerun the original workload before accepting recovery.

Continue only after interpreting the current observation.
Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
linux
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

Platformlinux
Scope / prerequisiteUse it to tell a busy process from a waiting, hung or dead one.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

5 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Operational evidence path Verify boundary

process execution → scheduler/wait condition → observable task state → wait/resource dependency → state transition or exit → application progress → workload result

Healthy evidence: state transitions match expected workload behavior and progress is confirmed at the application level.

Step 2 Verification and output interpretation Verify boundary

Existing fast checks for this Topic. - Sample process state across time instead of relying on one ps/top snapshot.

  • Correlate state with wait channel, CPU/I/O activity, parent behavior and application timeline.
  • For zombies, identify the parent responsible for reaping rather than signaling the zombie itself.
  • For persistent blocked states, trace the first resource/kernel boundary and verify recovery with the original workload.

Verification chain. process execution → scheduler/wait condition → observable task state → wait/resource dependency → state transition or exit → application progress → workload result

Step 3 Commands Verify boundary
ps -eo pid,stat,cmd | head
cat /proc/<pid>/status | grep State
Step 4 Failure modes and next checks Narrow the fault

Suspicious evidence: a single S/R/D/Z state is treated as a diagnosis without timing, wait-path or workload correlation.

Step 5 Common mistakes Narrow the fault
  • Ignoring D (uninterruptible) state processes pointing at I/O problems.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Key points

Many processes in D state usually mean storage or NFS problems and raise the load average without CPU use. Zombies need their parent fixed. T means stopped by a signal or debugger.

Key checks
  • ps -eo pid,ppid,user,stat,%cpu,%mem,etime,cmd --sort=-%cpu | head — processes by CPU with parent and state
  • pstree -p <pid> — process tree
  • top / htop — live CPU and memory
  • cat /proc/<pid>/status — state, threads and memory of one process
ReferenceWhat it is1 section · depth on demand

Core model

Capture state over time and correlate it with wait channels, CPU activity, I/O, locks, signals and the workload timeline. A single snapshot can be misleading because healthy tasks often sleep and runnable state may be transient. Zombies indicate exited children awaiting reaping, while uninterruptible sleep requires investigation of the blocking kernel/resource path.

ReferenceImportant terms & boundaries5 sections · depth on demand

What this shows and what it does not

A process state classifies scheduler/kernel status at observation time; it does not independently identify the blocked resource or application-level health.

In depth

Process states and what they reveal

The state column in ps and top tells what a process is doing right now. The ps(1) manual page defines the codes:

CodeStateMeaning
RRunningRunning, or ready to run on a CPU
SInterruptible sleepWaiting for an event (input, timer, network)
DUninterruptible sleepUsually waiting for I/O; can't be interrupted by signals
TStoppedStopped by job control (Ctrl-Z, SIGSTOP)
tTracing stopStopped by a debugger
ZZombieFinished, not yet reaped by its parent
IIdleAn idle kernel thread

BSD-style output adds modifiers: < (high priority), N (low priority), L (pages locked in memory), s (session leader), l (multi-threaded) and + (in the foreground process group).

What each state suggests when troubleshooting

ObservationLikely meaning
Many processes in DSlow or hung storage, or NFS; they also raise the load average
A process stuck in D that won't dieWaiting in the kernel; even SIGKILL waits until the I/O returns
Several processes in R on a busy hostCPU contention; compare with the number of CPUs
Many Z under one parentThe parent doesn't reap its children
T unexpectedlySomeone pressed Ctrl-Z, or a debugger is attached

Finding the cause of D states

ToolShows
cat /proc/<pid>/wchanThe kernel function the process is waiting in
cat /proc/<pid>/stack (root)The kernel stack
iostat -x 1, iotopWhich devices and processes are doing I/O
dmesgI/O errors, "task blocked for more than 120 seconds"
host$ ps -eo stat | cut -c1 | sort | uniq -c
      2 D
      3 R
    401 S
      1 Z
host$ ps -eo pid,stat,wchan:32,comm | awk '$2 ~ /^D/'
   5120 D    nfs_wait_bit_killable            rsync
   5133 D    rpc_wait_bit_killable            ls
host$ sudo cat /proc/5120/stack | head -3
host$ dmesg | grep -i "blocked for more than" | tail -2
INFO: task rsync:5120 blocked for more than 122 seconds.
host$ findmnt -t nfs4 -o TARGET,SOURCE,OPTIONS
host$ top -b -n1 | head -4

Reading the example

Two processes are in D state, and their wchan values show that they're waiting on NFS. The kernel's "blocked for more than 122 seconds" message confirms it. The NFS server or the network is the problem, not the processes, and killing them won't help until the mount responds again.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

How it works at runtime

Process States is part of Processes → Process States. Linux process states summarize what a task is doing from the scheduler/kernel perspective, such as runnable/running, interruptible sleep, uninterruptible sleep, stopped/traced or zombie; state is a diagnostic clue rather than a root-cause verdict.

Topic-specific state model. Linux process states summarize what a task is doing from the scheduler/kernel perspective, such as runnable/running, interruptible sleep, uninterruptible sleep, stopped/traced or zombie; state is a diagnostic clue rather than a root-cause verdict.

Interpretation rule. - Sleeping process ≠ hung process.

  • Running/runnable state ≠ useful application progress.
  • Zombie process ≠ CPU-consuming live workload.
  • Uninterruptible sleep ≠ automatic evidence of failed disk; the blocked kernel path must be established.

Quick reference

Process states (ps STAT column):

StateMeaning
RRunning or runnable
SInterruptible sleep (waiting for event)
DUninterruptible sleep (usually I/O) — counts towards load average
T / tStopped / traced
ZZombie (exited, not reaped)
IIdle kernel thread

Modifiers: < high priority, N low priority, s session leader, l multi-threaded, + foreground group.

ps -eo stat,pid,cmd | awk '$1 ~ /^D/'
cat /proc/<pid>/wchan; cat /proc/<pid>/stack

Many D-state processes with high load but idle CPU point at storage or NFS problems.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Limits and how it fails

Primary failure point. A process state classifies scheduler/kernel status at observation time; it does not independently identify the blocked resource or application-level health.

ReferenceConfiguration & state1 section · depth on demand

Configuration, persistence and lifecycle

Distribution/platform context. Process States owns scheduler-visible task-state interpretation. Resource-specific root causes belong to storage, networking, locking or application branches.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor doclinux current

Authoritative/upstream documentation reviewed for bounded claims in Processes → Process States. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://gitlab.com/procps-ng/procps · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
linux process statesprocess state codeszombie process linuxuninterruptible sleep linux
Embedded reference data

Quick lookup tables

Process States operational reference

Topic-specific lookup boundaries, proof limits and next-step Evidence for Process States.

Lookup boundaryTopic-specific referenceOperational use
Scope / effective stateLinux process states summarize what a task is doing from the scheduler/kernel perspective, such as runnable/running, interruptible sleep, uninterruptible sleep, stopped/traced or zombie; state is a diagnostic clue rather than a root-cause verdict.Establish exactly what this Topic owns before crossing into another subsystem.
Fast verificationPin host/container + timestamp → identify exact process or unit → capture PID plus start identity and cgroup/unit → resolve effective unit fragment + drop-ins → inspect dependency/order transaction → record systemd job result → verify process/cgroup and active/sub state → prove application readiness → repeat the original workload test.Use the shortest evidence path first; a fast check is a boundary test, not blanket proof.
Verification chainprocess execution → scheduler/wait condition → observable task state → wait/resource dependency → state transition or exit → application progress → workload resultTrace requested/configured state through effective state to the observed workload result.
Failure boundaryA process state classifies scheduler/kernel status at observation time; it does not independently identify the blocked resource or application-level health.Stop broad troubleshooting at the first boundary that is not supported by evidence.
Positive evidenceCorrelated Linux process/systemd evidence can establish this proof path: process execution → scheduler/wait condition → observable task state → wait/resource dependency → state transition or exit → application progress → workload resultUse this observation only for the specific claim it actually supports.
Evidence limitIt does not independently prove behavior outside the captured process, manager, unit, dependency, runtime or application scope. A process state classifies scheduler/kernel status at observation time; it does not independently identify the blocked resource or application-level health.Do not promote a local success signal into end-to-end or adjacent-dependency proof.
Next troubleshooting checkContinue from the first unproven boundary: reacquire stable process identity, inspect effective loaded unit configuration and dependency/job state, correlate process/cgroup plus journal evidence, then run the original readiness/workload test before changing additional settings.Continue to the next unresolved boundary while preserving the original test condition.

Process States · operational reference

Compact Linux state, persistence, verification and boundary reference for fast lookup.

Reference boundaryProcess States
Topic pathProcesses → Process States
Runtime stateLinux process states summarize what a task is doing from the scheduler/kernel perspective, such as runnable/running, interruptible sleep, uninterruptible sleep, stopped/traced or zombie; state is a diagnostic clue rather than a root-cause verdict.
Fast checks- Sample process state across time instead of relying on one ps/top snapshot. - Correlate state with wait channel, CPU/I/O activity, parent behavior and application timeline. - For zombies, identify the parent responsible for reaping rather than signaling the zombie itself. - For persistent blocked states, trace the first resource/kernel boundary and verify recovery with the original workload.
Verification chainprocess execution → scheduler/wait condition → observable task state → wait/resource dependency → state transition or exit → application progress → workload result Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return/regression → explicit Evidence boundary. Boundary chain: local authoritative state → adjacent dependency → effective/programmed state → original workload/request → return path or regression → explicit Evidence boundary.
Failure boundaryA process state classifies scheduler/kernel status at observation time; it does not independently identify the blocked resource or application-level health. Boundary chain: process/context → userspace configuration → kernel subsystem/resource → device/network/filesystem dependency → effective state → original workload.
Persistence ruleProve which configuration source owns the state, then prove that the running consumer loaded or generated the intended state.
Confirmation

Confirm action

Continue?