Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030189AbXAXFS2 (ORCPT ); Wed, 24 Jan 2007 00:18:28 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1030210AbXAXFS1 (ORCPT ); Wed, 24 Jan 2007 00:18:27 -0500 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:40474 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1030189AbXAXFS0 (ORCPT ); Wed, 24 Jan 2007 00:18:26 -0500 Date: Wed, 24 Jan 2007 14:15:10 +0900 From: KAMEZAWA Hiroyuki To: Christoph Lameter 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 Subject: Re: [RFC] Limit the size of the pagecache Message-Id: <20070124141510.7775829c.kamezawa.hiroyu@jp.fujitsu.com> In-Reply-To: References: <20070124121318.6874f003.kamezawa.hiroyu@jp.fujitsu.com> Organization: Fujitsu X-Mailer: Sylpheed version 2.2.0 (GTK+ 2.6.10; i686-pc-mingw32) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2114 Lines: 53 On Tue, 23 Jan 2007 20:30:16 -0800 (PST) Christoph Lameter wrote: > On Wed, 24 Jan 2007, KAMEZAWA Hiroyuki wrote: > > > I don't prefer to cause zone fallback by this. > > This may use ZONE_DMA before exhausing ZONE_NORMAL (ia64), > > Hmmm... We could use node_page_state instead of zone_page_state. > > > Very rapid page allocation can eats some amount of lower zone. > > One queston: For what purpose would you be using the page cache size > limitation? > This is my experience in support-desk for RHEL4. (therefore, this may not be suitable for talking about the current kernel) - One for stability When a customer constructs their detabase(Oracle), the system often goes to oom. This is because that the system cannot allocate DMA_ZOME memory for 32bit device. (USB or e100) Not allowing to use almost all pages as page cache (for temporal use) will be some help. (Note: construction DB on ext3....so all writes are serialized and the system couldn't free page cache.) - One for tuing. Sometimes our cutomer requests us to limit size of page-cache. Many cutomers's memory usage reaches 99.x%. (this is very common situation.) If almost all memories are used by page-cache, and we can think we can free it. But the customer cannot estimate what amount of page-cache can be freed (without perfromance regression). When a cutomer wants to add a new application, he tunes the system. But memory usage is always 99%. page-cache limitation is useful when the customer tunes his system and find sets of data and page-cache. (Of course, we can use some other complicated resource management system for this.) This will allow the users to decide that they need extra memory or not. And...some customers want to keep memory Free as much as possible. 99% memory usage makes insecure them ;) -Kame - 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/