Logical IO Vs Physical IO Vs Consistent Gets
Logical IO Vs Physical IO Vs Consistent Gets
Logical IO vs Physical IO vs
Consistent gets
I have created 1 GB table T1.
Let me check how many blocks are there in the table after I
have analyzed it.
Autotrace report
Let me clean buffer cache and check the auto trace report.
Execution Plan
———————————————————-
Plan hash value: 3617692013
————————————————————————–
| Id | Operation | Name | Rows | Bytes | Cost
(%CPU)| Time |
————————————————————————–
| 0 | SELECT STATEMENT | | 415K| 797M| 37716
(1)| 00:00:02 |
| 1 | TABLE ACCESS FULL| T1 | 415K| 797M| 37716
(1)| 00:00:02 |
————————————————————————–
Statistics
———————————————————-
1 recursive calls
0 db block gets
166620 consistent gets
138907 physical reads
0 redo size
9193927 bytes sent via SQL*Net to client
305307 bytes received via SQL*Net from client
27707 SQL*Net roundtrips to/from client
0 sorts (memory)
0 sorts (disk)
415584 rows processed
So In my case
138907+415584/15=166620
When you fetched 15 rows, Oracle paused, gave you the data.
When you went back to get the next 15, it got the buffer again
to resume your query
TKPROF command
Session altered.
System altered.
SQL>select * from t1;
TKPROF output
In AWR
In the below part it is evident we have 46 IOPS.
Units Definition
rrqm/s The number of read requests merged per second queued
to the device.
wrqm/s The number of write requests merged per second queued
to the device.
r/s The number of read requests issued to the device per
second.
w/s The number of write requests issued to the device per
second.
rMB/s The number of megabytes read from the device per
second. (I chose to used MB/s for the output.)
wMB/s The number of megabytes written to the device per
second. (I chose to use MB/s for the output.)
avgrq-sz The average size (in sectors) of the requests issued
to the device.
avgqu-sz The average queue length of the requests issued to the
device.
await The average time (milliseconds) for I/O requests
issued to the device to be served. This includes the
time spent by the requests in queue and the time spent
servicing them.
r_await The average time (in milliseconds) for read requests
issued to the device to be served. This includes the
time spent by the requests in queue and the time spent
servicing them.
w_await The average time (in milliseconds) for write requests
issued to the device to be served. This includes the
time spent by the requests in queue and the time spent
servicing them.
svctm The average service time (in milliseconds) for I/O
requests issued to the device. Warning! Do not trust
this field; it will be removed in a future version of
sysstat.
%util Percentage of CPU time during which I/O requests were
issued to the device (bandwidth utilization for the
device). Device saturation occurs when this values is
close to 100%.