Re: [PATCH 2/5] mm: vmscan: kick flushers when we encounter dirty pages on the LRU
From: Mel Gorman
Date: Thu Jan 26 2017 - 04:59:21 EST
On Mon, Jan 23, 2017 at 01:16:38PM -0500, Johannes Weiner wrote:
> Memory pressure can put dirty pages at the end of the LRU without
> anybody running into dirty limits. Don't start writing individual
> pages from kswapd while the flushers might be asleep.
> Signed-off-by: Johannes Weiner <hannes@xxxxxxxxxxx>
I don't understand the motivation for checking the wb_reason name. Maybe
it was easier to eyeball while reading ftraces. The comment about the
flusher not doing its job could also be as simple as the writes took
place and clean pages were reclaimed before dirty_expire was reached.
Not impossible if there was a light writer combined with a heavy reader
or a large number of anonymous faults.
Acked-by: Mel Gorman <mgorman@xxxxxxx>