]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[PATCH] zone_reclaim: partial scans instead of full scan
authorChristoph Lameter <clameter@engr.sgi.com>
Wed, 1 Feb 2006 11:05:32 +0000 (03:05 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 1 Feb 2006 16:53:16 +0000 (08:53 -0800)
commita92f71263af9d0ab77c260f709c0c079656221aa
tree93aa7bf968ba108cc893b0dcc4de36fbf3b733bf
parentaa3f18b3391ac305baa01faead3fdf9147daf54b
[PATCH] zone_reclaim: partial scans instead of full scan

Instead of scanning all the pages in a zone, imitate real swap and scan
only a portion of the pages and gradually scan more if we do not free up
enough pages.  This avoids a zone suddenly loosing all unused pagecache
pages (we may after all access some of these again so they deserve another
chance) but it still frees up large chunks of memory if a zone only
contains unused pagecache pages.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/vmscan.c