<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Tricks to diagnose processes blocked on strong I/O in linux</title>
	<atom:link href="http://blog.notreally.org/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.notreally.org/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/</link>
	<description>or is it?</description>
	<lastBuildDate>Thu, 18 Feb 2010 07:49:57 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Gong Cheng</title>
		<link>http://blog.notreally.org/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/#comment-858</link>
		<dc:creator>Gong Cheng</dc:creator>
		<pubDate>Wed, 18 Nov 2009 18:01:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.notreally.org/articles/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/#comment-858</guid>
		<description>Thanks for the tip! My system is not really a desktop but I will look to get iotop running on it.

As for gdb, normally I could attach gdb to a running process to see what it is doing, but I guess I was asking for too mucWill try that when it happens again.h when it is in D state.

Again, thanks! I googled and found a lot of links related to the D state topic, but not many provided me with useful debugging tips.</description>
		<content:encoded><![CDATA[<p>Thanks for the tip! My system is not really a desktop but I will look to get iotop running on it.</p>
<p>As for gdb, normally I could attach gdb to a running process to see what it is doing, but I guess I was asking for too mucWill try that when it happens again.h when it is in D state.</p>
<p>Again, thanks! I googled and found a lot of links related to the D state topic, but not many provided me with useful debugging tips.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jroncero</title>
		<link>http://blog.notreally.org/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/#comment-857</link>
		<dc:creator>jroncero</dc:creator>
		<pubDate>Wed, 18 Nov 2009 00:08:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.notreally.org/articles/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/#comment-857</guid>
		<description>Well, if you have 2.6.31 then you can easily find what&#039;s using I/O. Just use iotop to find out which process is using it. 

If strace (why gdb?) is not showing anything, then it&#039;s possibly that the processes are blocked on IO but not doing anything at all apart from waiting from the disks or something and this is easy just by looking at the list of processes which are in &lt;strong&gt;D&lt;/strong&gt; state. That&#039;s easy. The difficult part is to actually find out which of your many processes in D state is actually causing problems, on linux 2.4.</description>
		<content:encoded><![CDATA[<p>Well, if you have 2.6.31 then you can easily find what&#8217;s using I/O. Just use iotop to find out which process is using it. </p>
<p>If strace (why gdb?) is not showing anything, then it&#8217;s possibly that the processes are blocked on IO but not doing anything at all apart from waiting from the disks or something and this is easy just by looking at the list of processes which are in <strong>D</strong> state. That&#8217;s easy. The difficult part is to actually find out which of your many processes in D state is actually causing problems, on linux 2.4.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gong Cheng</title>
		<link>http://blog.notreally.org/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/#comment-856</link>
		<dc:creator>Gong Cheng</dc:creator>
		<pubDate>Tue, 17 Nov 2009 20:09:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.notreally.org/articles/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/#comment-856</guid>
		<description>thanks for the post. unfortunately, when it happened to me on 2.6.31, even strace/gdb won&#039;t display anything.</description>
		<content:encoded><![CDATA[<p>thanks for the post. unfortunately, when it happened to me on 2.6.31, even strace/gdb won&#8217;t display anything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jroncero</title>
		<link>http://blog.notreally.org/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/#comment-827</link>
		<dc:creator>jroncero</dc:creator>
		<pubDate>Fri, 06 Nov 2009 09:09:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.notreally.org/articles/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/#comment-827</guid>
		<description>I&#039;m afraid this is difficult to diagnose. Are you using 2.6? 2.4? With 2.6 you have a wider range of IO schedulers you can use (under linux) that you can try. Then you have ionice, the linux utility that let you change the IO priority (doesn&#039;t work with all the IO schedulers).

Having said that, when a process is in D state, there&#039;s not much you can do about it. Not even root can kill it (uninterruptible sleep it is). This usually boils down to the process waiting for the OS to come back from an IO operation, normally disk IO).

Shutdown is probably taking a long time because it&#039;s writing all the buffers and cache back to disk and finishing everything. This is usually normal (I&#039;ve seen MySQL instances taking a good few minutes to shut down) and depends on how the filesytems is configured. There is a lot you can do here, depending on what filesystem is, how it&#039;s mounted, if it&#039;s got delay write, barriers, journaling, etc. I&#039;m afraid I have no idea about the Veritas FS, so I can&#039;t give you much advise on this front.</description>
		<content:encoded><![CDATA[<p>I&#8217;m afraid this is difficult to diagnose. Are you using 2.6? 2.4? With 2.6 you have a wider range of IO schedulers you can use (under linux) that you can try. Then you have ionice, the linux utility that let you change the IO priority (doesn&#8217;t work with all the IO schedulers).</p>
<p>Having said that, when a process is in D state, there&#8217;s not much you can do about it. Not even root can kill it (uninterruptible sleep it is). This usually boils down to the process waiting for the OS to come back from an IO operation, normally disk IO).</p>
<p>Shutdown is probably taking a long time because it&#8217;s writing all the buffers and cache back to disk and finishing everything. This is usually normal (I&#8217;ve seen MySQL instances taking a good few minutes to shut down) and depends on how the filesytems is configured. There is a lot you can do here, depending on what filesystem is, how it&#8217;s mounted, if it&#8217;s got delay write, barriers, journaling, etc. I&#8217;m afraid I have no idea about the Veritas FS, so I can&#8217;t give you much advise on this front.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pratheep</title>
		<link>http://blog.notreally.org/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/#comment-826</link>
		<dc:creator>Pratheep</dc:creator>
		<pubDate>Fri, 06 Nov 2009 08:42:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.notreally.org/articles/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/#comment-826</guid>
		<description>Hi,

Very good post, thank you.

One of my production Oracle database on Suse linux having the same issue. Some of the oracle process are going in to D state oftenly. So the database shutdown hangs every time. (root also not able to kill the process). I tried strace the pid and that too hangs. File system is Veritas. 
If you have any idea about to trace this process or point this because of filesystem. Any suggestions appreciated.
Thanks in advance
Pratheep
n.pratheep@gmail.com</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>Very good post, thank you.</p>
<p>One of my production Oracle database on Suse linux having the same issue. Some of the oracle process are going in to D state oftenly. So the database shutdown hangs every time. (root also not able to kill the process). I tried strace the pid and that too hangs. File system is Veritas.<br />
If you have any idea about to trace this process or point this because of filesystem. Any suggestions appreciated.<br />
Thanks in advance<br />
Pratheep<br />
<a href="mailto:n.pratheep@gmail.com">n.pratheep@gmail.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ravi</title>
		<link>http://blog.notreally.org/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/#comment-737</link>
		<dc:creator>Ravi</dc:creator>
		<pubDate>Thu, 10 Sep 2009 11:25:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.notreally.org/articles/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/#comment-737</guid>
		<description>thanks man, 
Really good post, it will help to find the process stuck issue and for too increase performance</description>
		<content:encoded><![CDATA[<p>thanks man,<br />
Really good post, it will help to find the process stuck issue and for too increase performance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: roger</title>
		<link>http://blog.notreally.org/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/#comment-532</link>
		<dc:creator>roger</dc:creator>
		<pubDate>Mon, 09 Feb 2009 19:59:23 +0000</pubDate>
		<guid isPermaLink="false">http://blog.notreally.org/articles/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/#comment-532</guid>
		<description>Finally some real information on finding the IO culprits. Thanks much!</description>
		<content:encoded><![CDATA[<p>Finally some real information on finding the IO culprits. Thanks much!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Terminus &#187; Blog Archive &#187; Pregunta de examen</title>
		<link>http://blog.notreally.org/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/#comment-534</link>
		<dc:creator>Terminus &#187; Blog Archive &#187; Pregunta de examen</dc:creator>
		<pubDate>Mon, 11 Feb 2008 11:48:24 +0000</pubDate>
		<guid isPermaLink="false">http://blog.notreally.org/articles/2008/02/10/tricks-to-diagnose-processes-blocked-on-strong-io-in-linux/#comment-534</guid>
		<description>[...] Actualización 11 febrero: He publicado un artículo en mi otro blog sobre el tema: Trucos para detectar procesos bloqueados por I/O. [...]</description>
		<content:encoded><![CDATA[<p>[...] Actualización 11 febrero: He publicado un artículo en mi otro blog sobre el tema: Trucos para detectar procesos bloqueados por I/O. [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
