Explain the process states shown in ps (R, S, D, T, Z).
IntermediateConceptProcesses, Signals & systemd
Answer
Rrunning or runnable (on the run queue)Sinterruptible sleep (waiting for an event, e.g. socket read)Duninterruptible sleep (waiting on I/O, usually disk or NFS); cannot be killedTstopped (SIGSTOP / Ctrl+Z) or tracedZzombieIidle kernel thread
Lots of D processes point to storage or NFS trouble and raise load average.
More on Processes, Signals & systemd
What is the difference between a program, a process and a thread?BeginnerHow are new processes created in Linux?IntermediateWhat is a zombie process, and how do you get rid of it?IntermediateWhat is an orphan process?BeginnerWhy can't you kill a process in D state?AdvancedWhat are signals? Name the important ones.Beginner