<?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: System Statistics</title>
	<atom:link href="http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Tue, 18 Jun 2013 17:11:36 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Mukundhan</title>
		<link>http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-48847</link>
		<dc:creator><![CDATA[Mukundhan]]></dc:creator>
		<pubDate>Thu, 09 Aug 2012 13:56:06 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-48847</guid>
		<description><![CDATA[I have to come to hear that system statistics do not help in Exadata and hence the recommendation is not to gather them in Exadata. Is this because the optimizer does not have any statistics of the performance of smart scans and hence would be mislead to pick a less efficient (which does not use smart scan) execution plan? Any idea ?]]></description>
		<content:encoded><![CDATA[<p>I have to come to hear that system statistics do not help in Exadata and hence the recommendation is not to gather them in Exadata. Is this because the optimizer does not have any statistics of the performance of smart scans and hence would be mislead to pick a less efficient (which does not use smart scan) execution plan? Any idea ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-35313</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Mon, 25 Jan 2010 08:47:05 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-35313</guid>
		<description><![CDATA[Mark,

Sorry about the late reply - I sometimes lose sight of questions if I&#039;ve let a batch of comments accumulate.

The answer to your question is that the CPUSPEEDNW doesn&#039;t usually have a big impact on the total cost of a query - in most cases the majority of the cost comes from the I/O component. Unfortunately there are always exceptions, and sometimes even a very small change in total cost is enough to make the optimizer choose a different execution plan.

As a quick check, I just executed &lt;em&gt;dbms_stats.delete_system_stats&lt;/em&gt; on a 10.2.0.3 database and the values for the three  noworkload statistics all changed immediately - and bouncing the database didn&#039;t make them change again. Then gathering system stats with the noworkload option changed only the CPUSPEEDNW. So I wouldn&#039;t want to predict exactly what&#039;s going to happen in your case if you delete the system stats and bounce the database.

One thought - rather than coping with the possibility of two separate changes in the values why don&#039;t you just set the stats to values that match those from the most similar system that you&#039;ve got. A piece of pl/sql like the following should be adequate (with serveroutput enabled):

[sourcecode language=&quot;sql&quot;]
declare
	m_value		number;
	m_status	varchar2(64);
	m_start		date;
	m_stop		date;
begin
	dbms_stats.get_system_stats(m_status, m_start, m_stop, &#039;CPUSPEEDNW&#039;, m_value);
	dbms_output.put_line(&#039;CPUSPEEDNW :&#039; &#124;&#124; m_value);
	dbms_stats.set_system_stats(&#039;CPUSPEEDNW&#039;,1800);

	dbms_stats.get_system_stats(m_status, m_start, m_stop, &#039;IOSEEKTIM&#039;, m_value);
	dbms_output.put_line(&#039;IOSEEKTIM  :&#039; &#124;&#124; m_value);
	dbms_stats.set_system_stats(&#039;IOSEEKTIM&#039;,4);

	dbms_stats.get_system_stats(m_status, m_start, m_stop, &#039;IOTFRSPEED&#039;, m_value);
	dbms_output.put_line(&#039;IOTFRSPEED :&#039; &#124;&#124; m_value);
	dbms_stats.set_system_stats(&#039;IOTFRSPEED&#039;,32768);

end;
/

[/sourcecode]]]></description>
		<content:encoded><![CDATA[<p>Mark,</p>
<p>Sorry about the late reply &#8211; I sometimes lose sight of questions if I&#8217;ve let a batch of comments accumulate.</p>
<p>The answer to your question is that the CPUSPEEDNW doesn&#8217;t usually have a big impact on the total cost of a query &#8211; in most cases the majority of the cost comes from the I/O component. Unfortunately there are always exceptions, and sometimes even a very small change in total cost is enough to make the optimizer choose a different execution plan.</p>
<p>As a quick check, I just executed <em>dbms_stats.delete_system_stats</em> on a 10.2.0.3 database and the values for the three  noworkload statistics all changed immediately &#8211; and bouncing the database didn&#8217;t make them change again. Then gathering system stats with the noworkload option changed only the CPUSPEEDNW. So I wouldn&#8217;t want to predict exactly what&#8217;s going to happen in your case if you delete the system stats and bounce the database.</p>
<p>One thought &#8211; rather than coping with the possibility of two separate changes in the values why don&#8217;t you just set the stats to values that match those from the most similar system that you&#8217;ve got. A piece of pl/sql like the following should be adequate (with serveroutput enabled):</p>
<pre class="brush: sql; title: ; notranslate">
declare
	m_value		number;
	m_status	varchar2(64);
	m_start		date;
	m_stop		date;
begin
	dbms_stats.get_system_stats(m_status, m_start, m_stop, 'CPUSPEEDNW', m_value);
	dbms_output.put_line('CPUSPEEDNW :' || m_value);
	dbms_stats.set_system_stats('CPUSPEEDNW',1800);

	dbms_stats.get_system_stats(m_status, m_start, m_stop, 'IOSEEKTIM', m_value);
	dbms_output.put_line('IOSEEKTIM  :' || m_value);
	dbms_stats.set_system_stats('IOSEEKTIM',4);

	dbms_stats.get_system_stats(m_status, m_start, m_stop, 'IOTFRSPEED', m_value);
	dbms_output.put_line('IOTFRSPEED :' || m_value);
	dbms_stats.set_system_stats('IOTFRSPEED',32768);

end;
/

</pre>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kerry Osborne’s Oracle Blog » Blog Archive Oracle 10gR2 Autotuned db_file_multiblock_read_count</title>
		<link>http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-35222</link>
		<dc:creator><![CDATA[Kerry Osborne’s Oracle Blog » Blog Archive Oracle 10gR2 Autotuned db_file_multiblock_read_count]]></dc:creator>
		<pubDate>Thu, 14 Jan 2010 04:01:23 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-35222</guid>
		<description><![CDATA[[...] Lewis has several posts on his blog about System Stats. Here are links to a couple: JL on System Stats JL on System Stats 2 Be sure and read through the comments as there is some excellent information [...]]]></description>
		<content:encoded><![CDATA[<p>[...] Lewis has several posts on his blog about System Stats. Here are links to a couple: JL on System Stats JL on System Stats 2 Be sure and read through the comments as there is some excellent information [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-35214</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Tue, 12 Jan 2010 13:30:39 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-35214</guid>
		<description><![CDATA[Alon,

I&#039;ve not seen one (although I haven&#039;t checked 11g yet).  I would be a little surprised if it happened because it would mean invalidating the entire cursor cache, which could have a dire effect on the library cache and shared pool latches.  

Since Oracle Oracle only invalidates dependent cursors over a period of time (5 hours, according to the hidden parameter &lt;em&gt;&lt;strong&gt;&lt;a href=&quot;http://el-caro.blogspot.com/2008_01_01_archive.html&quot; rel=&quot;nofollow&quot;&gt;_optimizer_invalidation_period&lt;/a&gt;&lt;/strong&gt;&lt;/em&gt;) when you gather stats on an object, I don&#039;t thnk it&#039;s likely to do something this aggressive when you gather system stats.]]></description>
		<content:encoded><![CDATA[<p>Alon,</p>
<p>I&#8217;ve not seen one (although I haven&#8217;t checked 11g yet).  I would be a little surprised if it happened because it would mean invalidating the entire cursor cache, which could have a dire effect on the library cache and shared pool latches.  </p>
<p>Since Oracle Oracle only invalidates dependent cursors over a period of time (5 hours, according to the hidden parameter <em><strong><a href="http://el-caro.blogspot.com/2008_01_01_archive.html" rel="nofollow">_optimizer_invalidation_period</a></strong></em>) when you gather stats on an object, I don&#8217;t thnk it&#8217;s likely to do something this aggressive when you gather system stats.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alon Principal</title>
		<link>http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-35211</link>
		<dc:creator><![CDATA[Alon Principal]]></dc:creator>
		<pubDate>Tue, 12 Jan 2010 12:08:27 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-35211</guid>
		<description><![CDATA[Hi Jonathan,
Is there any plans invalidation process that occurs after the gathering of system statistics?

Thanks,
Alon.]]></description>
		<content:encoded><![CDATA[<p>Hi Jonathan,<br />
Is there any plans invalidation process that occurs after the gathering of system statistics?</p>
<p>Thanks,<br />
Alon.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mark teehan</title>
		<link>http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-35208</link>
		<dc:creator><![CDATA[mark teehan]]></dc:creator>
		<pubDate>Mon, 11 Jan 2010 07:14:48 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-35208</guid>
		<description><![CDATA[Hi Jonathan,
I&#039;ve found your blog to be invaluable when trying to decipher performance issues. Hopefully this is a quick answer for you. We have a large number of 10g databases and I&#039;ve been checking the general state of their optimizer setup. For system statistics, most are using NoWorkload, but I&#039;ve noticed something odd: some databases have unexpectedly low values for CpuSpeedNw even though they are running on identical servers. This is because they were migrated from older servers and sys stats were not regathered. I know that if I delete the old stats they will be automatically regathered on database restart. What I don&#039;t know is the impact of doing this: how critical is the value of CpuSpeedNw to the optimizer?

Many thanks!
Mark Teehan
Singapore]]></description>
		<content:encoded><![CDATA[<p>Hi Jonathan,<br />
I&#8217;ve found your blog to be invaluable when trying to decipher performance issues. Hopefully this is a quick answer for you. We have a large number of 10g databases and I&#8217;ve been checking the general state of their optimizer setup. For system statistics, most are using NoWorkload, but I&#8217;ve noticed something odd: some databases have unexpectedly low values for CpuSpeedNw even though they are running on identical servers. This is because they were migrated from older servers and sys stats were not regathered. I know that if I delete the old stats they will be automatically regathered on database restart. What I don&#8217;t know is the impact of doing this: how critical is the value of CpuSpeedNw to the optimizer?</p>
<p>Many thanks!<br />
Mark Teehan<br />
Singapore</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Analytic Agony &#171; Oracle Scratchpad</title>
		<link>http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-34360</link>
		<dc:creator><![CDATA[Analytic Agony &#171; Oracle Scratchpad]]></dc:creator>
		<pubDate>Mon, 07 Sep 2009 17:33:07 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-34360</guid>
		<description><![CDATA[[...] we set the environment &#8211; I&#8217;ve disabled system statistics (a.k.a. CPU costing) for the purposes of the demonstration to get a stable [...]]]></description>
		<content:encoded><![CDATA[<p>[...] we set the environment &#8211; I&#8217;ve disabled system statistics (a.k.a. CPU costing) for the purposes of the demonstration to get a stable [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy Zitelli</title>
		<link>http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-32789</link>
		<dc:creator><![CDATA[Andy Zitelli]]></dc:creator>
		<pubDate>Sat, 11 Apr 2009 00:48:00 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-32789</guid>
		<description><![CDATA[In reference to one of the earlier comments, as of April 2009, Filebench is now available for Linux and MacOSX as well as for Solaris.]]></description>
		<content:encoded><![CDATA[<p>In reference to one of the earlier comments, as of April 2009, Filebench is now available for Linux and MacOSX as well as for Solaris.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Edgar Chupit</title>
		<link>http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-17836</link>
		<dc:creator><![CDATA[Edgar Chupit]]></dc:creator>
		<pubDate>Fri, 10 Aug 2007 14:30:45 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-17836</guid>
		<description><![CDATA[While reading Oracle 11g New Feature Guide paragraph 1.10.6.1 I/O Calibration, I have immediately remembered this blog entry. 
It looks like Oracle is listening to it’s users more and more. In 11g there is new procedure dbms_resource_manager.CALIBRATE_IO(). That does exactly what was described in this blog entry :)

Best regards,
Edgar]]></description>
		<content:encoded><![CDATA[<p>While reading Oracle 11g New Feature Guide paragraph 1.10.6.1 I/O Calibration, I have immediately remembered this blog entry.<br />
It looks like Oracle is listening to it’s users more and more. In 11g there is new procedure dbms_resource_manager.CALIBRATE_IO(). That does exactly what was described in this blog entry :)</p>
<p>Best regards,<br />
Edgar</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-7451</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Fri, 04 May 2007 05:59:55 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/2007/04/30/system-statistics/#comment-7451</guid>
		<description><![CDATA[The intention was to do a completely &quot;off-db&quot; test, using an external program.  I used to use a pair of very simple C programs I wrote about 10 years ago (and still available &lt;a href=&quot;http://www.jlcomp.demon.co.uk/block.html&quot; rel=&quot;nofollow&quot;&gt;at this URL on my website&lt;/a&gt;) to do this, but since then  &lt;a href=&quot;http://www.iozone.org&quot; rel=&quot;nofollow&quot;&gt;IOZone&lt;/a&gt; has been published, and Oracle recently launched Orion to do something similar. (I haven&#039;t tested either product).]]></description>
		<content:encoded><![CDATA[<p>The intention was to do a completely &#8220;off-db&#8221; test, using an external program.  I used to use a pair of very simple C programs I wrote about 10 years ago (and still available <a href="http://www.jlcomp.demon.co.uk/block.html" rel="nofollow">at this URL on my website</a>) to do this, but since then  <a href="http://www.iozone.org" rel="nofollow">IOZone</a> has been published, and Oracle recently launched Orion to do something similar. (I haven&#8217;t tested either product).</p>
]]></content:encoded>
	</item>
</channel>
</rss>
