Oracle 等待事件之 free buffer waits

简介:

free buffer waits

官网解释:

    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来创建空闲缓冲区。

脏buffer指的的那些内容被修改的块儿,当DBWR将块写入磁盘时,可以释放脏的缓冲区以供重用。


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.

    如果此事件频繁发生,则检查会话是否等待DBWR查看是否有任何延迟DBWR。


解释:

当一个会话将数据块从磁盘读到内存中时,它需要找到空闲的内存空间来存放这些数据块,
当内存中没有空闲的空间时,就会产生这个等待;
会话在做一致性读时,需要构造数据块在某个时刻的前映像( 
image),
此时需要申请内存来存放这些新构造的数据块,但内存中无法找到这样的可用内存块。
当数据库中出现比较严重的 
free buffer waits 等待事件时,可能的原因是:

(1)database buffer cache 太小,

(2)导致空闲空间不够,比如内存中的脏数据太多, DBWR 无法及时将这些脏数据写到磁盘中以释放空间 

本文转自 wangergui 51CTO博客,原文链接:http://blog.51cto.com/wangergui/1912951,如需转载请自行联系原作者

相关文章
|
SQL 监控 Oracle
Oracle 数据库发生等待事件:enq: TX - row lock contention ,排查思路
Oracle 数据库发生等待事件:enq: TX - row lock contention ,排查思路
Oracle 数据库发生等待事件:enq: TX - row lock contention ,排查思路
|
Oracle 前端开发 Java
Oracle优化11-10046事件
Oracle优化11-10046事件
119 0
|
SQL Oracle 关系型数据库
Oracle优化12-10053事件
Oracle优化12-10053事件
141 0
|
Oracle 关系型数据库 数据库
Oracle-等待事件解读
Oracle-等待事件解读
132 0
|
SQL Oracle 关系型数据库
Oracle 等待事件研究:SQL*Net break/reset to client
SQL*Net break/reset to client事件是一个容易被误解的事件,这个事件看起来和网络有关,但实际上大多数情况下这个事件与网络无关。
699 0
Oracle 等待事件研究:SQL*Net break/reset to client
|
SQL 存储 监控
Oracle中的SQL_TRACE是什么?诊断事件是什么?常用的10046及10053诊断事件的区别是什么?
Oracle中的SQL_TRACE是什么?诊断事件是什么?常用的10046及10053诊断事件的区别是什么?
538 0
|
Oracle 关系型数据库 数据库
❤️Oracle TOP5事件解读,性能优化必备技能❤️
❤️Oracle TOP5事件解读,性能优化必备技能❤️
339 0
❤️Oracle TOP5事件解读,性能优化必备技能❤️
|
SQL Oracle 关系型数据库
|
5月前
|
存储 Oracle 关系型数据库
Oracle数据库的应用场景有哪些?
【10月更文挑战第15天】Oracle数据库的应用场景有哪些?
376 64

推荐镜像

更多