]> Git Repo - linux.git/commit
writeback: report dirty thresholds in /proc/vmstat
authorMichael Rubin <[email protected]>
Tue, 26 Oct 2010 21:21:36 +0000 (14:21 -0700)
committerLinus Torvalds <[email protected]>
Tue, 26 Oct 2010 23:52:06 +0000 (16:52 -0700)
commit79da826aee6a10902ef411bc65864bd02102fa83
tree9cc3602fc53f889d9b7394663d4fdaa94d13a213
parent2ac390370aac4aaa49cab17f328b478cbd5b3d8d
writeback: report dirty thresholds in /proc/vmstat

The kernel already exposes the user desired thresholds in /proc/sys/vm
with dirty_background_ratio and background_ratio.  But the kernel may
alter the number requested without giving the user any indication that is
the case.

Knowing the actual ratios the kernel is honoring can help app developers
understand how their buffered IO will be sent to the disk.

        $ grep threshold /proc/vmstat
        nr_dirty_threshold 409111
        nr_dirty_background_threshold 818223

Signed-off-by: Michael Rubin <[email protected]>
Cc: Wu Fengguang <[email protected]>
Cc: Dave Chinner <[email protected]>
Cc: Jens Axboe <[email protected]>
Cc: KOSAKI Motohiro <[email protected]>
Cc: Nick Piggin <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/vmstat.c
This page took 0.054352 seconds and 4 git commands to generate.