From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Tue, 23 Jan 2007 19:01:31 -0800 (PST) From: Christoph Lameter Subject: Re: [RFC] Limit the size of the pagecache In-Reply-To: <20070124115310.48cda374.kamezawa.hiroyu@jp.fujitsu.com> Message-ID: References: <20070124115310.48cda374.kamezawa.hiroyu@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: KAMEZAWA Hiroyuki Cc: aubreylee@gmail.com, svaidy@linux.vnet.ibm.com, nickpiggin@yahoo.com.au, rgetz@blackfin.uclinux.org, Michael.Hennerich@analog.com, linux-mm@kvack.org, linux-kernel@vger.kernel.org List-ID: On Wed, 24 Jan 2007, KAMEZAWA Hiroyuki wrote: > if (sc->may_swap && > zone_page_state(zone, NR_FILE_PAGES) && > !(curreht->flags & PF_MEMALLOC)) > sc->may_swap = 0; That is probably better than what we have so far. -- 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