Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> Re: The best CPU usage measurement in Oracle: BUFFER_GETS or CPU_TIME?

Re: The best CPU usage measurement in Oracle: BUFFER_GETS or CPU_TIME?

From: <J.Velikanovs_at_alise.lv>
Date: Mon, 21 Jun 2004 17:08:13 +0300
Message-ID: <OF8ABC9843.BCDDA3CF-ONC2256EBA.004D3941-C2256EBA.004E4E4E@alise.lv>


Binley,
I understand your point and I 100% agree with your option. My point is: Today the better way (first look) to look on TOP SQL in the reports like statspack (if we are trying to use statspack for some purposes) is sort SQL by CPU_TIME because it is more accurate reflect CPU usage by any SQL not BUFFER_GETS as it is right now.

Regards,
Jurijs

"Binley Lim" <Binley.Lim_at_xtra.co.nz>
Sent by: oracle-l-bounce_at_freelists.org
21.06.2004 15:57
Please respond to oracle-l  

        To:     <oracle-l_at_freelists.org>
        cc: 
        Subject:        Re: The best CPU usage measurement in Oracle: 
BUFFER_GETS or CPU_TIME?

> Lets me ask contrariwise question:
> Are there situations when using statspack report (if using) or other
> instance wide performance tool the better way to see TOP SQL-s is sort
by
> BUFFER_GETS not CPU_TIME?
>

I think that someone has already answered that "response time" is the far more important measure. Someone has also responded that you cannot pick BUFFER_GETS over CPU_TIME or vice versa for a number of reasons.

To look at TOP-SQLs, I would also look at EXECUTIONS and DISK_READS, and anything that appears in the top-list needs looking at. For eg, I had one situation where I missed the problem completely because BUFFER_GETS was nowhere near the top, but it was killing performance because it was constantly executing selects over a DB-link to check on a status_code that seldom changes. It was killing performance because it was flooding the network, not because it was doing a lot of BUFFER_GETS..

So it all comes down to "response time". But what is that creature? No one can answer that. It depends on too many things, including -- OS vendors typically try to optimize their kernels depending on what applications (Oracle included) demand of it. And different OS vendors do different things. The next OS release could be different, so any single Oracle metric
that works now could no longer work in future.



Please see the official ORACLE-L FAQ: http://www.orafaq.com

To unsubscribe send email to: oracle-l-request_at_freelists.org put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------



----------------------------------------------------------------
Please see the official ORACLE-L FAQ: http://www.orafaq.com
----------------------------------------------------------------
To unsubscribe send email to:  oracle-l-request_at_freelists.org
put 'unsubscribe' in the subject line.
--
Archives are at http://www.freelists.org/archives/oracle-l/
FAQ is at http://www.freelists.org/help/fom-serve/cache/1.html
-----------------------------------------------------------------
Received on Mon Jun 21 2004 - 09:12:10 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US