From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 21 Oct 2008 15:13:42 -0700 From: Andrew Morton Subject: Re: [patch] mm: more likely reclaim MADV_SEQUENTIAL mappings II Message-Id: <20081021151342.c1678bd6.akpm@linux-foundation.org> In-Reply-To: <878wsigp2e.fsf_-_@saeurebad.de> References: <87d4hugrwm.fsf@saeurebad.de> <20081021104357.GA12329@wotan.suse.de> <878wsigp2e.fsf_-_@saeurebad.de> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org Return-Path: To: Johannes Weiner Cc: npiggin@suse.de, riel@redhat.com, kosaki.motohiro@jp.fujitsu.com, linux-mm@kvack.org List-ID: On Tue, 21 Oct 2008 13:33:45 +0200 Johannes Weiner wrote: > File pages mapped only in sequentially read mappings are perfect > reclaim canditates. > > This makes MADV_SEQUENTIAL mappings behave like a weak references, > their pages will be reclaimed unless they have a strong reference from > a normal mapping as well. > > The patch changes the reclaim and the unmap path where they check if > the page has been referenced. In both cases, accesses through > sequentially read mappings will be ignored. > > Signed-off-by: Johannes Weiner > --- > II: add likely()s to mitigate the extra branches a bit as to Nick's > suggestion Is http://hannes.saeurebad.de/madvseq/ still true with this version? -- 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