summaryrefslogtreecommitdiffstats
path: root/samples
diff options
context:
space:
mode:
authorWu Fengguang <fengguang.wu@intel.com>2011-11-23 11:44:41 -0600
committerWu Fengguang <fengguang.wu@intel.com>2011-12-08 10:49:20 +0800
commitaed21ad28b1323b2807faea019e5ac388a7bc837 (patch)
tree64d6bf0e86b7d256621420d2266d5c7c29bb5d50 /samples
parenta50527b19c62c808a7fca022816fff88a50b948d (diff)
downloadlinux-aed21ad28b1323b2807faea019e5ac388a7bc837.tar.gz
linux-aed21ad28b1323b2807faea019e5ac388a7bc837.tar.bz2
linux-aed21ad28b1323b2807faea019e5ac388a7bc837.zip
writeback: comment on the bdi dirty threshold
We do "floating proportions" to let active devices to grow its target share of dirty pages and stalled/inactive devices to decrease its target share over time. It works well except in the case of "an inactive disk suddenly goes busy", where the initial target share may be too small. To mitigate this, bdi_position_ratio() has the below line to raise a small bdi_thresh when it's safe to do so, so that the disk be feed with enough dirty pages for efficient IO and in turn fast rampup of bdi_thresh: bdi_thresh = max(bdi_thresh, (limit - dirty) / 8); balance_dirty_pages() normally does negative feedback control which adjusts ratelimit to balance the bdi dirty pages around the target. In some extreme cases when that is not enough, it will have to block the tasks completely until the bdi dirty pages drop below bdi_thresh. Acked-by: Jan Kara <jack@suse.cz> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Signed-off-by: Wu Fengguang <fengguang.wu@intel.com>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions