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.

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

Latch contention affects end user application response time. Therefore, if we want to quantifiably decrease the negative impact of latch contention, we must know how Oracle records time related to latch contention. Referring to the latching pseudocode in Figures 3-6 and 3-7, there are two key time-related areas: spinning and sleeping.

The correct answers depend on your perspective. The application users don't care how the time is categorized. They just know performance is unacceptable and it's impacting their ability to get their work done. Operating system administrators see only CPU busyness (that is, utilization) and the CPU run queue. So their understanding-or better said, their ability to clearly see the picture-is limited.

From a DBA perspective, understanding how Oracle response time relates to latch contention time is paramount. Keep in mind that it is very convenient for DBAs when CPU time is classified as service time. Therefore, when an Oracle process is spinning on a latch, it makes sense to record the spin time as CPU time. And, in fact, Oracle does do this. As spinning increases, you will observe Oracle processes consume more CPU time, and therefore also notice the CPU subsystem becomes increasingly busy. Relating back to the situation with the room full of people waving their arms and yelling "Give me the latch," consider all that activity takes energy. In the real Oracle world, this energy is CPU consumption.

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