Use it to tell a busy process from a waiting, hung or dead one.
Process States
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.
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.
running (R) ↔ waiting (S/D) → stopped (T) by signal → exit → zombie (Z) until reaped
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
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
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 · 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.
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.
ps -eo pid,ppid,user,stat,%cpu,%mem,etime,cmd --sort=-%cpu | head— processes by CPU with parent and statepstree -p <pid>— process treetop / htop— live CPU and memorycat /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:
| Code | State | Meaning |
|---|---|---|
| R | Running | Running, or ready to run on a CPU |
| S | Interruptible sleep | Waiting for an event (input, timer, network) |
| D | Uninterruptible sleep | Usually waiting for I/O; can't be interrupted by signals |
| T | Stopped | Stopped by job control (Ctrl-Z, SIGSTOP) |
| t | Tracing stop | Stopped by a debugger |
| Z | Zombie | Finished, not yet reaped by its parent |
| I | Idle | An 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
| Observation | Likely meaning |
|---|---|
| Many processes in D | Slow or hung storage, or NFS; they also raise the load average |
| A process stuck in D that won't die | Waiting in the kernel; even SIGKILL waits until the I/O returns |
| Several processes in R on a busy host | CPU contention; compare with the number of CPUs |
| Many Z under one parent | The parent doesn't reap its children |
| T unexpectedly | Someone pressed Ctrl-Z, or a debugger is attached |
Finding the cause of D states
| Tool | Shows |
|---|---|
cat /proc/<pid>/wchan | The kernel function the process is waiting in |
cat /proc/<pid>/stack (root) | The kernel stack |
iostat -x 1, iotop | Which devices and processes are doing I/O |
dmesg | I/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.
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):
| State | Meaning |
|---|---|
| R | Running or runnable |
| S | Interruptible sleep (waiting for event) |
| D | Uninterruptible sleep (usually I/O) — counts towards load average |
| T / t | Stopped / traced |
| Z | Zombie (exited, not reaped) |
| I | Idle 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.
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
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
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%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.
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.
Quick lookup tables
Process States operational reference
Topic-specific lookup boundaries, proof limits and next-step Evidence for Process States.
| Lookup boundary | Topic-specific reference | Operational use |
|---|---|---|
| Scope / effective state | 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. | Establish exactly what this Topic owns before crossing into another subsystem. |
| Fast verification | Pin 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 chain | process execution → scheduler/wait condition → observable task state → wait/resource dependency → state transition or exit → application progress → workload result | Trace requested/configured state through effective state to the observed workload result. |
| Failure boundary | A 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 evidence | Correlated 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 result | Use this observation only for the specific claim it actually supports. |
| Evidence limit | It 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 check | Continue 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 boundary | Process States |
|---|---|
| Topic path | Processes → Process States |
| Runtime state | 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. |
| 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 chain | process 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 boundary | A 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 rule | Prove which configuration source owns the state, then prove that the running consumer loaded or generated the intended state. |