]> git.baikalelectronics.ru Git - kernel.git/commit
vmscan: add newly swapped in pages to the inactive list
authorRik van Riel <riel@redhat.com>
Sun, 19 Oct 2008 03:26:36 +0000 (20:26 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Mon, 20 Oct 2008 15:50:25 +0000 (08:50 -0700)
commitbb39d47c421e00ff39f6036ca747ecd403af198c
tree68eff4073f0e26be5aea7a6e69f210fb0cab02ea
parentca54ec97ec7abd0863a63a4d425b328347cb75ba
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