vmscan: add newly swapped in pages to the inactive list
commitc5fdae469a6a26cd882d7fe0aa3fbfffb6b72fc5
authorRik van Riel <riel@redhat.com>
Sun, 19 Oct 2008 03:26:36 +0000 (18 20:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Oct 2008 15:50:25 +0000 (20 08:50 -0700)
tree68eff4073f0e26be5aea7a6e69f210fb0cab02ea
parent7e9cd484204f9e5b316ed35b241abf088d76e0af
vmscan: add newly swapped in pages to the inactive list

Swapin_readahead can read in a lot of data that the processes in memory
never need.  Adding swap cache pages to the inactive list prevents them
from putting too much pressure on the working set.

This has the potential to help the programs that are already in memory,
but it could also be a disadvantage to processes that are trying to get
swapped in.

Signed-off-by: Rik van Riel <riel@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/swap_state.c