<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Analysing Statspack (9)</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Sat, 18 May 2013 11:04:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: myron</title>
		<link>http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-37743</link>
		<dc:creator><![CDATA[myron]]></dc:creator>
		<pubDate>Sat, 20 Nov 2010 11:21:35 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-37743</guid>
		<description><![CDATA[Hi Jonathan,

May it be that you took the average wait times from the &quot;Avg wait (ms)&quot; column of the &quot;Wait events&quot; table just below the &quot;Top 5 timed events&quot; section? There they are 1 and 0 - the down-rounded of the less than 2 and 1 millisecond you talked about?
Anyway, if this &quot;Avg wait(ms)&quot; column from the &quot;Wait events&quot; table means what I think it means - it is strange how they came up to this figures  - as the number of &quot;Waits&quot; and &quot;Total Wait Time&quot; is the same as in the &quot;Top 5 timed events&quot; section - and by doing the arithmetic - the results are around 0.5 millisecond.

What do you think?]]></description>
		<content:encoded><![CDATA[<p>Hi Jonathan,</p>
<p>May it be that you took the average wait times from the &#8220;Avg wait (ms)&#8221; column of the &#8220;Wait events&#8221; table just below the &#8220;Top 5 timed events&#8221; section? There they are 1 and 0 &#8211; the down-rounded of the less than 2 and 1 millisecond you talked about?<br />
Anyway, if this &#8220;Avg wait(ms)&#8221; column from the &#8220;Wait events&#8221; table means what I think it means &#8211; it is strange how they came up to this figures  &#8211; as the number of &#8220;Waits&#8221; and &#8220;Total Wait Time&#8221; is the same as in the &#8220;Top 5 timed events&#8221; section &#8211; and by doing the arithmetic &#8211; the results are around 0.5 millisecond.</p>
<p>What do you think?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-36890</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Fri, 30 Jul 2010 20:17:50 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-36890</guid>
		<description><![CDATA[Kartik,

Sometimes you just have to do the arithmetic because the answer isn&#039;t in the report - and then sometimes you do the arithmetic wrong. Look at the Top 5:

[sourcecode gutter=&quot;false&quot;]
db file scattered read                            882,872         472    12.58
db file sequential read                           762,365         307     8.19
[/sourcecode]

882,872 reads in 472 seconds (or 472,000 milliseconds) is 0.535 milliseconds per read, and 762,365 reads in 307,000 milliseconds is 0.40 milliseconds per read. I don&#039;t know how I managed to get these wrong when I wrote the note.  (Both my statements are true, of course, but not accurate - and I think I must have done one of the calculations upside down to get the 2 millisecond figure.

Your other two comments are really about use of language - I said that the direct path reads were &quot;worst&quot;, this doesn&#039;t mean that they were absolutely  bad.  But as an &quot;absolute&quot; guideline - a  physical read request that really goes to disc is behaving reasonably if it takes about  six milliseconds to complete. When I said &quot;I/O profile&quot; it&#039;s not intended as a highly technical expression - I&#039;m just identifying the fact that there&#039;s a pattern or anomaly that probably has some meaning; in this case the pattern is the very fast I/O response time that indicates the use of local filesystem cache.

Thanks for asking the question - it highlighted an error that I shouldn&#039;t have made.
]]></description>
		<content:encoded><![CDATA[<p>Kartik,</p>
<p>Sometimes you just have to do the arithmetic because the answer isn&#8217;t in the report &#8211; and then sometimes you do the arithmetic wrong. Look at the Top 5:</p>
<pre class="brush: plain; gutter: false; title: ; notranslate">
db file scattered read                            882,872         472    12.58
db file sequential read                           762,365         307     8.19
</pre>
<p>882,872 reads in 472 seconds (or 472,000 milliseconds) is 0.535 milliseconds per read, and 762,365 reads in 307,000 milliseconds is 0.40 milliseconds per read. I don&#8217;t know how I managed to get these wrong when I wrote the note.  (Both my statements are true, of course, but not accurate &#8211; and I think I must have done one of the calculations upside down to get the 2 millisecond figure.</p>
<p>Your other two comments are really about use of language &#8211; I said that the direct path reads were &#8220;worst&#8221;, this doesn&#8217;t mean that they were absolutely  bad.  But as an &#8220;absolute&#8221; guideline &#8211; a  physical read request that really goes to disc is behaving reasonably if it takes about  six milliseconds to complete. When I said &#8220;I/O profile&#8221; it&#8217;s not intended as a highly technical expression &#8211; I&#8217;m just identifying the fact that there&#8217;s a pattern or anomaly that probably has some meaning; in this case the pattern is the very fast I/O response time that indicates the use of local filesystem cache.</p>
<p>Thanks for asking the question &#8211; it highlighted an error that I shouldn&#8217;t have made.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kartik</title>
		<link>http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-36884</link>
		<dc:creator><![CDATA[kartik]]></dc:creator>
		<pubDate>Thu, 29 Jul 2010 10:35:49 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-36884</guid>
		<description><![CDATA[Hi Jonathan,

I have few doubts and queries..hope you will find some time to clarify those?

--&gt; The I/O times are very informative. We are seeing lots of waits for single and multiblock reads, and some for direct path reads (which are often quite large).
 But checking the average wait times, the single block reads are averaging less than one millisecond, and the multiblock reads are averaging less than 2 milliseconds.

Where do you see average wait times and  the single block reads are averaging less than one millisecond, and the multiblock reads are averaging less than 2 milliseconds.?

--&gt;The direct path reads are the worst at an average of 5 milliseconds

how should we conclude that average of 5 milliseconds for direct path reads  is bad??

--&gt; when you have an I/O profile like this
How do we say that this is I/O profile??

Apologies..this questions may sound naive..I have started perf tuning a year ago and just learning stuffs!!

your suggestions will be helpful!

Thanks,
Kartik]]></description>
		<content:encoded><![CDATA[<p>Hi Jonathan,</p>
<p>I have few doubts and queries..hope you will find some time to clarify those?</p>
<p>&#8211;&gt; The I/O times are very informative. We are seeing lots of waits for single and multiblock reads, and some for direct path reads (which are often quite large).<br />
 But checking the average wait times, the single block reads are averaging less than one millisecond, and the multiblock reads are averaging less than 2 milliseconds.</p>
<p>Where do you see average wait times and  the single block reads are averaging less than one millisecond, and the multiblock reads are averaging less than 2 milliseconds.?</p>
<p>&#8211;&gt;The direct path reads are the worst at an average of 5 milliseconds</p>
<p>how should we conclude that average of 5 milliseconds for direct path reads  is bad??</p>
<p>&#8211;&gt; when you have an I/O profile like this<br />
How do we say that this is I/O profile??</p>
<p>Apologies..this questions may sound naive..I have started perf tuning a year ago and just learning stuffs!!</p>
<p>your suggestions will be helpful!</p>
<p>Thanks,<br />
Kartik</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oracle Statspack</title>
		<link>http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-31486</link>
		<dc:creator><![CDATA[Oracle Statspack]]></dc:creator>
		<pubDate>Wed, 09 Jul 2008 09:05:19 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-31486</guid>
		<description><![CDATA[[...] Anschließend den Anweisungen des Skripts folgen. Unter folgender URL ist eine Beispielanalyse eines derartigen Reports zu finden: http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/ [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Anschließend den Anweisungen des Skripts folgen. Unter folgender URL ist eine Beispielanalyse eines derartigen Reports zu finden: <a href="http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/" rel="nofollow">http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/</a> [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-29616</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Wed, 13 Feb 2008 11:55:15 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-29616</guid>
		<description><![CDATA[Vasile:

Physical reads = number of blocks read.
v$filestat.phyrds = number of read requests.

So it&#039;s perfectly reasonable to see the first larger than the second.

Direct path reads can be asynchronous (and therefore not always reported with waits), so I would not have been suprised to see your read waits &lt;b&gt;smaller&lt;/b&gt; than your reads; but yours are the other way round.

I can&#039;t think of any obvious &quot;real&quot; reason for the difference, but these things are updated from different pieces of code, so I&#039;m never too suprised to see small differences - especially since the dynamic performance views do not give you point-in-time read-consistency.]]></description>
		<content:encoded><![CDATA[<p>Vasile:</p>
<p>Physical reads = number of blocks read.<br />
v$filestat.phyrds = number of read requests.</p>
<p>So it&#8217;s perfectly reasonable to see the first larger than the second.</p>
<p>Direct path reads can be asynchronous (and therefore not always reported with waits), so I would not have been suprised to see your read waits <b>smaller</b> than your reads; but yours are the other way round.</p>
<p>I can&#8217;t think of any obvious &#8220;real&#8221; reason for the difference, but these things are updated from different pieces of code, so I&#8217;m never too suprised to see small differences &#8211; especially since the dynamic performance views do not give you point-in-time read-consistency.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vasile</title>
		<link>http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-29614</link>
		<dc:creator><![CDATA[Vasile]]></dc:creator>
		<pubDate>Wed, 13 Feb 2008 10:33:37 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-29614</guid>
		<description><![CDATA[Hi Jonathan,

how simple looks when explained by you. Where are these physical reads comming from ? I have identified:
 - datafiles reads( system,data,idx, undo...) ( most of phyrds)
 - temp reads
 - controlfile reads - few
 - redologs reads    - few      
I would expect also for every read to have corresponding wait- so reads close to readwaits.
Next is a delta from 2 snapshots:

select name,value from v$sysstat where name =&#039;physical reads&#039;
union all
select &#039;READS&#039;,(select sum(phyrds) from v$filestat)+(select sum(phyrds) from v$tempstat) from dual
union all 
select &#039;READWAITS&#039;,sum(total_waits) from v$system_event 
where event in (&#039;db file sequential read&#039;,&#039;db file scattered read&#039;,&#039;db file parallel read&#039;,&#039;direct path read&#039;,&#039;direct path read (lob) &#039;)

physical reads 402769 - ???
READS          263594
READWAITS      263663

Do I forget something?
Thank you.

Vasile]]></description>
		<content:encoded><![CDATA[<p>Hi Jonathan,</p>
<p>how simple looks when explained by you. Where are these physical reads comming from ? I have identified:<br />
 &#8211; datafiles reads( system,data,idx, undo&#8230;) ( most of phyrds)<br />
 &#8211; temp reads<br />
 &#8211; controlfile reads &#8211; few<br />
 &#8211; redologs reads    &#8211; few<br />
I would expect also for every read to have corresponding wait- so reads close to readwaits.<br />
Next is a delta from 2 snapshots:</p>
<p>select name,value from v$sysstat where name =&#8217;physical reads&#8217;<br />
union all<br />
select &#8216;READS&#8217;,(select sum(phyrds) from v$filestat)+(select sum(phyrds) from v$tempstat) from dual<br />
union all<br />
select &#8216;READWAITS&#8217;,sum(total_waits) from v$system_event<br />
where event in (&#8216;db file sequential read&#8217;,'db file scattered read&#8217;,'db file parallel read&#8217;,'direct path read&#8217;,'direct path read (lob) &#8216;)</p>
<p>physical reads 402769 &#8211; ???<br />
READS          263594<br />
READWAITS      263663</p>
<p>Do I forget something?<br />
Thank you.</p>
<p>Vasile</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Davide</title>
		<link>http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-27508</link>
		<dc:creator><![CDATA[Davide]]></dc:creator>
		<pubDate>Mon, 24 Dec 2007 10:59:38 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-27508</guid>
		<description><![CDATA[It&#039;s very well explained, as always.
Thank you for your work.]]></description>
		<content:encoded><![CDATA[<p>It&#8217;s very well explained, as always.<br />
Thank you for your work.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SeánMacGC</title>
		<link>http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-27172</link>
		<dc:creator><![CDATA[SeánMacGC]]></dc:creator>
		<pubDate>Thu, 20 Dec 2007 11:32:14 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-27172</guid>
		<description><![CDATA[All good Jonathan, very instructive series.]]></description>
		<content:encoded><![CDATA[<p>All good Jonathan, very instructive series.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martin</title>
		<link>http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-27170</link>
		<dc:creator><![CDATA[Martin]]></dc:creator>
		<pubDate>Thu, 20 Dec 2007 10:51:15 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/12/18/analysing-statspack-9/#comment-27170</guid>
		<description><![CDATA[Thank you for posting this “stream of consciousness”.
It really allows to learn from your deep experience.]]></description>
		<content:encoded><![CDATA[<p>Thank you for posting this “stream of consciousness”.<br />
It really allows to learn from your deep experience.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
