writeback: dirty position control - bdi reserve area
authorWu Fengguang <fengguang.wu@intel.com>
Fri, 5 Aug 2011 04:16:46 +0000 (22:16 -0600)
committerWu Fengguang <fengguang.wu@intel.com>
Mon, 3 Oct 2011 13:08:58 +0000 (21:08 +0800)
commit8927f66c4ede9a18b4b58f7e6f9debca67065f6b
treef7c8490ab23a20cb86874ca8112f3dd1fc6002ae
parent57fc978cfb61ed40a7bbfe5a569359159ba31abd
writeback: dirty position control - bdi reserve area

Keep a minimal pool of dirty pages for each bdi, so that the disk IO
queues won't underrun. Also gently increase a small bdi_thresh to avoid
it stuck in 0 for some light dirtied bdi.

It's particularly useful for JBOD and small memory system.

It may result in (pos_ratio > 1) at the setpoint and push the dirty
pages high. This is more or less intended because the bdi is in the
danger of IO queue underflow.

Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
mm/page-writeback.c