Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757045AbZGPNuM (ORCPT ); Thu, 16 Jul 2009 09:50:12 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756854AbZGPNuL (ORCPT ); Thu, 16 Jul 2009 09:50:11 -0400 Received: from mx2.redhat.com ([66.187.237.31]:34591 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756648AbZGPNuK (ORCPT ); Thu, 16 Jul 2009 09:50:10 -0400 Message-ID: <4A5F2FDA.2060309@redhat.com> Date: Thu, 16 Jul 2009 09:49:14 -0400 From: Rik van Riel Organization: Red Hat, Inc User-Agent: Thunderbird 2.0.0.17 (X11/20080915) MIME-Version: 1.0 To: Wu Fengguang CC: KOSAKI Motohiro , Minchan Kim , Johannes Weiner , David Howells , Andrew Morton , LKML , Christoph Lameter , "peterz@infradead.org" , "tytso@mit.edu" , "linux-mm@kvack.org" , "elladan@eskimo.com" , "npiggin@suse.de" , "Barnes, Jesse" Subject: Re: [PATCH] mm: count only reclaimable lru pages References: <20090716133454.GA20550@localhost> In-Reply-To: <20090716133454.GA20550@localhost> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1073 Lines: 26 Wu Fengguang wrote: > 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 thus won't be scanned. So the anon pages shall not be counted. Also > rename the function names to reflect the new meaning. > > 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 avoid possible false OOM kills. > > Cc: Minchan Kim > Cc: KOSAKI Motohiro > Signed-off-by: Wu Fengguang Reviewed-by: Rik van Riel -- 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/