Hi,
it turns out that while Arjan's O(1) VM code works fine in
most scenarios, it's too swap happy in some cases. In order
to try to fix that I've split up the (per zone) active list
into an active_anon list (process working set) and an
active_cache list (file cache).
If the active_cache list is "large" we deactivate those pages
preferentially. Of course, if those pages really are referenced
they'll just be moved back to the active list and we'll end up
swapping out processes ... but in the common case of streaming
over lots and lots of file data we'll swap out the processes
very slowly, meaning that the machine should stay nicely usable
during eg. bitkeeper pulls, backups and apt-get updates.
This patch is still experimental, so any testing is welcome.
As usual, you can grab it from http://surriel.com/patches/
http://surriel.com/patches/2.4/2.4.19-rmap15-splitactive
have fun,
Rik
-- Bravely reimplemented by the knights who say "NIH". http://www.surriel.com/ http://guru.conectiva.com/ Current spamtrap: <a href=mailto:"october@surriel.com">october@surriel.com</a>- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sat Nov 23 2002 - 22:00:38 EST