linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH]: gets a new online cpu to use percpu_pagelist_fraction
@ 2005-12-09 19:47 Rohit Seth
  0 siblings, 0 replies; only message in thread
From: Rohit Seth @ 2005-12-09 19:47 UTC (permalink / raw)
  To: akpm; +Cc: linux-mm, linux-kernel

If percpu_pagelist_fraction tunable is set then this patch allows a newly
brought online cpu to use new settings for high and batch values in its 
per cpu pagelists.

Signed-off-by: Rohit Seth <rohit.seth@intel.com>


--- c/mm/page_alloc.c	2005-12-09 03:43:22.000000000 -0800
+++ linux-2.6.15-rc5-mm1/mm/page_alloc.c	2005-12-09 03:45:28.000000000 -0800
@@ -1977,6 +1977,10 @@
 			goto bad;
 
 		setup_pageset(zone->pageset[cpu], zone_batchsize(zone));
+
+		if (percpu_pagelist_fraction) 
+			setup_pagelist_highmark(zone_pcp(zone, cpu), 
+			 	(zone->present_pages / percpu_pagelist_fraction));
 	}
 
 	return 0;

--
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: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-12-09 19:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-09 19:47 [PATCH]: gets a new online cpu to use percpu_pagelist_fraction Rohit Seth

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox