<?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: Parse CPU to Parse Elapsd &#8211; What is Wrong with this Quote?</title>
	<atom:link href="http://hoopercharles.wordpress.com/2011/09/01/parse-cpu-to-parse-elapsd-what-is-wrong-with-this-quote/feed/" rel="self" type="application/rss+xml" />
	<link>http://hoopercharles.wordpress.com/2011/09/01/parse-cpu-to-parse-elapsd-what-is-wrong-with-this-quote/</link>
	<description>Miscellaneous Random Oracle Topics: Stop, Think, ... Understand</description>
	<lastBuildDate>Thu, 13 Jun 2013 22:46:43 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2011/09/01/parse-cpu-to-parse-elapsd-what-is-wrong-with-this-quote/#comment-4821</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Wed, 11 Jul 2012 14:49:27 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=5368#comment-4821</guid>
		<description><![CDATA[Paul,

Nice catch.  Yes, clarification was necessary, thanks.

On a CPU starved server, db file sequential read waits (along with other waits) will very likely require longer to complete.  Cary Millsap&#039;s book also essentially mentioned that the log file sync wait event is one of the first wait events that shows signs of CPU starvation.  The second half of your statement is what I was trying to state - the spin while trying to acquire a latch consumes CPU cycles, but the time in the spin will not be registered to a wait event.

Your comment demonstrates one of the benefits of this blog - readers of the blog help to improve the clarity (and occasionally accuracy) of the articles, and occasionally take the articles into an interesting, tangent topic.]]></description>
		<content:encoded><![CDATA[<p>Paul,</p>
<p>Nice catch.  Yes, clarification was necessary, thanks.</p>
<p>On a CPU starved server, db file sequential read waits (along with other waits) will very likely require longer to complete.  Cary Millsap&#8217;s book also essentially mentioned that the log file sync wait event is one of the first wait events that shows signs of CPU starvation.  The second half of your statement is what I was trying to state &#8211; the spin while trying to acquire a latch consumes CPU cycles, but the time in the spin will not be registered to a wait event.</p>
<p>Your comment demonstrates one of the benefits of this blog &#8211; readers of the blog help to improve the clarity (and occasionally accuracy) of the articles, and occasionally take the articles into an interesting, tangent topic.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://hoopercharles.wordpress.com/2011/09/01/parse-cpu-to-parse-elapsd-what-is-wrong-with-this-quote/#comment-4820</link>
		<dc:creator><![CDATA[Paul]]></dc:creator>
		<pubDate>Wed, 11 Jul 2012 13:58:53 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=5368#comment-4820</guid>
		<description><![CDATA[I think &quot;however such competition probably would not be captured in an Oracle wait event&quot;  IMO needs a little clarifying.. 

Millsap teaches that CPU starvation causes inflated wait times [ the waiting session not only waits for event completion as usual, but also must wait longer for its turn on CPU which can inflate the wait time ( WILL inflate the wait time on a CPU starved system ) ], however in support of your statement, a session that is trying to get a latch  can also spend significant CPU time spinning between latch waits,   which time would not be recorded in any wait event.  

Thanks for this blog..]]></description>
		<content:encoded><![CDATA[<p>I think &#8220;however such competition probably would not be captured in an Oracle wait event&#8221;  IMO needs a little clarifying.. </p>
<p>Millsap teaches that CPU starvation causes inflated wait times [ the waiting session not only waits for event completion as usual, but also must wait longer for its turn on CPU which can inflate the wait time ( WILL inflate the wait time on a CPU starved system ) ], however in support of your statement, a session that is trying to get a latch  can also spend significant CPU time spinning between latch waits,   which time would not be recorded in any wait event.  </p>
<p>Thanks for this blog..</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2011/09/01/parse-cpu-to-parse-elapsd-what-is-wrong-with-this-quote/#comment-3852</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Mon, 05 Sep 2011 17:25:27 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=5368#comment-3852</guid>
		<description><![CDATA[Dom,

Thank you for solving that mystery... 3 years before the question was asked on AskTom.]]></description>
		<content:encoded><![CDATA[<p>Dom,</p>
<p>Thank you for solving that mystery&#8230; 3 years before the question was asked on AskTom.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dom Brooks</title>
		<link>http://hoopercharles.wordpress.com/2011/09/01/parse-cpu-to-parse-elapsd-what-is-wrong-with-this-quote/#comment-3849</link>
		<dc:creator><![CDATA[Dom Brooks]]></dc:creator>
		<pubDate>Mon, 05 Sep 2011 13:18:52 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=5368#comment-3849</guid>
		<description><![CDATA[There was a bug in 11gR1 reporting that ratio incorrectly as 0.00%.
See http://orastory.wordpress.com/2008/05/16/bug-in-11g-awr-report/]]></description>
		<content:encoded><![CDATA[<p>There was a bug in 11gR1 reporting that ratio incorrectly as 0.00%.<br />
See <a href="http://orastory.wordpress.com/2008/05/16/bug-in-11g-awr-report/" rel="nofollow">http://orastory.wordpress.com/2008/05/16/bug-in-11g-awr-report/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2011/09/01/parse-cpu-to-parse-elapsd-what-is-wrong-with-this-quote/#comment-3841</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Sat, 03 Sep 2011 22:59:33 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=5368#comment-3841</guid>
		<description><![CDATA[Chris, Michael, Ahmed, Tony, and Mohamed - very good answers and together will provide a lot of help to readers of this book.  This blog article and the attached comments are just another example of an error in a book being reworked into an opportunity for learning.

As promised, my explanation that will appear in the formal book review:
&lt;blockquote&gt;
Recipe 4-10 incorrectly states that the “Parse CPU to Parse Elapsd” statistic found in an AWR report is “how much time the CPU is spending parsing SQL statements...”  The book’s definition of this statistic is incorrect – the statistic actually indicates delays (wait events) in the parsing of SQL statements, very likely due to contention between sessions (or possibly excessive competition for the server’s CPUs, however such competition probably would not be captured in an Oracle wait event).  Ideally, this statistic in an AWR report should be close to 100%. It appears that the book authors attempted to describe the “PARSE TIME CPU” statistic, which is not found in this section of an AWR report, or attempted to describe a derivative of the “Non-Parse CPU” statistic which does appear in the Instance Efficiency Percentages section of an AWR report (page 133-134).
&lt;/blockquote&gt;]]></description>
		<content:encoded><![CDATA[<p>Chris, Michael, Ahmed, Tony, and Mohamed &#8211; very good answers and together will provide a lot of help to readers of this book.  This blog article and the attached comments are just another example of an error in a book being reworked into an opportunity for learning.</p>
<p>As promised, my explanation that will appear in the formal book review:</p>
<blockquote><p>
Recipe 4-10 incorrectly states that the “Parse CPU to Parse Elapsd” statistic found in an AWR report is “how much time the CPU is spending parsing SQL statements&#8230;”  The book’s definition of this statistic is incorrect – the statistic actually indicates delays (wait events) in the parsing of SQL statements, very likely due to contention between sessions (or possibly excessive competition for the server’s CPUs, however such competition probably would not be captured in an Oracle wait event).  Ideally, this statistic in an AWR report should be close to 100%. It appears that the book authors attempted to describe the “PARSE TIME CPU” statistic, which is not found in this section of an AWR report, or attempted to describe a derivative of the “Non-Parse CPU” statistic which does appear in the Instance Efficiency Percentages section of an AWR report (page 133-134).
</p></blockquote>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2011/09/01/parse-cpu-to-parse-elapsd-what-is-wrong-with-this-quote/#comment-3838</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Fri, 02 Sep 2011 19:52:44 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=5368#comment-3838</guid>
		<description><![CDATA[Mohamed,

Nice find for a blog article that directly references the Parse CPU to Parse Elapsd metric.  You probably noticed that I intentionally erased the &quot;(Target 100%)&quot; from the posted sample Instance Efficiency Percentages sections that are included in this blog article - just to see if anyone would notice.

I thought for sure that someone would provide a link to AskTom.  I found the following thread link yesterday:
http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:2159478097863

In the above thread is the following Instance Efficiency Percentages output:
&lt;pre&gt;
Buffer Nowait %:             99.98    Redo NoWait %:    100.00 
Buffer Hit %:                99.91    In-memory Sort %:  99.88 
Library Hit %:               99.89    Soft Parse %:      99.23 
Execute to Parse %:          75.94    Latch Hit %:       99.94 
Parse CPU to Parse Elapsd %:  0.00    % Non-Parse CPU:   93.89 
&lt;/pre&gt;

According to the quote from the book, the above Parse CPU to Parse Elapsd metric would be &lt;b&gt;&lt;i&gt;infinitely&lt;/i&gt;&lt;/b&gt; better than either of the two sample Instance Efficiency Percentages sections that I included in the blog article.  :-)]]></description>
		<content:encoded><![CDATA[<p>Mohamed,</p>
<p>Nice find for a blog article that directly references the Parse CPU to Parse Elapsd metric.  You probably noticed that I intentionally erased the &#8220;(Target 100%)&#8221; from the posted sample Instance Efficiency Percentages sections that are included in this blog article &#8211; just to see if anyone would notice.</p>
<p>I thought for sure that someone would provide a link to AskTom.  I found the following thread link yesterday:<br />
<a href="http://asktom.oracle.com/pls/apex/f?p=100:11:0" rel="nofollow">http://asktom.oracle.com/pls/apex/f?p=100:11:0</a>::::P11_QUESTION_ID:2159478097863</p>
<p>In the above thread is the following Instance Efficiency Percentages output:</p>
<pre>
Buffer Nowait %:             99.98    Redo NoWait %:    100.00 
Buffer Hit %:                99.91    In-memory Sort %:  99.88 
Library Hit %:               99.89    Soft Parse %:      99.23 
Execute to Parse %:          75.94    Latch Hit %:       99.94 
Parse CPU to Parse Elapsd %:  0.00    % Non-Parse CPU:   93.89 
</pre>
<p>According to the quote from the book, the above Parse CPU to Parse Elapsd metric would be <b><i>infinitely</i></b> better than either of the two sample Instance Efficiency Percentages sections that I included in the blog article.  <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Houri Mohamed</title>
		<link>http://hoopercharles.wordpress.com/2011/09/01/parse-cpu-to-parse-elapsd-what-is-wrong-with-this-quote/#comment-3837</link>
		<dc:creator><![CDATA[Houri Mohamed]]></dc:creator>
		<pubDate>Fri, 02 Sep 2011 14:35:46 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=5368#comment-3837</guid>
		<description><![CDATA[If Parse CPU to Parse Elapsd metric equals 2% then this means that for every CPU second spent parsing we spent about 100/2= 50 seconds wall clock time parsing. Ideally we would not spend time waiting for something and hence the metric should show 100%. This fact is already indicated in the AWR Instance Efficiency Percentages (Target 100%).

However, Jonathan Lewis wrote a blog article warning us about jumping to conclusion when using the Instance Efficiency Percentage without considering at least the load profile and, particularly, its &quot;per second&quot; figures
http://jonathanlewis.wordpress.com/2006/12/27/analysing-statspack-2/]]></description>
		<content:encoded><![CDATA[<p>If Parse CPU to Parse Elapsd metric equals 2% then this means that for every CPU second spent parsing we spent about 100/2= 50 seconds wall clock time parsing. Ideally we would not spend time waiting for something and hence the metric should show 100%. This fact is already indicated in the AWR Instance Efficiency Percentages (Target 100%).</p>
<p>However, Jonathan Lewis wrote a blog article warning us about jumping to conclusion when using the Instance Efficiency Percentage without considering at least the load profile and, particularly, its &#8220;per second&#8221; figures<br />
<a href="http://jonathanlewis.wordpress.com/2006/12/27/analysing-statspack-2/" rel="nofollow">http://jonathanlewis.wordpress.com/2006/12/27/analysing-statspack-2/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2011/09/01/parse-cpu-to-parse-elapsd-what-is-wrong-with-this-quote/#comment-3836</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Fri, 02 Sep 2011 14:01:56 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=5368#comment-3836</guid>
		<description><![CDATA[I will post my soon to be finialized book review comment for Recipe 4-10 a bit later.  So far, the comments attached to this blog article are (quite) a bit more clear and precise than what I have in the book review for this recipe (I would prefer that the review not stretch to 20+ pages).

Take another look at the description provided in the quote, and take a closer look at the &lt;b&gt;Non-Parse CPU&lt;/b&gt; statistic in the Instance Efficiency Percentages samples.

Is there anything else about the statistics in this section of an AWR/Statspack Report that might be useful?  How about the &lt;a href=&quot;http://hoopercharles.wordpress.com/2009/12/22/faulty-quotes-4-buffer-cache-hit-ratio-bchr/&quot; rel=&quot;nofollow&quot;&gt;Buffer Hit %&lt;/a&gt;?]]></description>
		<content:encoded><![CDATA[<p>I will post my soon to be finialized book review comment for Recipe 4-10 a bit later.  So far, the comments attached to this blog article are (quite) a bit more clear and precise than what I have in the book review for this recipe (I would prefer that the review not stretch to 20+ pages).</p>
<p>Take another look at the description provided in the quote, and take a closer look at the <b>Non-Parse CPU</b> statistic in the Instance Efficiency Percentages samples.</p>
<p>Is there anything else about the statistics in this section of an AWR/Statspack Report that might be useful?  How about the <a href="http://hoopercharles.wordpress.com/2009/12/22/faulty-quotes-4-buffer-cache-hit-ratio-bchr/" rel="nofollow">Buffer Hit %</a>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Log Buffer #236, A Carnival of the Vanities for DBAs &#124; The Pythian Blog</title>
		<link>http://hoopercharles.wordpress.com/2011/09/01/parse-cpu-to-parse-elapsd-what-is-wrong-with-this-quote/#comment-3835</link>
		<dc:creator><![CDATA[Log Buffer #236, A Carnival of the Vanities for DBAs &#124; The Pythian Blog]]></dc:creator>
		<pubDate>Fri, 02 Sep 2011 12:45:35 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=5368#comment-3835</guid>
		<description><![CDATA[[...] Charles Hooper&#8216;s analytical eye is still on “Oracle Database 11g Performance Tuning Recipes“ book. [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Charles Hooper&#8216;s analytical eye is still on “Oracle Database 11g Performance Tuning Recipes“ book. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Tony Sleight</title>
		<link>http://hoopercharles.wordpress.com/2011/09/01/parse-cpu-to-parse-elapsd-what-is-wrong-with-this-quote/#comment-3834</link>
		<dc:creator><![CDATA[Tony Sleight]]></dc:creator>
		<pubDate>Fri, 02 Sep 2011 09:18:02 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=5368#comment-3834</guid>
		<description><![CDATA[Parse CPU to Parse Elapsed is a ratio, so I infer it is the ratio between parse time CPU resource and parse elapsed time. Therefore best case is when ratio = 1 i.e. CPU parse time is the elapsed time. If we talk in seconds and CPU parse = 1, and elapsed = 2, then ratio would be 1/2 = 50%. If CPU = 1 and elapsed = 3, ratio = 1/3 = 33%. So a ratio of 2% = 0.02 = 1/50 which would suggest that 1 second of CPU parse = 50 seconds of elapsed parse time, so 49 seconds of elapsed time must have been spent waiting on something else. So, the figures quoted refer to the value of 1 - Parse CPU to Parse elapsed.]]></description>
		<content:encoded><![CDATA[<p>Parse CPU to Parse Elapsed is a ratio, so I infer it is the ratio between parse time CPU resource and parse elapsed time. Therefore best case is when ratio = 1 i.e. CPU parse time is the elapsed time. If we talk in seconds and CPU parse = 1, and elapsed = 2, then ratio would be 1/2 = 50%. If CPU = 1 and elapsed = 3, ratio = 1/3 = 33%. So a ratio of 2% = 0.02 = 1/50 which would suggest that 1 second of CPU parse = 50 seconds of elapsed parse time, so 49 seconds of elapsed time must have been spent waiting on something else. So, the figures quoted refer to the value of 1 &#8211; Parse CPU to Parse elapsed.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
