<?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: Faulty Quotes 6 &#8211; CPU Utilization</title>
	<atom:link href="http://hoopercharles.wordpress.com/2010/02/05/faulty-quotes-6-cpu-utilization/feed/" rel="self" type="application/rss+xml" />
	<link>http://hoopercharles.wordpress.com/2010/02/05/faulty-quotes-6-cpu-utilization/</link>
	<description>Miscellaneous Random Oracle Topics: Stop, Think, ... Understand</description>
	<lastBuildDate>Mon, 13 May 2013 14:10:06 +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/2010/02/05/faulty-quotes-6-cpu-utilization/#comment-4683</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Wed, 16 May 2012 21:05:25 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1194#comment-4683</guid>
		<description><![CDATA[Yasir,

I think that this might be your OTN thread: https://forums.oracle.com/forums/thread.jspa?threadID=2389356

I am not sure how much help I will be able to provide to you.  In general, assuming that Oracle is picking up the CPU_COUNT correctly, the CPU_COUNT should take into account any multi-threading/hyperthreading and multiple cores per CPU.  Bugs do occasionally happen:
https://supporthtml.oracle.com/epmos/faces/ui/km/DocumentDisplay.jspx?_afrLoop=2820473851313000&amp;id=738114.1 (requires a MOS account)

If the server does in fact have 23 occupied CPU sockets, with each socket containing a dual core CPU that does not support multi-threading/hyperthreading, then the server effectively has 46 seconds of CPU capacity per elapsed second - 165,600 CPU seconds per hour.  Keep in mind that just because there are 165,600 CPU seconds of potentially available CPU time per hour, that does not mean that a single session has at its disposal 165,600 CPU seconds per hour.  The processes for one or more sessions could still be CPU bound even if the server is not reporting anywhere near 100% CPU utilization.

The PARALLEL_THREADS_PER_CPU parameter is not exactly related to available CPU capacity, but is used in various formulas related to parallel processing:
http://docs.oracle.com/cd/E18283_01/server.112/e17110/initparams187.htm
http://docs.oracle.com/cd/E18283_01/server.112/e16541/parallel004.htm
http://books.google.com/books?id=b3DIkYO2gBQC&amp;pg=PA497

There are AWR scripts that are specific to RAC environments, see the following articles:
http://jonathanlewis.wordpress.com/2011/02/23/awr-reports/
http://orainternals.wordpress.com/2009/12/23/rac-performance-tuning-understanding-global-cache-performance/

I am certain that other readers would be happy to provide additional assistance to you.]]></description>
		<content:encoded><![CDATA[<p>Yasir,</p>
<p>I think that this might be your OTN thread: <a href="https://forums.oracle.com/forums/thread.jspa?threadID=2389356" rel="nofollow">https://forums.oracle.com/forums/thread.jspa?threadID=2389356</a></p>
<p>I am not sure how much help I will be able to provide to you.  In general, assuming that Oracle is picking up the CPU_COUNT correctly, the CPU_COUNT should take into account any multi-threading/hyperthreading and multiple cores per CPU.  Bugs do occasionally happen:<br />
<a href="https://supporthtml.oracle.com/epmos/faces/ui/km/DocumentDisplay.jspx?_afrLoop=2820473851313000&#038;id=738114.1" rel="nofollow">https://supporthtml.oracle.com/epmos/faces/ui/km/DocumentDisplay.jspx?_afrLoop=2820473851313000&#038;id=738114.1</a> (requires a MOS account)</p>
<p>If the server does in fact have 23 occupied CPU sockets, with each socket containing a dual core CPU that does not support multi-threading/hyperthreading, then the server effectively has 46 seconds of CPU capacity per elapsed second &#8211; 165,600 CPU seconds per hour.  Keep in mind that just because there are 165,600 CPU seconds of potentially available CPU time per hour, that does not mean that a single session has at its disposal 165,600 CPU seconds per hour.  The processes for one or more sessions could still be CPU bound even if the server is not reporting anywhere near 100% CPU utilization.</p>
<p>The PARALLEL_THREADS_PER_CPU parameter is not exactly related to available CPU capacity, but is used in various formulas related to parallel processing:<br />
<a href="http://docs.oracle.com/cd/E18283_01/server.112/e17110/initparams187.htm" rel="nofollow">http://docs.oracle.com/cd/E18283_01/server.112/e17110/initparams187.htm</a><br />
<a href="http://docs.oracle.com/cd/E18283_01/server.112/e16541/parallel004.htm" rel="nofollow">http://docs.oracle.com/cd/E18283_01/server.112/e16541/parallel004.htm</a><br />
<a href="http://books.google.com/books?id=b3DIkYO2gBQC&#038;pg=PA497" rel="nofollow">http://books.google.com/books?id=b3DIkYO2gBQC&#038;pg=PA497</a></p>
<p>There are AWR scripts that are specific to RAC environments, see the following articles:<br />
<a href="http://jonathanlewis.wordpress.com/2011/02/23/awr-reports/" rel="nofollow">http://jonathanlewis.wordpress.com/2011/02/23/awr-reports/</a><br />
<a href="http://orainternals.wordpress.com/2009/12/23/rac-performance-tuning-understanding-global-cache-performance/" rel="nofollow">http://orainternals.wordpress.com/2009/12/23/rac-performance-tuning-understanding-global-cache-performance/</a></p>
<p>I am certain that other readers would be happy to provide additional assistance to you.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yasir</title>
		<link>http://hoopercharles.wordpress.com/2010/02/05/faulty-quotes-6-cpu-utilization/#comment-4682</link>
		<dc:creator><![CDATA[Yasir]]></dc:creator>
		<pubDate>Wed, 16 May 2012 03:28:18 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1194#comment-4682</guid>
		<description><![CDATA[Hi,
Interpreting CPU usage from AWR is tricky I find. Can you tell me for a 2 node RAC with 23 CPus dual core which makes cpu_count=46, what total CPU should we consider: 23 or 46 for each node?
If i want to calculate cpu usage in a single node, what metric should i take for total cpu; 23 or 46?
cpu_count=46
parallel threads per execution=2.
Thanks]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
Interpreting CPU usage from AWR is tricky I find. Can you tell me for a 2 node RAC with 23 CPus dual core which makes cpu_count=46, what total CPU should we consider: 23 or 46 for each node?<br />
If i want to calculate cpu usage in a single node, what metric should i take for total cpu; 23 or 46?<br />
cpu_count=46<br />
parallel threads per execution=2.<br />
Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Book Review: Oracle Tuning: The Definitive Reference Second Edition &#171; Charles Hooper&#039;s Oracle Notes</title>
		<link>http://hoopercharles.wordpress.com/2010/02/05/faulty-quotes-6-cpu-utilization/#comment-2164</link>
		<dc:creator><![CDATA[Book Review: Oracle Tuning: The Definitive Reference Second Edition &#171; Charles Hooper&#039;s Oracle Notes]]></dc:creator>
		<pubDate>Sun, 28 Nov 2010 17:18:13 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1194#comment-2164</guid>
		<description><![CDATA[[...] Page 325 states, “The reason that CPU drives to 10% utilization is because the UNIX internal dispatchers will always attempt to keep the CPU’s as busy as possible. This maximizes task throughput, but it can be misleading for a neophyte. Remember, it is not a cause for concern when the user + system CPU values approach 100 percent.”  Why 10%?  Page 325 of the book makes the same errors as are found on page 25 of the book (reference). [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Page 325 states, “The reason that CPU drives to 10% utilization is because the UNIX internal dispatchers will always attempt to keep the CPU’s as busy as possible. This maximizes task throughput, but it can be misleading for a neophyte. Remember, it is not a cause for concern when the user + system CPU values approach 100 percent.”  Why 10%?  Page 325 of the book makes the same errors as are found on page 25 of the book (reference). [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Technical Review of MOTS &#171; Charles Hooper&#039;s Oracle Notes</title>
		<link>http://hoopercharles.wordpress.com/2010/02/05/faulty-quotes-6-cpu-utilization/#comment-1847</link>
		<dc:creator><![CDATA[Technical Review of MOTS &#171; Charles Hooper&#039;s Oracle Notes]]></dc:creator>
		<pubDate>Sat, 18 Sep 2010 04:20:21 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1194#comment-1847</guid>
		<description><![CDATA[[...] Waits, and Commit Performance by Tanel Poder.  You might be curious about what happens when your CPUs are pushed toward 100% utilization.  You might be curious why placing your redo logs on SSD drives may not help.  You might be [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Waits, and Commit Performance by Tanel Poder.  You might be curious about what happens when your CPUs are pushed toward 100% utilization.  You might be curious why placing your redo logs on SSD drives may not help.  You might be [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: CPU Utilization &#171; Steve Harville&#039;s Blog</title>
		<link>http://hoopercharles.wordpress.com/2010/02/05/faulty-quotes-6-cpu-utilization/#comment-1378</link>
		<dc:creator><![CDATA[CPU Utilization &#171; Steve Harville&#039;s Blog]]></dc:creator>
		<pubDate>Mon, 14 Jun 2010 17:17:33 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1194#comment-1378</guid>
		<description><![CDATA[[...] By steveharville  Here&#8217;s a good blog post about cpu utilization.  0.000000 [...]]]></description>
		<content:encoded><![CDATA[<p>[...] By steveharville  Here&#8217;s a good blog post about cpu utilization.  0.000000 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Blogroll Report 29/01/2009 – 05/02/2010 &#171; Coskan&#8217;s Approach to Oracle</title>
		<link>http://hoopercharles.wordpress.com/2010/02/05/faulty-quotes-6-cpu-utilization/#comment-464</link>
		<dc:creator><![CDATA[Blogroll Report 29/01/2009 – 05/02/2010 &#171; Coskan&#8217;s Approach to Oracle]]></dc:creator>
		<pubDate>Fri, 05 Mar 2010 10:00:26 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1194#comment-464</guid>
		<description><![CDATA[[...] and Where Do I Find It 3? 20-Faulty quotes about %100 CPU utilization ? (comments) Charles Hooper-Faulty Quotes 6 – CPU Utilization 21-SQL Tuning Advisor generated SQL Profiles and manual sql profile (comments) Kerry Osborne-Single [...]]]></description>
		<content:encoded><![CDATA[<p>[...] and Where Do I Find It 3? 20-Faulty quotes about %100 CPU utilization ? (comments) Charles Hooper-Faulty Quotes 6 – CPU Utilization 21-SQL Tuning Advisor generated SQL Profiles and manual sql profile (comments) Kerry Osborne-Single [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thinking about CPU &#124; Oracle</title>
		<link>http://hoopercharles.wordpress.com/2010/02/05/faulty-quotes-6-cpu-utilization/#comment-372</link>
		<dc:creator><![CDATA[Thinking about CPU &#124; Oracle]]></dc:creator>
		<pubDate>Mon, 15 Feb 2010 12:07:19 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1194#comment-372</guid>
		<description><![CDATA[[...] Charles Hooper has written a number of impressive blog posts in a fairly short space of time (the man is a blogging machine!) but I really wanted to draw attention to one in particular.Fault Quotes 6 &#8211; CPU Utilization [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Charles Hooper has written a number of impressive blog posts in a fairly short space of time (the man is a blogging machine!) but I really wanted to draw attention to one in particular.Fault Quotes 6 &#8211; CPU Utilization [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rodger Lepinsky</title>
		<link>http://hoopercharles.wordpress.com/2010/02/05/faulty-quotes-6-cpu-utilization/#comment-349</link>
		<dc:creator><![CDATA[Rodger Lepinsky]]></dc:creator>
		<pubDate>Thu, 11 Feb 2010 03:01:47 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1194#comment-349</guid>
		<description><![CDATA[Hello Oracle experts, 

This and the other blog about the nice command reminded me of some experiences I had a few years ago.  My comments started to be long, so I made a post here:  

http://rodgersnotes.blogspot.com/2010/02/oracle-database-tuning-and-being-nice.html

Hope it&#039;s useful.]]></description>
		<content:encoded><![CDATA[<p>Hello Oracle experts, </p>
<p>This and the other blog about the nice command reminded me of some experiences I had a few years ago.  My comments started to be long, so I made a post here:  </p>
<p><a href="http://rodgersnotes.blogspot.com/2010/02/oracle-database-tuning-and-being-nice.html" rel="nofollow">http://rodgersnotes.blogspot.com/2010/02/oracle-database-tuning-and-being-nice.html</a></p>
<p>Hope it&#8217;s useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Doug's Oracle Blog</title>
		<link>http://hoopercharles.wordpress.com/2010/02/05/faulty-quotes-6-cpu-utilization/#comment-346</link>
		<dc:creator><![CDATA[Doug's Oracle Blog]]></dc:creator>
		<pubDate>Tue, 09 Feb 2010 21:44:30 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1194#comment-346</guid>
		<description><![CDATA[&lt;strong&gt;Thinking about CPU...&lt;/strong&gt;

Charles Hooper has written a number of impressive blog posts in a fairly short space of time (the man is a blogging machine!) but I really wanted to draw attention to one in particular.Fault Quotes 6 - CPU UtilizationWhy? Well I seem to be spending mor...]]></description>
		<content:encoded><![CDATA[<p><strong>Thinking about CPU&#8230;</strong></p>
<p>Charles Hooper has written a number of impressive blog posts in a fairly short space of time (the man is a blogging machine!) but I really wanted to draw attention to one in particular.Fault Quotes 6 &#8211; CPU UtilizationWhy? Well I seem to be spending mor&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Charles Hooper</title>
		<link>http://hoopercharles.wordpress.com/2010/02/05/faulty-quotes-6-cpu-utilization/#comment-345</link>
		<dc:creator><![CDATA[Charles Hooper]]></dc:creator>
		<pubDate>Tue, 09 Feb 2010 20:58:48 +0000</pubDate>
		<guid isPermaLink="false">http://hoopercharles.wordpress.com/?p=1194#comment-345</guid>
		<description><![CDATA[Cary,

Thanks for stopping by my blog and leaving such a fantastic follow-up comment with very helpful links.  For those reading this blog article, I recommend taking a look at Cary’s “Thinking Clearly”/“Thinking Clearly About Performance” article that he linked to in his comment.  I have only read a couple of pages of that article so far, but looking ahead a couple of pages I see a discussion of queuing theory.

My quoted comment was intended to draw a distinction between what the end-user views as a “wait” and what the Oracle session accumulates as a “wait”.  (Of course there is also a third potential meaning for wait when talking about a CPU – waiting in the run queue.)  In short, my wording in that comment was sloppy.  The words “apparently active on the CPU” were intended to include all of the process states that you included in your comment (I think that I would have had trouble listing off all of the different states you supplied) and therefore would not be accumulating time in an Oracle wait event – and I did not make a distinction of which of those would actually increment the CPU time statistic.

In light of your detailed comment, I agree that my statement is not quite right.  Unfortunately, my quoted comment could be read in one of several ways.

By the way, thanks for the detailed explanation of how the unaccounted-for time might be used as an indicator of competition for the CPU.]]></description>
		<content:encoded><![CDATA[<p>Cary,</p>
<p>Thanks for stopping by my blog and leaving such a fantastic follow-up comment with very helpful links.  For those reading this blog article, I recommend taking a look at Cary’s “Thinking Clearly”/“Thinking Clearly About Performance” article that he linked to in his comment.  I have only read a couple of pages of that article so far, but looking ahead a couple of pages I see a discussion of queuing theory.</p>
<p>My quoted comment was intended to draw a distinction between what the end-user views as a “wait” and what the Oracle session accumulates as a “wait”.  (Of course there is also a third potential meaning for wait when talking about a CPU – waiting in the run queue.)  In short, my wording in that comment was sloppy.  The words “apparently active on the CPU” were intended to include all of the process states that you included in your comment (I think that I would have had trouble listing off all of the different states you supplied) and therefore would not be accumulating time in an Oracle wait event – and I did not make a distinction of which of those would actually increment the CPU time statistic.</p>
<p>In light of your detailed comment, I agree that my statement is not quite right.  Unfortunately, my quoted comment could be read in one of several ways.</p>
<p>By the way, thanks for the detailed explanation of how the unaccounted-for time might be used as an indicator of competition for the CPU.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
