<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>iostat Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/iostat/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/iostat/</link>
	<description>A Platform for Software Engineers</description>
	<lastBuildDate>Sat, 27 Feb 2021 09:52:52 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>
	<item>
		<title>20 iostat Commands Examples in Linux / UNIX &#124; iostat Commands Tutorial</title>
		<link>https://www.scmgalaxy.com/tutorials/20-iostat-commands-examples-in-linux-unix/</link>
					<comments>https://www.scmgalaxy.com/tutorials/20-iostat-commands-examples-in-linux-unix/#respond</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Sat, 12 Dec 2015 12:00:48 +0000</pubDate>
				<category><![CDATA[Unix / Linux]]></category>
		<category><![CDATA[commands]]></category>
		<category><![CDATA[Examples]]></category>
		<category><![CDATA[iostat]]></category>
		<category><![CDATA[iostat Command]]></category>
		<category><![CDATA[iostat Command Examples]]></category>
		<category><![CDATA[iostat command line]]></category>
		<category><![CDATA[iostat Commands Tutorials]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux iostat Command]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2015/12/12/20-iostat-commands-examples-in-linux-unix/</guid>

					<description><![CDATA[<p>iostat command is a command that used for monitoring system input/output device loading by observing the time the devices are [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-iostat-commands-examples-in-linux-unix/">20 iostat Commands Examples in Linux / UNIX | iostat Commands Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<div><img fetchpriority="high" decoding="async" class="alignnone size-full wp-image-3169 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/iostat-commands-examples-in.png" alt="" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/iostat-commands-examples-in.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2015/12/iostat-commands-examples-in-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></div>
<div><strong>iostat</strong> command is a command that used for monitoring system input/output device loading by observing the time the devices are active in relation to their average transfer rates. The iostat create reports that can be used to change system configuration to better balance the input/output between physical disks.</div>
<div></div>
<div>You can use iostat command which report Central Processing Unit (CPU) statistics and input/output statistics for devices and partitions. It can be use to find out your system’s average CPU utilization since the last reboot.</div>
<div></div>
<div>Reports Central Processing Unit (CPU) statistics, asynchronous input/output (AIO) and input/output statistics for the entire system, adapters, TTY devices, disks CD-ROMs, tapes and file systems.</div>
<div></div>
<div><strong>Note:</strong></div>
<div>iostat reports CPU, disk I/O, and NFS statistics.</div>
<div>vmstat reports virtual memory statistics.</div>
<div>mpstat reports processors statictics.</div>
<div></div>
<div><strong>How to install iostat?</strong></div>
<div>1. Ensure you are logged in as &#8216;root&#8217;</div>
<div>&#8216;iostat&#8217; and &#8216;vmstat&#8217; are apart of the &#8216;sysstat&#8217; package and should be installed by default</div>
<div>2. Verify installation :</div>
<div># rpm -qa | grep -i sysstat</div>
<div>3. Installation, if needed :</div>
<div># rpm -ivh &lt;name&gt;</div>
<div>4. If you have connectivity to RHN or a Satellite Server:</div>
<div># yum install sysstat</div>
<div>5. If you are using Ubantu:</div>
<div># apt-get install sysstat</div>
<div></div>
<div><strong>1. iostat – Basic example, Iostat without any argument displays information about the CPU usage, and I/O statistics about all the partitions on the system as shown below.</strong></div>
<div>$ iostat</div>
<div></div>
<div><strong>2. iostat – Display only cpu statistics. iostat option -c, displays only the CPU usage statistics as shown below.</strong></div>
<div>$ iostat -c</div>
<div></div>
<div><strong>3. iostat – Display only disk I/O statistics. iostat option -d, displays only the disk I/O statistics as shown below.</strong></div>
<div>$ iostat -d</div>
<div></div>
<div><strong>4. iostat – Display only network statistics. iostat option -n, displays only the device and NFS statistics as shown below.</strong></div>
<div>$ iostat -n</div>
<div></div>
<div><strong>5. iostat – Display I/O data in MB/second. By default iostat, displays the device I/O statistics in Blocks. To change it to MB, use -m as shown below.</strong></div>
<div>
<p>$ iostat -m</p>
</div>
<div><strong>6. iostat – Display I/O statistics only for a device. By default iostat displays I/O data for all the disks available in the system. To view statistics for a specific device (For example, /dev/sda), use the option -p as shown below.</strong></div>
<div>$ iostat -p sda</div>
<div></div>
<div><strong>7. iostat – Display timestamp information, By default iostat displays only the current date. To display the current time, use the option -t as shown below.</strong></div>
<div>$ $ iostat -t</div>
<div></div>
<div><strong>8. iostat – Display Extended status, Use option -x, which will displays extended disk I/O statistics information as shown below.</strong></div>
<div>$ iostat -x</div>
<div></div>
<div><strong>9. To display extended information for a specific partition (For example, /dev/sda1), do the following.</strong></div>
<div>$ iostat -x sda1</div>
<div></div>
<div><strong>10. iostat – Execute Every x seconds (for y number of times). To execute iostat every 2 seconds (until you press Ctl-C), do the following.</strong></div>
<div>$ iostat 2</div>
<div></div>
<div><strong>11.To execute every 2 seconds for a total of 3 times, do the following.</strong></div>
<div>$ iostat 2 3</div>
<div></div>
<div><strong>12. iostat – Display LVM statistic (and version)</strong></div>
<div>$ iostat -N</div>
<div></div>
<div><strong>13. To display the version of iostat, use -V. This will really display the version information of sysstat, as iostat is part of sysstat package.</strong></div>
<div>$ iostat -V</div>
<div></div>
<div><strong>Reference</strong></div>
<div>iostat use these files to create reports&#8230;</div>
<div>/proc/stat which contains system statistics</div>
<div>/proc/partitions which contains disk statistics (for pre 2.5 kernel that have been patched)</div>
<div>/proc/diskstats contains disks statistics (for post 2.5 kernel)</div>
<div>/sys which contains statistics for block devices (post 2.5 kernel)</div>
<div></div>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/20-iostat-commands-examples-in-linux-unix/">20 iostat Commands Examples in Linux / UNIX | iostat Commands Tutorial</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/20-iostat-commands-examples-in-linux-unix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Linux Performance Monitoring using iostat, mpstat and vmstat &#124; Linux Performance Monitoring Guide</title>
		<link>https://www.scmgalaxy.com/tutorials/linux-performance-monitoring-using-iostat-mpstat-and-vmstat/</link>
					<comments>https://www.scmgalaxy.com/tutorials/linux-performance-monitoring-using-iostat-mpstat-and-vmstat/#comments</comments>
		
		<dc:creator><![CDATA[scmgalaxy K]]></dc:creator>
		<pubDate>Fri, 06 Jul 2012 08:58:38 +0000</pubDate>
				<category><![CDATA[Unix - Linux]]></category>
		<category><![CDATA[Guide]]></category>
		<category><![CDATA[iostat]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Linux Performance Monitoring]]></category>
		<category><![CDATA[Linux Performance Monitoring using iostat]]></category>
		<category><![CDATA[Linux Performance Monitoring using mpstat]]></category>
		<category><![CDATA[Linux Performance Monitoring using vmstat]]></category>
		<category><![CDATA[Linux Tutorial]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[mpstat]]></category>
		<category><![CDATA[Performance]]></category>
		<category><![CDATA[Performance Monitoring]]></category>
		<category><![CDATA[Performance Monitoring Guide]]></category>
		<category><![CDATA[Performance Monitoring Tutorial]]></category>
		<category><![CDATA[Performance Monitoring using iostat]]></category>
		<category><![CDATA[Performance Monitoring using mpstat]]></category>
		<category><![CDATA[Performance Monitoring using vmstat]]></category>
		<category><![CDATA[Reference]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[vmstat]]></category>
		<guid isPermaLink="false">http://www.scmgalaxy.com/tutorials/2012/07/06/linux-performance-monitoring-using-iostat-mpstat-and-vmstat/</guid>

					<description><![CDATA[<p>iostat reports CPU, disk I/O, and NFS statistics. mpstat reports processors statictics. vmstat reports virtual memory statistics. vxstat &#8211; This [&#8230;]</p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/linux-performance-monitoring-using-iostat-mpstat-and-vmstat/">Linux Performance Monitoring using iostat, mpstat and vmstat | Linux Performance Monitoring Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></description>
										<content:encoded><![CDATA[<h3><img decoding="async" class="alignnone size-full wp-image-3788 aligncenter" src="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/07/linux-performance-monitorin.png" alt="linux-performance-monitoring" width="600" height="400" srcset="https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/07/linux-performance-monitorin.png 600w, https://www.scmgalaxy.com/tutorials/wp-content/uploads/2012/07/linux-performance-monitorin-300x200.png 300w" sizes="(max-width: 600px) 100vw, 600px" /></h3>
<h3><strong>iostat</strong> reports CPU, disk I/O, and NFS statistics.</h3>
<p><strong>mpstat</strong> reports processors statictics.<br />
<strong>vmstat</strong> reports virtual memory statistics.</p>
<p><a href="http://sfdoccentral.symantec.com/vom/4.0/win_unix/html/vom_winadm_addon_users/SFW_VOM40/apas11.htm">vxstat</a> &#8211; This Utility can be used as well.</p>
<h3><strong>iostat</strong> reports CPU, disk I/O, and NFS statistics.</h3>
<p>The iostat command generates two types of reports, the CPU Utilization report and the Device Utilization report. The first report generated by the iostat command is the CPU Utilization Report.</p>
<table border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top">iostat commands Table</td>
</tr>
<tr>
<td valign="top" width="192">iostat</td>
<td valign="top" width="959">Iostat without any argument displays information about the CPU usage, and I/O statistics</td>
</tr>
<tr>
<td valign="top" width="192">iostat -c</td>
<td valign="top" width="959">Display only cpu statistics</td>
</tr>
<tr>
<td valign="top" width="192">iostat -d</td>
<td valign="top" width="959">Display only disk I/O statistics</td>
</tr>
<tr>
<td valign="top" width="192">iostat -n</td>
<td valign="top" width="959">Display only network statistics (device and NFS statistics)</td>
</tr>
<tr>
<td valign="top" width="192">iostat -m</td>
<td valign="top" width="959">Display the device I/O statistics in Blocks and To change I/O data in MB/second</td>
</tr>
<tr>
<td valign="top" width="192">iostat –p</td>
<td valign="top" width="959">Display I/O statistics only for a device(data for all the disks available in the system)</td>
</tr>
<tr>
<td valign="top" width="192">iostat -t</td>
<td valign="top" width="959">By default iostat displays only the current date. To display the current time, use this option</td>
</tr>
<tr>
<td valign="top" width="192">iostat -x</td>
<td valign="top" width="959">Display extended disk I/O statistics information</td>
</tr>
<tr>
<td valign="top" width="192">iostat -x sda1</td>
<td valign="top" width="959">Display Extended status of device sda1</td>
</tr>
<tr>
<td valign="top" width="192">iostat 2</td>
<td valign="top" width="959">Execute Every 2 seconds (until you press Ctl-C)</td>
</tr>
<tr>
<td valign="top" width="192">iostat 2 3</td>
<td valign="top" width="959">To execute every 2 seconds for a total of 3 times</td>
</tr>
<tr>
<td valign="top" width="192">iostat -N</td>
<td valign="top" width="959">To display the LVM statistics use option -N as shown below.</td>
</tr>
<tr>
<td valign="top" width="192">iostat –V</td>
<td valign="top" width="959">To Display Version</td>
</tr>
<tr>
<td valign="top"></td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top">iostat -d -x</td>
<td valign="top">Display only disk I/O statisticsin in extended form</td>
</tr>
<tr>
<td valign="top">iostat -d -x sda</td>
<td valign="top">Display only sda device I/O statisticsin in extended form</td>
</tr>
<tr>
<td valign="top">iostat -Td -xdn 5</td>
<td valign="top">For Solaris</td>
</tr>
<tr>
<td valign="top">iostat -d -x 5</td>
<td valign="top">For Linux</td>
</tr>
<tr>
<td colspan="2" valign="top"><strong>if Average read or write times over 50 ms, this should be consider for serious i/o problems</strong></td>
</tr>
</tbody>
</table>
<p><strong>The report has the following format:</strong></p>
<p><strong>%user</strong> &#8211; Show the percentage of CPU utilization that occurred while executing at the user level (application).<br />
<strong>%nice </strong>&#8211; provides statistics on a per physical device or partition basis.<br />
<strong>Device</strong> &#8211; This column gives the device name<br />
<strong>tps </strong>&#8211; Indicate the number of transfers per second that were issued to the device. A transfer is an I/O request to the device.<br />
<strong>Blk_read/s</strong> &#8211; Indicate the amount of data read from the drive expressed in a number of blocks per second.<br />
<strong>Blk_wrtn/s</strong> &#8211; Indicate the amount of data written to the drive expressed in a number of blocks per second.<br />
<strong>Blk_read</strong> &#8211; The total number of blocks read.<br />
<strong>Blk_wrtn </strong>&#8211; The total number of blocks written.<br />
<strong>kB_read/s</strong> &#8211; Indicate the amount of data read from the drive expressed in kilobytes per second.<br />
<strong>kB_wrtn/s</strong> &#8211; Indicate the amount of data written to the drive expressed in kilobytes per second.<br />
<strong>wrqm/s </strong>&#8211; The number of write requests merged per second that were issued to the device.<br />
<strong>r/s</strong> &#8211; The number of read requests that were issued to the device per second.<br />
<strong>w/s</strong> &#8211; The number of write requests that were issued to the device per second.<br />
<strong>rsec/s</strong> &#8211; The number of sectors read from the device per second.<br />
<strong>wsec/s</strong> &#8211; The number of sectors written to the device per second.<br />
<strong>await</strong> &#8211; The average time (in milliseconds) for I/O requests issued to the device to be served.<br />
<strong>svctm</strong> &#8211; The average service time (in milliseconds) for I/O requests that were issued to the device.<br />
<strong>%util </strong>&#8211; Percentage of CPU time during which I/O requests were issued to the device.</p>
<h3><strong>vmstat</strong> reports virtual memory statistics.</h3>
<table border="1" width="100%" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top" width="183">vmstat -a</td>
<td valign="top" width="968">Display active and inactive memory</td>
</tr>
<tr>
<td valign="top" width="183">vmstat -f</td>
<td valign="top" width="968">Display number of forks since last boot</td>
</tr>
<tr>
<td valign="top" width="183">vmstat 2</td>
<td valign="top" width="968">Execute Every x seconds (for y number of times)</td>
</tr>
<tr>
<td valign="top" width="183">vmstat -t 1 100</td>
<td valign="top" width="968">Display timestamp</td>
</tr>
<tr>
<td valign="top" width="183">vmstat -V</td>
<td valign="top" width="968">version info</td>
</tr>
<tr>
<td valign="top" width="183">vmstat -m</td>
<td valign="top" width="968">Display slab info</td>
</tr>
<tr>
<td valign="top" width="183">vmstat -s</td>
<td valign="top" width="968">Display statistics in a table format</td>
</tr>
<tr>
<td valign="top" width="183">vmstat -d</td>
<td valign="top" width="968">Use option -d to display the disk statistics as shown below. This displays the reads, writes, and I/O statistics of the disk.</td>
</tr>
<tr>
<td valign="top" width="183">vmstat 1 3</td>
<td valign="top" width="968">vmstat – Increase the width of the display</td>
</tr>
<tr>
<td valign="top" width="183">vmstat -p sdb1</td>
<td valign="top" width="968">Display statistics for a partition</td>
</tr>
<tr>
<td valign="top" width="183">vmstat -S m</td>
<td valign="top" width="968">Display in MB</td>
</tr>
</tbody>
</table>
<p><strong>The report has the following format:</strong></p>
<p><strong>Procs – r</strong>: Total number of processes waiting to run<br />
<strong>Procs – b</strong>: Total number of busy processes<br />
<strong>Memory – swpd</strong>: Used virtual memory<br />
<strong>Memory – free</strong>: Free virtual memory<br />
<strong>Memory – buff</strong>: Memory used as buffers<br />
<strong>Memory – cache</strong>: Memory used as cache.<br />
<strong>Swap – si</strong>: Memory swapped from disk (for every second)<br />
<strong>Swap – so</strong>: Memory swapped to disk (for every second)<br />
<strong>IO – bi</strong>: Blocks in. i.e blocks received from device (for every second)<br />
<strong>IO – bo</strong>: Blocks out. i.e blocks sent to the device (for every second)<br />
<strong>System – in</strong>: Interrupts per second<br />
<strong>System – cs</strong>: Context switches<br />
CPU – us, sy, id, wa, st: CPU user time, system time, idle time, wait time</p>
<h3><strong>mpstat</strong> reports processors statictics.</h3>
<p>reports processors statictics(mpstat &#8211; Report processors related statistics and mpstat displays CPU statistics )</p>
<p>mpstat :- mpstat displays CPU statistics<br />
mpstat -A :- Display all information<br />
mpstat -P ALL :- Display CPU statistics of individual CPU (or) Core</p>
<p><strong>Reference:</strong><br />
<a href="http://www.linux-tutorial.info/modules.php?name=ManPage&amp;sec=1&amp;manpage=iostat" target="_blank" rel="noopener">http://www.linux-tutorial.info/modules.php?name=ManPage&amp;sec=1&amp;manpage=iostat</a><br />
<a href="http://www.thegeekstuff.com/2011/07/iostat-vmstat-mpstat-examples/" target="_blank" rel="noopener">http://www.thegeekstuff.com/2011/07/iostat-vmstat-mpstat-examples/</a></p>
<p>The post <a href="https://www.scmgalaxy.com/tutorials/linux-performance-monitoring-using-iostat-mpstat-and-vmstat/">Linux Performance Monitoring using iostat, mpstat and vmstat | Linux Performance Monitoring Guide</a> appeared first on <a href="https://www.scmgalaxy.com/tutorials">scmGalaxy</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.scmgalaxy.com/tutorials/linux-performance-monitoring-using-iostat-mpstat-and-vmstat/feed/</wfw:commentRss>
			<slash:comments>1</slash:comments>
		
		
			</item>
	</channel>
</rss>
