<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Custa</id>
	<title>OpenVZ Virtuozzo Containers Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.openvz.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Custa"/>
	<link rel="alternate" type="text/html" href="https://wiki.openvz.org/Special:Contributions/Custa"/>
	<updated>2026-06-13T17:45:42Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.31.1</generator>
	<entry>
		<id>https://wiki.openvz.org/index.php?title=Processes_in_D_state&amp;diff=12382</id>
		<title>Processes in D state</title>
		<link rel="alternate" type="text/html" href="https://wiki.openvz.org/index.php?title=Processes_in_D_state&amp;diff=12382"/>
		<updated>2012-05-11T01:38:58Z</updated>

		<summary type="html">&lt;p&gt;Custa: /* See also */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;If there are a lot of processes in D state in your system, then something is wrong with it.&lt;br /&gt;
&lt;br /&gt;
What is '''D state''' and a process state in general? A process in Linux can be in several states: running, &lt;br /&gt;
sleeping, etc. Running process runs on a CPU just now, sleeping process waits for its turn on CPU&lt;br /&gt;
or for some other event. Using &amp;lt;tt&amp;gt;ps&amp;lt;/tt&amp;gt; command you can obtain information about state of each process in the system: STAT column shows that:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# ps a&lt;br /&gt;
  PID TTY      STAT   TIME COMMAND&lt;br /&gt;
 4975 tty1     Ss+    0:00 /sbin/mingetty tty1&lt;br /&gt;
 4976 tty2     Ss+    0:00 /sbin/mingetty tty2&lt;br /&gt;
 6202 pts/0    Ss+    0:01 -bash&lt;br /&gt;
10312 pts/1    Ss     0:00 -bash&lt;br /&gt;
  639 pts/1    R+     0:00 ps a&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
First big '''S''' stands for Sleeping, '''R''' stands for running (&amp;quot;+&amp;quot; means that the process is foreground and small &amp;quot;s&amp;quot; means that the process is session leader, but it is not relevant for this article).&lt;br /&gt;
&lt;br /&gt;
'''D''' state occurs then the process is in uninterruptible sleep. This state is bad, because you can't do anything with the process in D state. Fortunately, process normally remains in such state not for so long. But if you have a heap of D state processes then some logic in system is disrupt. If that is happening, the very important thing is to determine where this unlucky sleep occurs. It is easy to do with ps command with ''l'' option. WCHAN column shows the name of the kernel function where the process is sleeping:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
# ps axl | grep D&lt;br /&gt;
F   UID   PID  PPID PRI  NI    VSZ   RSS WCHAN  STAT TTY        TIME COMMAND&lt;br /&gt;
vass     13478  7.2  0.0   1732   624 pts/1    D+   17:36   0:00 find ./&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Note|In case you have problem with the D state processes, always attach this information to the report you send to developers.}}&lt;br /&gt;
&lt;br /&gt;
==See also==&lt;br /&gt;
[http://wiki.preshweb.co.uk/doku.php?id=linux:psflags] describes the various states.&lt;br /&gt;
[[Category: Troubleshooting]]&lt;br /&gt;
&lt;br /&gt;
Process waiting for its turn on CPU is in R state.&lt;/div&gt;</summary>
		<author><name>Custa</name></author>
		
	</entry>
</feed>