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: Process consuming a lot of CPU, UTL_FILE and WAIT EVENTS relationship

Re: Process consuming a lot of CPU, UTL_FILE and WAIT EVENTS relationship

From: Danisment Gazi Unal (ubTools) <dunal_at_ubTools.com>
Date: Thu, 24 Jun 2004 08:54:46 +0300
Message-ID: <00dd01c459af$c61573a0$fe19100a@danismentgu>


Hi,

I agree with Kanagaraj. There are still limitations. According to my tests, these are NOT negligible on BUSY systems.

Although it's not 100% accurate, there is still an option to measure "un-measured time" by event10046. But, it's still not possible to exclude non-Oracle times included in Oracle wait times without Microstate Accounting(MA).

MA is provided by Solaris. But, there are some bugs in Solaris/Oracle perspective. I believe Linux Development was developing MA. Even if Oracle doesn't use MA in its kernel yet, we'll have an option to find measurement errors by MRPP, at least on Linux platforms.

Response Time analysis has still not reached its next stage.

best regards...

http://www.ubTools.com
Web Based Oracle Products and Services

> Diego,
>
> >My guess is that the session is performing many
> >utl_file.get_line as seen before, and that's why it's taking
> >so much CPU time.
> >But what it's not clear to me is why Oracle does not show that
> >in the wait events......
>
> Keep in mind that
> (a) ALL possible events have not been instrumented to post status in the
> Wait Interface. Thus, your process may be executing Oracle kernel code
that
> does not let the Wait interface know what it is waiting for. It will still
> accumulate service time 'c' and wall-clock time 'e' though.
> (b) When a process is executing in the CPU, it does NOT post a wait event.
> Thus, what you see in V$SESSION_WAIT.EVENT is the _last_ instrumented wait
> that occurred. A combination of STATE, WAIT_TIME and SECONDS_IN_WAIT
qualify
> this wait..
> (c) A wait event such as 'latch free' or 'buffer busy wait' is posted
_only_
> when contention is encountered for resources that are accessed. The
absence
> of such wait events does not necessarily mean that a buffer was not
accessed
> not that CPU was not consumed. A 10046 will not show this in the trace,
will
> this will be accounted for in 'c' and 'e' (and cr, cu as the case may be).
>
> You will _also_ have to take a look at delta changes in V$SESSTAT for that
> session to see what's going on. A 10046 does NOT provide this information
> from V$SESSTAT. Thus you may determine that there were many 'session
logical
> reads', etc. which contributed to the CPU time.
>
> In fact IMHO, the above lists what is probably missing in both the Wait
> Interface as well as a 10046 trace...
>
> John Kanagaraj <><
> DB Soft Inc
> Phone: 408-970-7002 (W)
>
> Grace - Getting something we do NOT deserve
> Mercy - NOT getting something we DO deserve
> Click on 'http://www.needhim.org' for Grace and Mercy that is freely
> available!
>
> ** The opinions and facts contained in this message are entirely mine and
do
> not reflect those of my employer or customers **
> ----------------------------------------------------------------
> 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 Thu Jun 24 2004 - 00:51:13 CDT

Original text of this message

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