<?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>Performance Monitoring using vmstat Archives - scmGalaxy</title>
	<atom:link href="https://www.scmgalaxy.com/tutorials/tag/performance-monitoring-using-vmstat/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.scmgalaxy.com/tutorials/tag/performance-monitoring-using-vmstat/</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>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 fetchpriority="high" 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>
