已添加到 MLRU 队列的页数

页清除程序线程会定期将 MLRU 队列中已修改的缓冲区清空到磁盘。要指定清除开始的点,请使用 BUFFERPOOL 配置参数指定 lru_max_dirty 的值。

通过指定页清除程序何时开始,lru_max_dirty 值会限制可附加到 MLRU 队列的页缓冲区数。lru_max_dirty 的初始设置是 60.00,因此页清除会在队列所管理的缓冲区的百分之六十被修改时开始。

实际上,页清除程序可以在若干条件下开始,但只有其中一个条件是 MLRU 队列达到 lru_max_dirty 值的情况。有关数据库服务器如何执行缓冲池清空的更多信息,请参阅将数据清空到磁盘

以下示例显示 lru_max_dirty 的值如何应用于 LRU 队列以指定页清除程序何时开始,从而限制 MLRU 队列中的缓冲区数。
Buffers specified as 8000
lrus specified as 8
lru_max_dirty specified as 60 percent

Page cleaning begins when the number of buffers in the MLRU 
   queue is equal to lru_max_dirty.

Buffers per lru queue = (8000/8) = 1000

Max buffers in MLRU queue and point at which page cleaning 
   begins: 1000 x 0.60 = 600