【等待事件】log file sync

恩強Boy發表於2021-01-01

等待事件log file sync

情況說明

該庫有以下情況

- 該庫查詢效能嚴重下降

- 前臺等待事件最高為 log file sync

Top 10 Foreground Events by Total Wait Time  

Event    Waits      Total Wait Time     Avg   Wait %DBtime   Wait Class

------------- ---------   --- - ---- --------  ------- ------ ----------

log file sync 1,176,095   84.2     72      64.5     Commit

- 日誌檔案並行寫和日誌歸檔 I/O 等待很高

Background Wait Events

Event        Waits    % Time-outs Total - Wait -Time  Waits/txn %bgtime

----------------------- ------------ ----- ---------- ------- -------- ------

log file parallel write  292,078   0   2,452   8          0.2     37.5

db file parallel write     4,636   0   2,080   449    0.0   31.8

Log archive I/O       8,180   0   812   99     0.0   12.4

等待事件分析

對於db 檔案並行寫和日誌歸檔 I/O 等待事件,平均等待事件為 449 99, 這是非常大的,一般來講應該小於 10 毫秒,這表明在儲存和網路中可能存在延遲。建議檢查 I/O 是否有問題。

解決方法

經過排查,發現LUN I/O 存在問題,需要進一步對儲存進行排查。

 

 

---- end ----


來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/31529886/viewspace-2747005/,如需轉載,請註明出處,否則將追究法律責任。

相關文章