You are on page 1of 4

CPU Time in Top 5 Timed Events Section of AWR or STATSPACK Report

Page 1 of 4

- Home - Articles - Oracle DBA Jobs Enter Search Terms

Navigate to ...

"Oracle DBA tips, scripts and error


message solutions"

search
6

Home > Scripts > Database Tuning > CPU Time in Top 5 Timed Events on Statspack/AWR Report

CPU Time in Top 5 Timed Events on Statspack/AWR Report


By Robert Jackson | 0 Comments
When I first take a look at a statspack or Automatic Workload Repository (AWR) report, and there have been no reported performance problems, I home in
on the Top 5 Timed Events section toward the top of the AWR report. It is from here that you are able to get clues as to which direction you should go in, and
therefore what areas of the report you should look at next.

Share

Top 5 Timed Events


The Top 5 Timed Events section within the statspack/AWR report, gives an overview of the 5 largest wait events across your database instance. It is
common to see among the top 5 timed events, the CPU Time wait event. Here is the output from an example system:
Top 5 Timed Events
~~~~~~~~~~~~~~~~~~
Event
--------------------------CPU time
db file sequential read
log file sync
log file parallel write
SQL*Net message from dblink

Wait Class
----------User I/O
Commit
System I/O
Network

Waits
--------6,798,700
8,854,354
5,183,339
3,098,485

Time(s)
-----------134,571.20
39,003.81
16,754.67
4,631.02
4,390.32

Avg
%DB
Time(ms) Time
--------- -------55.99
5.74
16.23
1.89
6.97
0.89
1.93
1.42
1.83

A lot of people interpret this event as a wait event, in that the database instance was waiting for 721 seconds out of the statspack report period on CPU. In a
way this is true, because it means that the database has spent 721 seconds worth of the available CPU time on the box processing during this period.
However, you have to take into consideration the total amount of CPU time available to you.

CPU Top Timed Event? No Problem


For example, you have an 8 CPU server and you want to know how many CPU seconds you have available to you per hour. That works out at (60 seconds *
60 minutes) * 8 cores = 28,800 CPU seconds. So, unless you use more than 28,800 CPU seconds within the hour, you are under your 100% CPU limit.
There will always be waits on the CPU within a system, probably more so if you have a larger cache and therefore dont have to retrieve the data from disk as
much. Just remember that it is not necessarily a problem unless you are at 85% or more of available CPU.

An Ideal World
In an ideal world the top timed event would be the CPU event and that would be optimal. Thats assuming that your database, code and processes were as
efficient as they possibly could be. The reason for this? There always has to be a wait event to process and return data to a user, there is no escaping that
fact. Out of all of them, such as disk I/O, contention, locking, etc, CPU is the fastest and most efficient event to be waiting for.

Other Wait Events in Top 5 Timed Events


If you see the control file parallel write wait event in your top 5 timed events in your database, you can read my article control file parallel write.
You might find that the numbers on your AWR report look completely wrong, and the percentage figures dont add up to 100% when they should do. Your
AWR Report Shows High % and Wait Times then read the article I have written about that when running on a Windows server.

Like it, share it...

Category: Database Tuning

http://www.ora00600.com/wordpress/scripts/databasetuning/cpu-time-in-top-5-timed-eve... 12.06.2013

CPU Time in Top 5 Timed Events Section of AWR or STATSPACK Report

Page 2 of 4

Content blocked
While trying
to retrieve
the URL:

http://googleads.g.doubleclick.net/pagead/ads?client=ca
2F&dt=1371047304361&bpp=16&shv=r20130606&cbv=r20130206&saldr=sa&correlator=1371047304408&frm=20&adk=122414236&ga_vid=13559311
-16018&ady=1470&biw=1660&bih=892&oid=3&ref=http%3A%2F%2Fwww.google.de%2Furl%3Fsa%3Dt%26rct%3Dj%26q%3Doracle%2Bcpu%2Btime%2Beve
events-on-statspackawr-report%252F%26ei%3D

The content
is blocked
due to the
following
condition:

The URL you have requested is blocked by a blacklist. If you think this is wrong, please contact

Your cache

mail-admin@scheidt-bachmann.de

Related Posts

Share

Leave a Reply
Your email address will not be published. Required fields are marked *
Name *
Email *
Website
5

Comment

Post Comment

http://www.ora00600.com/wordpress/scripts/databasetuning/cpu-time-in-top-5-timed-eve... 12.06.2013

CPU Time in Top 5 Timed Events Section of AWR or STATSPACK Report

Page 3 of 4

Content blocked
While trying
to retrieve
the URL:

http://googleads.g.doubleclick.net/pagead/ads?client=ca
2F&dt=1371047304533&bpp=16&shv=r20130606&cbv=r20130206&saldr=sa&prev_slotnames=4573298830&correlator=1371047304408&frm=20&adk
-15383&ady=253&biw=1660&bih=892&oid=3&ref=http%3A%2F%2Fwww.google.de%2Furl%3Fsa%3Dt%26rct%3Dj%26q%3Doracle%2Bcpu%2Btime%2Beven
252F%26ei%3D-VS4Udr9E8iHtQbz6YGQBg%26usg%3DAFQjCNEdNy2I1oCHlk0q

The content
is blocked
due to the
following
condition:

The URL you have requested is blocked by a blacklist. If you think this is wrong, please contact

Your cache
administrator
is:

mail-admin@scheidt-bachmann.de

Share

Name:
Email:
Send Free Report!
**CHECK JUNK EMAIL FOLDER**
We will never sell your details

Most Popular Posts

User Privileges and Oracle Roles


ORA-04021: timeout occurred while waiting to lock object
Oracle 10g to 11g Upgrade Guide
ORA-29278
Monitor Oracle UNDO
Monitoring TEMP Space Usage in Oracle
Oracle RMAN Backup & Recovery

Astaro Security Gateway Version 8

Pages
Welcome to ORA00600.com

Information

Become an Oracle DBA Report


Contact ORA00600.com
FAQs
Oracle DBA Directory of Articles
Oracle DBA Jobs

http://www.ora00600.com/wordpress/scripts/databasetuning/cpu-time-in-top-5-timed-eve... 12.06.2013

CPU Time in Top 5 Timed Events Section of AWR or STATSPACK Report

Page 4 of 4

Privacy Policy

Recent Posts
ORA-16014 No Available Destinations
Oracle SQL

Quick Links

Log in
Entries RSS
Comments RSS
WordPress.org

ORA00600
2013 ORA00600. All rights reserved.

Share

http://www.ora00600.com/wordpress/scripts/databasetuning/cpu-time-in-top-5-timed-eve... 12.06.2013

You might also like