From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail172.messagelabs.com (mail172.messagelabs.com [216.82.254.3]) by kanga.kvack.org (Postfix) with SMTP id 921E46B004D for ; Thu, 16 Jul 2009 09:49:34 -0400 (EDT) Message-ID: <4A5F2FDA.2060309@redhat.com> Date: Thu, 16 Jul 2009 09:49:14 -0400 From: Rik van Riel MIME-Version: 1.0 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: owner-linux-mm@kvack.org 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" List-ID: 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, 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