Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Re: v$wait_event: wait_time < 0
Brian Peasland wrote:
> Chuck wrote:
>> I know this question was asked before but I don't think the answer was >> clear. I have the following returned from a query of v$session_wait >> >> SID EVENT WAIT_TIME SECONDS_IN_WAIT STATE >> --- -------------- --------- --------------- ----------------- >> 19 latch free -1 361 WAITED KNOWN TIME >> >> The seconds_in_wait is constantly increasing. According to the 9i >> docs, the wait_time of -1 and state indicate that the wait event was >> very short and is now over. But if I look at the server process for >> sid 19, it's eating up cpu like there's no tomorrow (12.4% on an 8 cpu >> server). What exactly is the server process doing? Normally you can >> tell by the wait events but apparently not in this case.
>> This process sat on the "latch free" event for 20 minutes with the >> seconds_in_wait increasing. If I run it again it may show up as >> sitting on "scattered read" for 20 minutes before finishing. A third >> time it may sit on "sql*net message from client" all the while the >> server process is running away with cpu. What is going on >> >> DB Version is 9.2.0.5. O/S is solaris.
So there there is no definitive way to break out exactly what it's doing within that black box category of "CPU time"?
If I look at the explain plan for the SQL there's not much there that should be using CPU. There is a sort but that should be the last thing done and should only be operating on about 200 rows. Received on Thu Jun 14 2007 - 13:10:37 CDT
![]() |
![]() |