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.

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

Figure 5-5. Oracle processes call the getrusage system call to determine their resource consumption details. This DBWR operating system trace duration was 300 seconds, which means the database writer background process called getrusage about once every 6 seconds. By the way, notice the DBWR does make some read calls.

Oracle does, in fact, update the v$sess_time_model view with the database writer resource consumption about every 6 seconds. I tested this by simply repeatedly running the first query shown in Figure 5-6. The background cpu time statistic stayed constant for 6 seconds, and then I saw the value incremented. Notice the database writer CPU time is classified as background cpu time, not DB CPU time. Oracle server process time is placed into the DB CPU bucket.

Also notice the statistic value in the second query in Figure 5-6. This is the CPU time consumed (instance statistic CPU used by this session) by the database writer since the instance has started. But it shows zero seconds of CPU consumed! This demonstrates that for the database writer, v$sesstat does not contain background process CPU consumption. Therefore, if you want to classify background process CPU time, you must either gather from the /proc virtual file system or simply query from v$sess_time_model or v$sys_time_model.

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