Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Top waits all I/O but buffer cache hit ratio high

Bobby DurrettApr 3 2014 — edited Apr 9 2014

I'm looking at a production system today (64 bit Linux 11.2.0.3 running in VMWare ESX server) and I'm puzzled by the AWR report for today.

Top 5 Timed Foreground Events 

EventWaitsTime(s)Avg wait (ms)% DB timeWait Class
read by other session31,441,112257,807846.80User I/O
db file sequential read47,854,402234,627542.59User I/O
enq: TX - row lock contention143,55141,4352897.52Application
DB CPU 19,726 3.58
log file sync504,63681220.15Commit

Looks to me like this is all disk I/O related.  Less than 4% CPU.

Top queries are mostly I/O:

Elapsed Time (s)Executions Elapsed Time per Exec (s) %Total%CPU%IOSQL IdSQL ModuleSQL Text
299,751.89913,293.9854.410.8199.321grysv9w7zdyuLBRPRD-00001d select kvisummaryintid, seq_nu...
64,741.571,19354.2711.752.0398.61b1hdcrcy02d0qLBRPRD-000018 select * from ( select k.* fro...
42,836.930 7.781.9598.902ypct9gq7n9ccLBRPRD-000019 SELECT u.repgrp, '' as highlvl...
36,194.38232156.016.570.000.000nn82pybvg9maLBRPRD-000001 update kvi_summary set last_up...
33,377.76133,377.766.061.7199.044xf9205gbdcc7LBRPRD-00001e SELECT u.repgrp, '' as highlvl...
28,920.340 5.251.7599.05b44xz4mkkpt5yLBRPRD-000017 SELECT u.repgrp, '' as highlvl...
12,012.5911,7191.032.1811.8588.59c2sq2a5577qufLBRPRD-000011 select report_date from ( sel...
2,601.18160,8910.020.472.4296.639ynhj7wq3htwkLBRPRD-000400 insert into discrete (worktype...
2,101.3290,9290.020.382.0116.553d53vyphc1uu2LBRPRD-000012 delete from discrete where kvi...
1,784.893846.970.321.3799.316cvukgj13hzxtLBRPRD-000013 select * from ( Select Kvi_sum...

But buffer cache hit ratio high:

Instance Efficiency Percentages (Target 100%) 

Buffer Nowait %:94.40Redo NoWait %:100.00
Buffer Hit %:96.40In-memory Sort %:100.00
Library Hit %:99.81Soft Parse %:97.59
Execute to Parse %:96.21Latch Hit %:99.43
Parse CPU to Parse Elapsd %:30.10% Non-Parse CPU:98.95

Weird.  I figure we might want to add memory or of course tune the queries.  But, I'm puzzled why the hit cache number is high.

Here is the SGA advisor on the memory:

SGA Target Advisory

SGA Target Size (M)SGA Size FactorEst DB Time (s)Est Physical Reads
4,0960.25377,544,97537,577,469,651
6,1440.38175,540,88123,924,145,887
8,1920.5030,245,6943,777,580,176
10,2400.6322,799,8922,745,179,833
12,2880.7515,676,1791,757,422,511
14,3360.8812,839,9081,364,051,634
16,3841.0011,798,1331,219,754,658
18,4321.1310,238,4201,003,492,157
20,4801.259,071,584841,630,714
22,5281.388,602,019776,495,815
24,5761.507,830,421669,645,307
26,6241.637,231,076586,336,064
28,6721.756,978,596551,451,081
30,7201.886,977,416551,451,081
32,7682.006,977,416551,451,081

I guess bump the SGA up to 28 gigabytes would help, but it seems like something is wrong with the numbers if the buffer cache hit ratio is 94% but everything else points to I/O.

Also, it isn't doing direct path reads that I can tell - seems to be db file sequential reads so it isn't bypassing the buffer cache.

I keep digging into it but I thought I would throw this out there if anyone has ideas.

- Bobby

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 7 2014
Added on Apr 3 2014
25 comments
10,269 views