WAITEVENT: "log file parallel write" Reference Note (文档 ID 34583.1)

"log file parallel write" Reference Note

This is a reference note for the wait event  "log file parallel write" which includes the following subsections:
  • Brief definition
  • Individual wait details (eg: For waits seen in <>)
  • Systemwide wait details (eg: For waits seen in <>)
  • Reducing waits / wait times
See  Note:61998.1 for an introduction to Wait Events.

Definition:

  • Versions:7.0 - 9.2 Documentation:None
  • This wait event is used when waiting for the writes of redo records to the redo log files to complete. The waits occur in log writer (LGWR) as part of normal activity of copying records from the redo log buffer to the current online log.

Individual Waits:

  Parameters:

  • P1 = files
  • P2 = blocks
  • P3 = requests
  • files Number of files written to.
    If you have more than one log member per group then the files are written to in parallel (if possible). This is the number of redo log members (files) that the writes apply to.
  • blocks Number of blocks to be written.
    The number of REDO blocks being written to each log member. eg: A value of 10 indicates 10 redo blocks for each log member.
  • requests Number of I/O requests.
    The number of distinct IO requests. The number of blocks to be written is divided up into a number of IO requests.

  Wait Time:

The actual wait time is the time taken for all the outstanding I/O requests to complete. Even though the writes may be issued in parallel, LGWR needs to wait for the last I/O to be on disk before the parallel write is considered complete. Hence the wait time depends on the time it takes the OS to complete all requests.

Systemwide Waits:

As this wait is not used by normal Oracle shadow processes the "systemwide" figure should not be included directly in comparisons. If waits for "log file parallel write" are significant then this will show up as other user wait events (such as long "log file sync" wait times).

If the user waits indicate LGWR is not fast enough then the figures for this wait event, along with a number of redo related statistics, can help show if LGWR is suffering from poor IO response times.

For figures relating directly to LGWR write performance one can look at:

  • "redo writes" statistic
  • "redo blocks written" statistic
  • "redo write time" statistic
  • "redo wastage" statistic
  • "redo size" statistic

Reducing Waits / Wait times:

You might want to reduce "log file parallel write" wait times in order to reduce user waits which depend on LGWR.

  • Ensure tablespaces are NOT left in HOT BACKUP mode longer than needed.
    Tablespaces in HOT BACKUP mode cause more redo to be generated for each change which can vastly increase the rate of redo generarion.
  • Redo log members should ideally be on high speed disks 
    eg: RAID5 is not a good candidate for redo log members.
  • Redo log members should be on disks with little/no IO activity from other sources.
    (including low activity from other sources against the same disk controller)
  • NOLOGGING / UNRECOVERABLE operations may be possible for certain operations to reduce the overall rate of redo generation

Related:

<> 
 
 

相关内容

   
 
 

产品

   
 
  • Oracle Database Products > Oracle Database Suite > Oracle Database > Oracle Database - Enterprise Edition > RDBMS

你可能感兴趣的:(WAITEVENT: "log file parallel write" Reference Note (文档 ID 34583.1))