]> git.neil.brown.name Git - history.git/commit
[PATCH] start anon pages on the active list
authorAndrew Morton <akpm@digeo.com>
Sun, 13 Oct 2002 02:33:11 +0000 (19:33 -0700)
committerLinus Torvalds <torvalds@home.transmeta.com>
Sun, 13 Oct 2002 02:33:11 +0000 (19:33 -0700)
commita5bef68d6c85d26344dd31b4c342e5a365e68326
tree296b85a21bfcb10d9b948e7aa544254d71e8874c
parent8f7a14042e1f5fc814fa60956e3a2dcf5744a0ed
[PATCH] start anon pages on the active list

We're currently adding anon pages to the inactive list.  But they're
all referenced, so when they reach the tail of the inactive list the
kernel will always then bump them up to the active list.

Not only does this waste CPU, but it leads to inactive/active
imbalance.  We end up with enormous sequences of unreclaimable,
to-be-activated pages hitting the tail of the LRU and large amounts of
scanning need to be done.  Which upsets the VM, making it think that it
is "under distress".

So just start them out on the active list.
mm/swap.c