From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Sun, 5 Dec 2004 09:44:37 -0500 (EST) From: Rik van Riel Subject: Re: pages not marked as accessed on non-page boundaries In-Reply-To: <20041205141342.GA29174@cistron.nl> Message-ID: References: <20041205141342.GA29174@cistron.nl> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: owner-linux-mm@kvack.org Return-Path: To: Miquel van Smoorenburg Cc: linux-mm@kvack.org List-ID: On Sun, 5 Dec 2004, Miquel van Smoorenburg wrote: > When you have a database accessing small amounts of data > in an index file randomly, then most of those pages will > not be marked as read and will be thrown out too soon. > Would it be a good thing to fix this ? Patch is below. Your patch makes a lot of sense to me. This should help keep database indexes in memory... -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." - Brian W. Kernighan -- 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: aart@kvack.org