Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: intermittent very high waits in LGWR on Linux?
Noons wrote:
> bugbear apparently said,on my timestamp of 1/07/2005 9:14 PM:
>
>> But the spread... >> 89% are under 29177 microseconds AKA 29 milliseconds >> with a "reasonable" spread. >> >> But the remaining 11% are over 986468 microseconds, >> which is extraordinarily close to 1 second. >> >> Indeed, there are only 3 times (out of 4922) >> above 29177 but below 986468. >> >> It seems that I either get "correct" redo >> log write out, with times varying from 53 to 29177 >> microseconds, or I "fallback" to some kind of quantized >> timeout write behavior, driven by a 1 second clock. >> >> This is gettin' weird.
<<other good stuff read, digested and snipped>>
I think I'm up against a bug. I finally took a step back, stopped looking at Oracle, and looked at the machine.
This is not (quite) as odd as it sounds, since the machine is over on a rack, quote a way from me.
A quick RPM later gaves me the Linux version of iostat.
Running iostat -k1 whilst running my slow test gives (sample snapshot)
avg-cpu: %user %nice %sys %iowait %idle
0.00 0.00 0.00 0.00 100.00
Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn dev3-0 3.00 4.00 8.00 4 8 avg-cpu: %user %nice %sys %iowait %idle 1.00 0.00 0.00 0.00 99.00 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn dev3-0 12.00 4.00 112.00 4 112 avg-cpu: %user %nice %sys %iowait %idle 1.00 0.00 2.00 0.00 97.00 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn dev3-0 7.00 8.00 28.00 8 28 avg-cpu: %user %nice %sys %iowait %idle 2.00 0.00 1.00 0.00 97.00 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn dev3-0 13.00 16.00 64.00 16 64 avg-cpu: %user %nice %sys %iowait %idle 0.00 0.00 1.00 0.00 99.00 Device: tps kB_read/s kB_wrtn/s kB_read kB_wrtn dev3-0 7.00 4.00 36.00 4 36
Oracle is making heavy use of neither CPU nor IO!!!!
(and neither is anything else...)
It appears that the "log file sync waits" I'm seeing are more
like sleeps(). It ain't even tryin'.
Since the LGWR is a separate process, I start to (again) suspect Linux scheduling.
BugBear Received on Fri Jul 01 2005 - 08:34:27 CDT