]> Git Repo - linux.git/commit
mm,vmscan: only evict file pages when we have plenty
authorRik van Riel <[email protected]>
Wed, 12 Dec 2012 00:01:10 +0000 (16:01 -0800)
committerLinus Torvalds <[email protected]>
Wed, 12 Dec 2012 01:22:23 +0000 (17:22 -0800)
commite9868505987a03a26a3979f27b82911ccc003752
tree14fded742fef30039b3ec4bf2350f857434b59ab
parente749eb95531ac8349df47f8d46ce2641dcb16589
mm,vmscan: only evict file pages when we have plenty

If we have more inactive file pages than active file pages, we skip
scanning the active file pages altogether, with the idea that we do not
want to evict the working set when there is plenty of streaming IO in the
cache.

However, the code forgot to also skip scanning anonymous pages in that
situation.  That leads to the curious situation of keeping the active file
pages protected from being paged out when there are lots of inactive file
pages, while still scanning and evicting anonymous pages.

This patch fixes that situation, by only evicting file pages when we have
plenty of them and most are inactive.

[[email protected]: adjust comment layout]
Signed-off-by: Rik van Riel <[email protected]>
Cc: Mel Gorman <[email protected]>
Cc: Johannes Weiner <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/vmscan.c
This page took 0.064383 seconds and 4 git commands to generate.