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 4-13. A vmstat report on a very active four-CPU core database server. This particular system has a very dynamic workload. This is why even with around 30% idle time, the run queue frequently exceeds the number of CPU cores.

Figure 4-14 is a sample sar -q report. The runq-sz column shows average CPU run queue, and the information is from the same system shown in Figure 4-13. Key to making this report useful is knowing how many CPU cores exist on the server. This Oracle database server has four CPU cores, so processes are frequently waiting for CPU resources. This is not what we want for an OLTP-centric system.

Do not confuse run queue length with the load average. The load average is available from v$osstat,4 the sar -q, and uptime commands, as well as in the /proc/loadavg file. The load average statistic is calculated differently on various flavors of Unix and Linux. On your system, it may represent the run queue length, but only your experience or analyzing the actual kernel source code will provide an acceptable answer. While the CPU run queue and utilization analyses are consistent across platforms, the load average is not.

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