Intermittent Long 'log file sync' Waits on Veritas ODM, LGWR Posting Long Write Times, I/O Portion of Wait Minimal
(Doc ID 1278149.1)
Last updated on DECEMBER 14, 2020
Applies to:Oracle Database - Enterprise Edition - Version 184.108.40.206 and later
Oracle Database Cloud Schema Service - Version N/A and later
Oracle Database Exadata Cloud Machine - Version N/A and later
Oracle Cloud Infrastructure - Database Service - Version N/A and later
Oracle Database Backup Service - Version N/A and later
Information in this document applies to any platform.
- The LGWR appears to be encountering regular problems where it hangs for 3 seconds at a time.
During this time, an iostat -x on the redo devices shows zero IO being pushed through.
- Veritas ODM (Oracle Disk Manager) is being used
- LGWR trace shows numerous entries such as:
The affect on any session in the database at this point is to wait with a log file sync event, effectively stalling the system for 3 seconds.
- When dtrace was run to trace the issue, the problem went away. Problem came back as soon as dtrace was stopped.
- Truss on LGWR also avoids the issue.
- At the times when LGWR suffers the slow write, the process is given a priority of 0. So it looks like the operating system is scheduling the LGWR process off CPU and it takes 3 seconds to get back on and catch up.
Dtrace looks to resolve the issue by either keeping the lgwr process on CPU or ensuring if it does come off CPU, it is re-instated immediately.
- System is NOT under load when this happens. It even happens more during the quiet periods.
- Renice the LDWR lgwr process makes no difference.
- From 10298 trace, the modules immediately prior to the waits are not the same and are sometimes IO related and are sometimes not which indicates that the delay is not necessarily down to a wait for I/O completion.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!
In this Document