DB time in AWR Report - (CPU time,I/O and waits)? [message #559996] |
Mon, 09 July 2012 01:42  |
 |
orapratap
Messages: 134 Registered: November 2011 Location: Canada
|
Senior Member |
|
|
Hello
I understand that when data is read from the disk, I/O is done
And When computations are done then CPU is used
Then where the following equation fits?
DB Time = sum of database CPU time + waits
Is I/O considered as a part of CPU time?
Does this equation changes with SAN, OS caching?
Thanks and Regards
Orapratap
|
|
|
|
|
Re: DB time in AWR Report - (CPU time,I/O and waits)? [message #560039 is a reply to message #560036] |
Tue, 10 July 2012 01:04  |
 |
Michel Cadot
Messages: 68737 Registered: March 2007 Location: Saint-Maur, France, https...
|
Senior Member Account Moderator |
|
|
Quote:However there isn't a clue regarding "if cpu is used while doing I/O"
Yes and no. IT is more an OS question than an Oracle one.
IO is:
1/ Prepare the io -> cpu
2/ Ask the io controller to execute the io -> cpu
3/ wait for the controller to answer -> wait (if synchroneous io)
4/ Receive the io acknowledge and possibly (if read) fill the caller buffer -> cpu
(I simplify because you also have cpu due to your context swicth off and on, possibly cpu due to other interruptions...)
So CPU measure includes this cpu that is part of io, and IO measure only includes the "step" 3.
Regards
Michel
|
|
|