<?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/"
		>
<channel>
	<title>Comments on: How to find per-process I/O statistics on Linux</title>
	<atom:link href="http://www.xaprb.com/blog/2009/08/23/how-to-find-per-process-io-statistics-on-linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.xaprb.com/blog/2009/08/23/how-to-find-per-process-io-statistics-on-linux/</link>
	<description>Stay curious!</description>
	<lastBuildDate>Thu, 09 Feb 2012 20:41:20 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Yong Huang</title>
		<link>http://www.xaprb.com/blog/2009/08/23/how-to-find-per-process-io-statistics-on-linux/#comment-19029</link>
		<dc:creator>Yong Huang</dc:creator>
		<pubDate>Mon, 03 Jan 2011 19:48:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1238#comment-19029</guid>
		<description>For those trying to get Guillaume Chazarain&#039;s sophisticated iotop to work, try my humble little topio program as a workaround:
http://yong321.freeshell.org/freeware/pio.html#linux

Over the past 7 years, I ported my program to multiple OS&#039;es. The Linux version was done only a few months ago.</description>
		<content:encoded><![CDATA[<p>For those trying to get Guillaume Chazarain&#8217;s sophisticated iotop to work, try my humble little topio program as a workaround:<br />
<a href="http://yong321.freeshell.org/freeware/pio.html#linux" rel="nofollow">http://yong321.freeshell.org/freeware/pio.html#linux</a></p>
<p>Over the past 7 years, I ported my program to multiple OS&#8217;es. The Linux version was done only a few months ago.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Greg Smith</title>
		<link>http://www.xaprb.com/blog/2009/08/23/how-to-find-per-process-io-statistics-on-linux/#comment-19026</link>
		<dc:creator>Greg Smith</dc:creator>
		<pubDate>Mon, 03 Jan 2011 19:02:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1238#comment-19026</guid>
		<description>The unit for block_dump data is blocks, and the easiest way to determine that size in a way that works for any filesystem type is:

/sbin/blockdev --getbsz /dev/sda1

Note that even though I/O accounting showed up in RHEL 5.4, you still can&#039;t get iotop to work because of other dependencies.  As of iotop 0.4, it will compile and run against the Python 2.4 included with RHEL, so long as you&#039;ve installed the python-ctypes package.  But iotop still doesn&#039;t work.  Even though the main per-process I/O patch was backported in RHEL 5.4, the current kernel isn&#039;t configured correctly for it, and there are other issues with the backport being incomplete.  If you build iotop and run it, against the most recent RHEL 5.5 kernel I have here (2.6.18-194.26) it gives the error &quot;CONFIG_TASK_DELAY_ACCT not enabled in kernel, cannot determine SWAPIN and IO %&quot; and the detail level is accordingly low.

There is an open enhancement request to sort this out so iotop works:  https://bugzilla.redhat.com/show_bug.cgi?id=557062 but it keeps missing being included in RHEL releases.  It was hoped for in 5.6 but missed that deadline.  The kernel patches needed are available (along with RHEL engineer packaged iotop related RPMs) are available at http://people.redhat.com/jolsa/iotop/ ; while the patches there aren&#039;t large, it isn&#039;t as easy as just turning on the kernel config option.</description>
		<content:encoded><![CDATA[<p>The unit for block_dump data is blocks, and the easiest way to determine that size in a way that works for any filesystem type is:</p>
<p>/sbin/blockdev &#8211;getbsz /dev/sda1</p>
<p>Note that even though I/O accounting showed up in RHEL 5.4, you still can&#8217;t get iotop to work because of other dependencies.  As of iotop 0.4, it will compile and run against the Python 2.4 included with RHEL, so long as you&#8217;ve installed the python-ctypes package.  But iotop still doesn&#8217;t work.  Even though the main per-process I/O patch was backported in RHEL 5.4, the current kernel isn&#8217;t configured correctly for it, and there are other issues with the backport being incomplete.  If you build iotop and run it, against the most recent RHEL 5.5 kernel I have here (2.6.18-194.26) it gives the error &#8220;CONFIG_TASK_DELAY_ACCT not enabled in kernel, cannot determine SWAPIN and IO %&#8221; and the detail level is accordingly low.</p>
<p>There is an open enhancement request to sort this out so iotop works:  <a href="https://bugzilla.redhat.com/show_bug.cgi?id=557062" rel="nofollow">https://bugzilla.redhat.com/show_bug.cgi?id=557062</a> but it keeps missing being included in RHEL releases.  It was hoped for in 5.6 but missed that deadline.  The kernel patches needed are available (along with RHEL engineer packaged iotop related RPMs) are available at <a href="http://people.redhat.com/jolsa/iotop/" rel="nofollow">http://people.redhat.com/jolsa/iotop/</a> ; while the patches there aren&#8217;t large, it isn&#8217;t as easy as just turning on the kernel config option.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: terrabit</title>
		<link>http://www.xaprb.com/blog/2009/08/23/how-to-find-per-process-io-statistics-on-linux/#comment-18987</link>
		<dc:creator>terrabit</dc:creator>
		<pubDate>Sat, 18 Dec 2010 07:41:50 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1238#comment-18987</guid>
		<description>Here is the script :

#!/bin/bash
dmesg -c
echo 1 &gt; /proc/sys/vm/block_dump
sleep 30
go=0
while [ $go = 0 ]; do
  sleep 1
  clear
  dmesg &#124; perl iodump
  trap &quot;go=1&quot; SIGINT
done
echo 0 &gt; /proc/sys/vm/block_dump
dmesg -c
clear
echo Caught SIGINT.</description>
		<content:encoded><![CDATA[<p>Here is the script :</p>
<p>#!/bin/bash<br />
dmesg -c<br />
echo 1 &gt; /proc/sys/vm/block_dump<br />
sleep 30<br />
go=0<br />
while [ $go = 0 ]; do<br />
  sleep 1<br />
  clear<br />
  dmesg | perl iodump<br />
  trap &#8220;go=1&#8243; SIGINT<br />
done<br />
echo 0 &gt; /proc/sys/vm/block_dump<br />
dmesg -c<br />
clear<br />
echo Caught SIGINT.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yong Huang</title>
		<link>http://www.xaprb.com/blog/2009/08/23/how-to-find-per-process-io-statistics-on-linux/#comment-18922</link>
		<dc:creator>Yong Huang</dc:creator>
		<pubDate>Wed, 17 Nov 2010 15:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1238#comment-18922</guid>
		<description>Looks like the unit is simply &quot;times&quot;, like when you ask How many times has this process done READ&#039;s (or WRITE&#039;s)? Every time, a READ (or WRITE) reads (writes) one block. Not sure how vm/block_dump records scatter/gather I/O (multiple blocks per read or write). I guess it breaks it up into multiple READ/WRITE lines but I&#039;m not sure. The next question is How big is the block? I&#039;m pretty sure it&#039;s the file system block size as when you created the file system. With that info, you can convert the iodump result into KB or MB.</description>
		<content:encoded><![CDATA[<p>Looks like the unit is simply &#8220;times&#8221;, like when you ask How many times has this process done READ&#8217;s (or WRITE&#8217;s)? Every time, a READ (or WRITE) reads (writes) one block. Not sure how vm/block_dump records scatter/gather I/O (multiple blocks per read or write). I guess it breaks it up into multiple READ/WRITE lines but I&#8217;m not sure. The next question is How big is the block? I&#8217;m pretty sure it&#8217;s the file system block size as when you created the file system. With that info, you can convert the iodump result into KB or MB.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Xaprb</title>
		<link>http://www.xaprb.com/blog/2009/08/23/how-to-find-per-process-io-statistics-on-linux/#comment-18800</link>
		<dc:creator>Xaprb</dc:creator>
		<pubDate>Tue, 19 Oct 2010 10:47:35 +0000</pubDate>
		<guid isPermaLink="false">http://www.xaprb.com/blog/?p=1238#comment-18800</guid>
		<description>I don&#039;t remember.  If you find out, post the answer in a new comment.</description>
		<content:encoded><![CDATA[<p>I don&#8217;t remember.  If you find out, post the answer in a new comment.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

