Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750732AbVI1Rug (ORCPT ); Wed, 28 Sep 2005 13:50:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750825AbVI1Rug (ORCPT ); Wed, 28 Sep 2005 13:50:36 -0400 Received: from fmr23.intel.com ([143.183.121.15]:1922 "EHLO scsfmr003.sc.intel.com") by vger.kernel.org with ESMTP id S1750732AbVI1Ruf (ORCPT ); Wed, 28 Sep 2005 13:50:35 -0400 Date: Wed, 28 Sep 2005 10:50:09 -0700 From: "Seth, Rohit" To: akpm@osdl.org Cc: "Seth, Rohit" , linux-mm@kvack.org, Mattia Dongili , linux-kernel@vger.kernel.org Subject: [patch] Reset the high water marks in CPUs pcp list Message-ID: <20050928105009.B29282@unix-os.sc.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1127 Lines: 32 Recent changes in page allocations for pcps has increased the high watermark for these lists. This has resulted in scenarios where pcp lists could be having bigger number of free pages even under low memory conditions. [PATCH]: Reduce the high mark in cpu's pcp lists. Signed-off-by: Rohit Seth --- linux-2.6.14-rc2-mm1.org/mm/page_alloc.c 2005-09-27 10:03:51.000000000 -0700 +++ linux-2.6.14-rc2-mm1/mm/page_alloc.c 2005-09-27 18:01:21.000000000 -0700 @@ -1859,15 +1859,15 @@ pcp = &p->pcp[0]; /* hot */ pcp->count = 0; pcp->low = 0; - pcp->high = 6 * batch; + pcp->high = 4 * batch; pcp->batch = max(1UL, 1 * batch); INIT_LIST_HEAD(&pcp->list); pcp = &p->pcp[1]; /* cold*/ pcp->count = 0; pcp->low = 0; - pcp->high = 2 * batch; pcp->batch = max(1UL, batch/2); + pcp->high = pcp->batch + 1; INIT_LIST_HEAD(&pcp->list); } - 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/