Oracle Performance Firefighting
by Craig Shallahamer

Get the book here



Craig Shallahamer's Blog

You were brought to this page based on an internet search and as a free service to Oracle DBAs.

The text below is an except from the book, Oracle Performance Firefighting, written by Craig Shallahamer of OraPub, Inc. Figures and tables are not included on this page, only their reference.
To order the book in either print or PDF form, click here.


©2009, 2010 by Craig Shallahamer. This is copyrighted material.
Please—Out of respect for those involved in the creation of the book and also for their familes, we ask you to respect the copyright both in intent and deed. Thank you.

-------------------------------

Therefore, the average CPU utilization is only 7% (0.0719 = 172.50 seconds / 2,400 seconds). At only 7% CPU utilization, regardless of the number of CPU cores, the system is operating nowhere near the response-time curve elbow.

Based on v$osstat data, you also can calculate the average operating system CPU utilization. Just remember the CPU consumed requires two samples: the initial and the final. If you take only one sample, you will probably notice the bogus utilization calculation will far exceed 100%. The CPU consumed is the final BUSY_TIME value minus the initial value. The CPU time available will be the sample interval multiplied by the number of CPU cores. And don't forget to convert all time to the same unit, such as seconds.

In summary, to determine the average CPU utilization, some tools you can use are vmstat, sar, /proc/stat, and even v$osstat. So, if you don't have the operating system privileges you need, starting with Oracle Database 10g, you can still calculate the utilization.

©2009, 2010 by Craig Shallahamer. This is copyrighted material.
Please—Out of respect for those involved in the creation of the book and also for their familes, we ask you to respect the copyright both in intent and deed. Thank you.


Know what's important before it's too late!

OraPub's
Performance Training

is like no other...





More Class Pics...
Get student testimonials!