From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <45CEA5CC.9090302@redhat.com> Date: Sun, 11 Feb 2007 00:12:44 -0500 From: Rik van Riel MIME-Version: 1.0 Subject: Re: Drop PageReclaim() References: <20070208140338.971b3f53.akpm@linux-foundation.org> <20070208142431.eb81ae70.akpm@linux-foundation.org> <20070208143746.79c000f5.akpm@linux-foundation.org> <20070208151341.7e27ca59.akpm@linux-foundation.org> <20070208163953.ab2bd694.akpm@linux-foundation.org> In-Reply-To: <20070208163953.ab2bd694.akpm@linux-foundation.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Andrew Morton Cc: Christoph Lameter , Hugh Dickins , linux-mm@kvack.org List-ID: Andrew Morton wrote: > Well. IO. People still seem to thing that vmscan.c is about page > replacement. It ain't. Most of the problems in there and most of the work > which has gone into it are IO-related. It's about both. VM researchers should take note of Andrew's comment though - page replacement algorithms need to take IO into account before they can be implemented practically. For example, any clock-like algorithm will need something to prevent the VM from starting writeout on way too much memory at once, as well as something to make it easy to find the pages that were dirty when last seen by pageout, but just became easily freeable... Part of the reason I'm writing this down is so I won't forget it, but it is also for others. The development on vmscan.c has usually been reactive - fix problems as we run into them - with little understanding of the overall picture. This is very different from eg. filesystems or networking, where a lot of things get designed up-front, and it is a miracle that the VM in the 2.6 kernel works as well as it does. I do not believe we can continue this way though. With very large memory systems becoming more and more common and the speed gap between RAM and disk growing we'll have to figure out the big picture one of these days, or at least have a checklist of dos and don'ts that anybody writing a VM patch can check against before submission :) -- Politics is the struggle between those who want to make their country the best in the world, and those who believe it already is. Each group calls the other unpatriotic. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org