溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務條款》

Oracle 等待事件之 free buffer waits

發(fā)布時間:2020-07-23 21:07:02 來源:網(wǎng)絡 閱讀:927 作者:Abigale2018 欄目:關系型數(shù)據(jù)庫

free buffer waits

官網(wǎng)解釋:

    This wait event indicates that a server process was unable to find a free buffer and has posted the database writer to make free buffers by writing out dirty buffers. A dirty buffer is a buffer whose contents have been modified. Dirty buffers are freed for reuse when DBWR has written the blocks to disk.


解釋:

   此等待事件表示服務器進程無法找到可用的buffer,并通過寫出臟buffer來創(chuàng)建空閑緩沖區(qū)。

臟buffer指的的那些內(nèi)容被修改的塊兒,當DBWR將塊寫入磁盤時,可以釋放臟的緩沖區(qū)以供重用。


Causes:   

DBWR may not be keeping up with writing dirty buffers in the following situations:

  • The I/O system is slow.

  • There are resources it is waiting for, such as latches.

  • The buffer cache is so small that DBWR spends most of its time cleaning out buffers for server processes.

  • The buffer cache is so big that one DBWR process is not enough to free enough buffers in the cache to satisfy requests.

Actions:

    If this event occurs frequently, then examine the session waits for DBWR to see whether there is anything delaying DBWR.

    如果此事件頻繁發(fā)生,則檢查會話是否等待DBWR查看是否有任何延遲DBWR。


解釋:

當一個會話將數(shù)據(jù)塊從磁盤讀到內(nèi)存中時,它需要找到空閑的內(nèi)存空間來存放這些數(shù)據(jù)塊,
當內(nèi)存中沒有空閑的空間時,就會產(chǎn)生這個等待;
會話在做一致性讀時,需要構(gòu)造數(shù)據(jù)塊在某個時刻的前映像(
p_w_picpath),
此時需要申請內(nèi)存來存放這些新構(gòu)造的數(shù)據(jù)塊,但內(nèi)存中無法找到這樣的可用內(nèi)存塊。
當數(shù)據(jù)庫中出現(xiàn)比較嚴重的
free buffer waits 等待事件時,可能的原因是:

(1)database buffer cache 太小,

(2)導致空閑空間不夠,比如內(nèi)存中的臟數(shù)據(jù)太多, DBWR 無法及時將這些臟數(shù)據(jù)寫到磁盤中以釋放空間



向AI問一下細節(jié)

免責聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權請聯(lián)系站長郵箱:is@yisu.com進行舉報,并提供相關證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權內(nèi)容。

AI