Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756568AbYGSR74 (ORCPT ); Sat, 19 Jul 2008 13:59:56 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755009AbYGSR7t (ORCPT ); Sat, 19 Jul 2008 13:59:49 -0400 Received: from mx1.redhat.com ([66.187.233.31]:37512 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754338AbYGSR7t (ORCPT ); Sat, 19 Jul 2008 13:59:49 -0400 Date: Sat, 19 Jul 2008 13:59:30 -0400 From: Rik van Riel To: Johannes Weiner Cc: Andrew Morton , Peter Zijlstra , Nossum , linux-mm@kvack.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH -mm] mm: more likely reclaim MADV_SEQUENTIAL mappings Message-ID: <20080719135930.3b55381b@bree.surriel.com> In-Reply-To: <87y73x4w6y.fsf@saeurebad.de> References: <87y73x4w6y.fsf@saeurebad.de> Organization: Red Hat, Inc. X-Mailer: Claws Mail 3.0.2 (GTK+ 2.10.4; x86_64-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 978 Lines: 25 On Sat, 19 Jul 2008 19:31:49 +0200 Johannes Weiner wrote: > File pages accessed only once through sequential-read mappings between > fault and scan time are perfect candidates for reclaim. > > This patch makes page_referenced() ignore these singular references and > the pages stay on the inactive list where they likely fall victim to the > next reclaim phase. Which is exactly what the madvise man page says about pages in MADV_SEQUENTIAL ranges. Yay. MADV_SEQUENTIAL Expect page references in sequential order. (Hence, pages in the given range can be aggressively read ahead, and may be freed soon after they are accessed.) -- All rights reversed. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/