<?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>Admin&#039;s Choice &#187; Performance</title>
	<atom:link href="http://adminschoice.com/category/performance/feed" rel="self" type="application/rss+xml" />
	<link>http://adminschoice.com</link>
	<description>Unix adminstrators documents , tip and more</description>
	<lastBuildDate>Thu, 11 Feb 2010 02:53:34 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Solaris Performance Monitoring &amp; Tuning &#8211; iostat, vmstat, netstat</title>
		<link>http://adminschoice.com/iostat-vmstat-netstat</link>
		<comments>http://adminschoice.com/iostat-vmstat-netstat#comments</comments>
		<pubDate>Mon, 21 Dec 2009 06:20:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[iostat]]></category>
		<category><![CDATA[netstat]]></category>
		<category><![CDATA[Solaris Performance Monitoring]]></category>
		<category><![CDATA[vmstat]]></category>

		<guid isPermaLink="false">http://adminschoice.com/wp28/?p=109</guid>
		<description><![CDATA[iostat , vmstat and netstat are three most commonly used tools  for performance monitoring. This document is primarily written with reference to solaris performance monitoring and tuning but these tools are available in other unix variants also with slight syntax difference.]]></description>
			<content:encoded><![CDATA[<p><strong>Introduction to iostat , vmstat and netstat </strong></p>
<p>This document is primarily written with reference to solaris performance monitoring and tuning but these tools are available in other unix variants also with slight syntax difference.</p>
<p>iostat , vmstat and netstat are three most commonly used tools  for performance monitoring . These comes built in with the operating system and are easy to use .iostat stands for input output statistics and reports statistics for i/o devices such as disk drives . vmstat  gives  the statistics for virtual Memory and netstat gives the network statstics .</p>
<p>Following paragraphs describes these tools and their usage for performance monitoring.</p>
<p>Table of content :<br />
1. Iostat<br />
* Syntax<br />
* example<br />
* Result and Solutions</p>
<p>2. vmstat<br />
* syntax<br />
* example<br />
* Result and Solutions</p>
<p>3. netstat<br />
*  syntax<br />
*  example<br />
*  Result and Solutions</p>
<p><strong>Input Output statistics (  iostat )</strong><br />
iostat   reports terminal and disk  I/O  activity and  CPU utilization.  The first line of output is for the  time period  since boot  &amp;  each subsequent line is for  the  prior  interval . Kernel maintains  a number of counters to keep track of  the  values.</p>
<p>iostat&#8217;s activity class options default  to  tdc  (terminal,  disk, and CPU). If any other option/s are specified,  this  default is completely overridden i.e.  iostat -d will report only statistics about the disks.</p>
<p><strong>syntax:</strong><br />
Basic synctax is iostat     interval  count<br />
option &#8211; let you specify the device for which information is needed like disk , cpu or terminal. (-d , -c , -t  or -tdc ) .  x options gives the extended statistics .</p>
<p>interval &#8211;  is time period in seconds between two samples . iostat  4  will give data at each 4 seconds interval.</p>
<p>count  &#8211; is the  number of times the data is needed .  iostat 4 5   will give data at 4 seconds interval   5 times</p>
<p>Example</p>
<pre>$ iostat -xtc 5 2
                          extended disk statistics       tty         cpu
     disk r/s  w/s Kr/s Kw/s wait actv svc_t  %w  %b  tin tout us sy wt id
     sd0   2.6 3.0 20.7 22.7 0.1  0.2  59.2   6   19   0   84  3  85 11 0
     sd1   4.2 1.0 33.5  8.0 0.0  0.2  47.2   2   23
     sd2   0.0 0.0  0.0  0.0 0.0  0.0   0.0   0    0
     sd3  10.2 1.6 51.4 12.8 0.1  0.3  31.2   3   31

The fields have the following meanings:
      disk    name of the disk
      r/s     reads per second
      w/s     writes per second
      Kr/s    kilobytes read per second
      Kw/s    kilobytes written per second
      wait    average number of transactions waiting for service (Q length)
      actv    average number of transactions  actively being serviced
(removed  from  the  queue but not yet completed)
      %w      percent of time there are transactions  waiting
              for service (queue non-empty)
      %b      percent of time the disk is busy  (transactions
                  in progress)</pre>
<p><strong>Results and Solutions</strong><br />
The values to look from the iostat output  are:<br />
* Reads/writes  per second (r/s , w/s)<br />
* Percentage busy (%b)<br />
* Service time (svc_t)</p>
<p>If a disk shows consistently high reads/writes along with , the percentage busy (%b) of the disks is greater than 5 percent, and the average service time  (svc_t) is greater than 30 milliseconds, then  one of the following action needs to be taken</p>
<p><strong>1.) Tune the application</strong> to use disk i/o more efficiently  by modifying the disk queries and using available cache facilities of application servers .</p>
<p><strong>2.) Spread the file system </strong>of the disk on to two or more disk  using disk striping feature of volume manager /disksuite  etc.</p>
<p><strong>3.) Increase the system parameter</strong> values for  inode cache  , ufs_ninode ,  which is  Number of inodes to be held in memory. Inodes are cached globally (for UFS), not on a per-file system basis</p>
<p><strong>4.) Move the file system</strong> to another faster disk /controller  or replace existing disk/controller to a faster one.</p>
<p>Next Page   vmstat</p>
]]></content:encoded>
			<wfw:commentRss>http://adminschoice.com/iostat-vmstat-netstat/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
	</channel>
</rss>
