<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Iostat</id>
	<title>Iostat - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://dikapediav2.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Iostat"/>
	<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=Iostat&amp;action=history"/>
	<updated>2026-05-15T09:21:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.0</generator>
	<entry>
		<id>https://dikapediav2.com/wiki/index.php?title=Iostat&amp;diff=97&amp;oldid=prev</id>
		<title>Ardika Sulistija: Created page with &quot;  &lt;b&gt;iostat&lt;/b&gt; - Report Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions.    $ iostat  Linux 4.14.158-129.185.amzn2.x86_64 (ip-172-31-33-239.ec2.internal) 	02/24/2020 	_x86_64_	(2 CPU)    avg-cpu:  %user   %nice %system %iowait  %steal   %idle             0.15    0.00    0.11    0.01    0.04   99.70    Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn  nvme0n1           0.86         2.81         5.86...&quot;</title>
		<link rel="alternate" type="text/html" href="https://dikapediav2.com/wiki/index.php?title=Iostat&amp;diff=97&amp;oldid=prev"/>
		<updated>2024-08-27T00:28:37Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;  &amp;lt;b&amp;gt;iostat&amp;lt;/b&amp;gt; - Report Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions.    $ iostat  Linux 4.14.158-129.185.amzn2.x86_64 (ip-172-31-33-239.ec2.internal) 	02/24/2020 	_x86_64_	(2 CPU)    avg-cpu:  %user   %nice %system %iowait  %steal   %idle             0.15    0.00    0.11    0.01    0.04   99.70    Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn  nvme0n1           0.86         2.81         5.86...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;iostat&amp;lt;/b&amp;gt; - Report Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
 $ iostat&lt;br /&gt;
 Linux 4.14.158-129.185.amzn2.x86_64 (ip-172-31-33-239.ec2.internal) 	02/24/2020 	_x86_64_	(2 CPU)&lt;br /&gt;
 &lt;br /&gt;
 avg-cpu:  %user   %nice %system %iowait  %steal   %idle&lt;br /&gt;
            0.15    0.00    0.11    0.01    0.04   99.70&lt;br /&gt;
 &lt;br /&gt;
 Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn&lt;br /&gt;
 nvme0n1           0.86         2.81         5.86    3308340    6902350&lt;br /&gt;
&lt;br /&gt;
 $ iostat -xm&lt;br /&gt;
 Linux 4.14.193-149.317.amzn2.x86_64 (ip-172-31-35-82.ec2.internal)      03/04/21        _x86_64_        (2 CPU)&lt;br /&gt;
 &lt;br /&gt;
 avg-cpu:  %user   %nice %system %iowait  %steal   %idle&lt;br /&gt;
            0.22    0.00    0.09    0.01    0.06   99.63&lt;br /&gt;
 &lt;br /&gt;
 Device:         rrqm/s   wrqm/s     r/s     w/s    rMB/s    wMB/s avgrq-sz avgqu-sz   await r_await w_await  svctm  %util&lt;br /&gt;
 nvme0n1           0.00     0.03    0.01    0.99     0.00     0.01    20.23     0.00    0.65    0.78    0.65   0.12   0.01&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;b&amp;gt;Tps&amp;lt;/b&amp;gt; : lists the transfers per second to the device.  “Transfers” is another way to say I/O requests sent to the device. &lt;br /&gt;
* &amp;lt;b&amp;gt;Blk_read/s&amp;lt;/b&amp;gt; : The number of blocks read from the device per second. &lt;br /&gt;
* &amp;lt;b&amp;gt;Blk_wrtn/s&amp;lt;/b&amp;gt; : The number of blocks written to the device per second.&lt;br /&gt;
* &amp;lt;b&amp;gt;Blk_read&amp;lt;/b&amp;gt; : The total number of blocks read from the device.&lt;br /&gt;
* &amp;lt;b&amp;gt;Blk_wrtn&amp;lt;/b&amp;gt; : The total number of blocks written to the device. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;You can use iostat to determine which drive partition is currently under heavy I/O load.&amp;lt;/b&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Once you have determined the drive partition that is under heavy I/O load, next is to identify whether the I/O is mostly from reads or writes. &lt;br /&gt;
* &amp;lt;b&amp;gt;Side note&amp;lt;/b&amp;gt;: you may have to run iostat more than one time to get an accurate sense of the current I/O on your system.&lt;br /&gt;
** &amp;lt;b&amp;gt;$ iostat n ;&amp;lt;/b&amp;gt; will print output every ‘n’ seconds. For example:&lt;br /&gt;
 # Prints every 2 seconds&lt;br /&gt;
 $ iostat 2&lt;br /&gt;
 Linux 4.14.158-129.185.amzn2.x86_64 (ip-172-31-33-239.ec2.internal) 	02/24/2020 	_x86_64_	(2 CPU)&lt;br /&gt;
 &lt;br /&gt;
 avg-cpu:  %user   %nice %system %iowait  %steal   %idle&lt;br /&gt;
            0.15    0.00    0.11    0.01    0.04   99.70&lt;br /&gt;
 &lt;br /&gt;
 Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn&lt;br /&gt;
 nvme0n1           0.86         2.81         5.87    3312908    6925355&lt;br /&gt;
 &lt;br /&gt;
 avg-cpu:  %user   %nice %system %iowait  %steal   %idle&lt;br /&gt;
            0.25    0.00    0.25    0.00    0.00   99.50&lt;br /&gt;
 &lt;br /&gt;
 Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn&lt;br /&gt;
 nvme0n1           0.00         0.00         0.00          0          0&lt;br /&gt;
 &lt;br /&gt;
 avg-cpu:  %user   %nice %system %iowait  %steal   %idle&lt;br /&gt;
            0.00    0.00    0.00    0.00    0.00  100.00&lt;br /&gt;
 &lt;br /&gt;
 Device:            tps    kB_read/s    kB_wrtn/s    kB_read    kB_wrtn&lt;br /&gt;
 nvme0n1           0.00         0.00         0.00          0          0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
iostat – try it with the -xm 2 options for extended statistics, in megabytes, and in two-second intervals.&lt;br /&gt;
&lt;br /&gt;
From Samyak (useful to run while running fio benchmark tests!!!) - captures iostat every 1 sec for 10 mins:&lt;br /&gt;
 iostat -xdmzt 1 600&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
‘&amp;lt;b&amp;gt;iotop&amp;lt;/b&amp;gt;’ - a mix between ‘top’ and ‘iostat’ that shows you all of the running processes on the system sorted by their I/O statistics.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Read more: https://coderwall.com/p/utc42q/understanding-iostat&lt;/div&gt;</summary>
		<author><name>Ardika Sulistija</name></author>
	</entry>
</feed>