From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail138.messagelabs.com (mail138.messagelabs.com [216.82.249.35]) by kanga.kvack.org (Postfix) with ESMTP id 4B2F56B0095 for ; Thu, 16 Jul 2009 12:01:28 -0400 (EDT) Date: Thu, 16 Jul 2009 17:59:54 +0200 From: Johannes Weiner Subject: Re: [PATCH] mm: count only reclaimable lru pages v2 Message-ID: <20090716155954.GA1883@cmpxchg.org> References: <20090716133454.GA20550@localhost> <20090716142533.GA27165@localhost> <1247754491.6586.23.camel@laptop> <4A5F3C70.7010001@redhat.com> <20090716150901.GA31204@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090716150901.GA31204@localhost> Sender: owner-linux-mm@kvack.org To: Wu Fengguang Cc: Rik van Riel , Christoph Lameter , Peter Zijlstra , KOSAKI Motohiro , Minchan Kim , David Howells , Andrew Morton , LKML , "tytso@mit.edu" , "linux-mm@kvack.org" , "elladan@eskimo.com" , "npiggin@suse.de" , "Barnes, Jesse" List-ID: On Thu, Jul 16, 2009 at 11:09:01PM +0800, Wu Fengguang wrote: > mm: count only reclaimable lru pages > > global_lru_pages() / zone_lru_pages() can be used in two ways: > - to estimate max reclaimable pages in determine_dirtyable_memory() > - to calculate the slab scan ratio > > When swap is full or not present, the anon lru lists are not reclaimable > and also won't be scanned. So the anon pages shall not be counted in both > usage scenarios. Also rename to _reclaimable_pages: now they are counting > the possibly reclaimable lru pages. > > It can greatly (and correctly) increase the slab scan rate under high memory > pressure (when most file pages have been reclaimed and swap is full/absent), > thus reduce false OOM kills. > > Acked-by: Peter Zijlstra > Reviewed-by: Rik van Riel > Reviewed-by: Christoph Lameter > Reviewed-by: Minchan Kim > Cc: KOSAKI Motohiro > Signed-off-by: Wu Fengguang Acked-by: Johannes Weiner -- 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