From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 9 Aug 2005 19:52:14 -0400 (EDT) From: Rik van Riel Subject: Re: [RFC 1/3] non-resident page tracking In-Reply-To: <20050809182517.GA20644@dmt.cnet> Message-ID: References: <20050808201416.450491000@jumble.boston.redhat.com> <20050808202110.744344000@jumble.boston.redhat.com> <20050809182517.GA20644@dmt.cnet> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Marcelo Tosatti Cc: linux-mm@kvack.org, linux-kernel@vger.kernel.org List-ID: On Tue, 9 Aug 2005, Marcelo Tosatti wrote: > Two hopefully useful comments: > > i) ARC and its variants requires additional information about page > replacement (namely whether the page has been reclaimed from the L1 or > L2 lists). > > How costly would it be to add this information to the hash table? Not at all. Simply reduce the hash to 31 bits and use the remaining bit to store that value. > ii) From my reading of the patch, the provided "distance" information is > relative to each hash bucket. I'm unable to understand the distance metric > being useful if measured per-hash-bucket instead of globally? The idea is that the hash function spreads things around evenly enough for the different buckets to rotate at roughly the same speed. -- All Rights Reversed -- 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