Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756995AbZGPOBm (ORCPT ); Thu, 16 Jul 2009 10:01:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756519AbZGPOBl (ORCPT ); Thu, 16 Jul 2009 10:01:41 -0400 Received: from smtp3.ultrahosting.com ([74.213.175.254]:47496 "EHLO smtp.ultrahosting.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756486AbZGPOBl (ORCPT ); Thu, 16 Jul 2009 10:01:41 -0400 Date: Thu, 16 Jul 2009 10:00:51 -0400 (EDT) From: Christoph Lameter X-X-Sender: cl@gentwo.org To: Wu Fengguang cc: KOSAKI Motohiro , Minchan Kim , Johannes Weiner , David Howells , "riel@redhat.com" , Andrew Morton , LKML , "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 In-Reply-To: <20090716133454.GA20550@localhost> Message-ID: References: <20090716133454.GA20550@localhost> User-Agent: Alpine 1.10 (DEB 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 830 Lines: 20 On Thu, 16 Jul 2009, Wu Fengguang wrote: > 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. Reclaimable? Are all pages on the LRUs truly reclaimable? Aside from that nit. Reviewed-by: Christoph Lameter -- 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/