<?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: AWR OS Stats</title>
	<atom:link href="http://jonathanlewis.wordpress.com/awr-os-stats/feed/" rel="self" type="application/rss+xml" />
	<link>http://jonathanlewis.wordpress.com</link>
	<description>Just another Oracle weblog</description>
	<lastBuildDate>Wed, 19 Jun 2013 22:21:35 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: Jonathan Lewis</title>
		<link>http://jonathanlewis.wordpress.com/awr-os-stats/#comment-52071</link>
		<dc:creator><![CDATA[Jonathan Lewis]]></dc:creator>
		<pubDate>Thu, 13 Dec 2012 13:35:48 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/awr-os-stats/#comment-52071</guid>
		<description><![CDATA[CPU counts can get very confusing - and you need to think about:  Sockets (number of chips), Cores (physical CPUs on chips), and &quot;Logical CPUs&quot;.
When checking the cpu_count, Oracle trusts the operating system - and the operating system usually tells Oracle about logical CPUs.

The stats you are reporting are figures from the view of the operating system, so it would be possible to see a BUSY_TIME that was much larger than then CPU time reported by Oracle in (say) the Top Timed Events. Depending on your platform you might see the same OSSTATS reporting sockets, cores and CPUs - although the titles may vary a little; the average busy time is total busy time divided by the number of CPUs (Personally, though, for CPU-intensive workloads I tend to worry more about CPU time / number of cores).]]></description>
		<content:encoded><![CDATA[<p>CPU counts can get very confusing &#8211; and you need to think about:  Sockets (number of chips), Cores (physical CPUs on chips), and &#8220;Logical CPUs&#8221;.<br />
When checking the cpu_count, Oracle trusts the operating system &#8211; and the operating system usually tells Oracle about logical CPUs.</p>
<p>The stats you are reporting are figures from the view of the operating system, so it would be possible to see a BUSY_TIME that was much larger than then CPU time reported by Oracle in (say) the Top Timed Events. Depending on your platform you might see the same OSSTATS reporting sockets, cores and CPUs &#8211; although the titles may vary a little; the average busy time is total busy time divided by the number of CPUs (Personally, though, for CPU-intensive workloads I tend to worry more about CPU time / number of cores).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kg</title>
		<link>http://jonathanlewis.wordpress.com/awr-os-stats/#comment-50645</link>
		<dc:creator><![CDATA[kg]]></dc:creator>
		<pubDate>Fri, 05 Oct 2012 11:50:41 +0000</pubDate>
		<guid isPermaLink="false">http://jonathanlewis.wordpress.com/awr-os-stats/#comment-50645</guid>
		<description><![CDATA[Dear Jonathan
what could be the to calculate the average time ,cpu_count is considered but now num_cpu_cores which is correct 

Also confirm if cpu time reported is over all time or time used by database ?
[sourcecode gutter=&quot;false&quot;]
SQL&gt; select distinct value from     v$osstat where stat_name=&#039;NUM_CPU_CORES&#039;;

     VALUE
----------
         2

1 row selected.

SQL&gt;
SQL&gt; SHOW PARAMETER CPU

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
cpu_count                            integer     4
parallel_threads_per_cpu             integer     2
resource_manager_cpu_allocation      integer     4
SQL&gt;
SQL&gt; select snap_id,max(busy) secs_all_cpu,max(avg_busy) avg_secs_percpu from
  2  (
  3  select snap_id,
  4  (case when stat_name = &#039;BUSY_TIME&#039; then value/100 else null end) busy,
  5  (case when stat_name = &#039;AVG_BUSY_TIME&#039; then value/100 else null end) avg_busy
  6  from dba_hist_osstat where snap_id&gt; 3)
  7  where busy is not null or avg_busy is not null
  8  group by snap_id
  9  order by 2
 10  /

   SNAP_ID SECS_ALL_CPU AVG_SECS_PERCPU
---------- ------------ ---------------
         4       912.15          227.56
         5      2924.04          729.83
         6       4526.2         1129.49
         7       5519.8         1376.92
         8      8303.98          2072.1
         9     11594.98         2893.92
        10        16097         4018.53

7 rows selected.

SQL&gt;
[/sourcecode]

]]></description>
		<content:encoded><![CDATA[<p>Dear Jonathan<br />
what could be the to calculate the average time ,cpu_count is considered but now num_cpu_cores which is correct </p>
<p>Also confirm if cpu time reported is over all time or time used by database ?</p>
<pre class="brush: plain; gutter: false; title: ; notranslate">
SQL&gt; select distinct value from     v$osstat where stat_name='NUM_CPU_CORES';

     VALUE
----------
         2

1 row selected.

SQL&amp;gt;
SQL&amp;gt; SHOW PARAMETER CPU

NAME                                 TYPE        VALUE
------------------------------------ ----------- ------------------------------
cpu_count                            integer     4
parallel_threads_per_cpu             integer     2
resource_manager_cpu_allocation      integer     4
SQL&amp;gt;
SQL&amp;gt; select snap_id,max(busy) secs_all_cpu,max(avg_busy) avg_secs_percpu from
  2  (
  3  select snap_id,
  4  (case when stat_name = 'BUSY_TIME' then value/100 else null end) busy,
  5  (case when stat_name = 'AVG_BUSY_TIME' then value/100 else null end) avg_busy
  6  from dba_hist_osstat where snap_id&amp;gt; 3)
  7  where busy is not null or avg_busy is not null
  8  group by snap_id
  9  order by 2
 10  /

   SNAP_ID SECS_ALL_CPU AVG_SECS_PERCPU
---------- ------------ ---------------
         4       912.15          227.56
         5      2924.04          729.83
         6       4526.2         1129.49
         7       5519.8         1376.92
         8      8303.98          2072.1
         9     11594.98         2893.92
        10        16097         4018.53

7 rows selected.

SQL&gt;
</pre>
]]></content:encoded>
	</item>
</channel>
</rss>
