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.

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

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.

The CPU run queue is key to understanding the health of your CPU subsystem. Combined with the average utilization, it gives you everything you need to tell if there is a CPU bottleneck.

©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!