All of lore.kernel.org
 help / color / mirror / Atom feed
* [patch] Reset the high water marks in CPUs pcp list
@ 2005-09-28 17:50 ` Seth, Rohit
  0 siblings, 0 replies; 22+ messages in thread
From: Seth, Rohit @ 2005-09-28 17:50 UTC (permalink / raw)
  To: akpm; +Cc: Seth, Rohit, linux-mm, Mattia Dongili, linux-kernel

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 <rohit.seth@intel.com>


--- 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);
 }
 

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2005-09-29 16:34 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-28 17:50 [patch] Reset the high water marks in CPUs pcp list Seth, Rohit
2005-09-28 17:50 ` Seth, Rohit
2005-09-28 20:01 ` Christoph Lameter
2005-09-28 20:01   ` Christoph Lameter
2005-09-28 20:26   ` Rohit Seth
2005-09-28 20:26     ` Rohit Seth
2005-09-28 21:09     ` Christoph Lameter
2005-09-28 21:09       ` Christoph Lameter
2005-09-28 21:32       ` Rohit Seth
2005-09-28 21:32         ` Rohit Seth
2005-09-28 21:56         ` Christoph Lameter
2005-09-28 21:56           ` Christoph Lameter
2005-09-29  1:12           ` Rohit Seth
2005-09-29  1:12             ` Rohit Seth
2005-09-29  6:49           ` Nick Piggin
2005-09-29  6:49             ` Nick Piggin
2005-09-29 16:34             ` Rohit Seth
2005-09-29 16:34               ` Rohit Seth
2005-09-28 21:18   ` Martin J. Bligh
2005-09-28 21:18     ` Martin J. Bligh
2005-09-28 21:55     ` Christoph Lameter
2005-09-28 21:55       ` Christoph Lameter

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.