Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932537AbZGPQBZ (ORCPT ); Thu, 16 Jul 2009 12:01:25 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757600AbZGPQBY (ORCPT ); Thu, 16 Jul 2009 12:01:24 -0400 Received: from cmpxchg.org ([85.214.51.133]:45040 "EHLO cmpxchg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756536AbZGPQBX (ORCPT ); Thu, 16 Jul 2009 12:01:23 -0400 Date: Thu, 16 Jul 2009 17:59:54 +0200 From: Johannes Weiner 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" 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: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1354 Lines: 30 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 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/