[patch 11/14] mm: increase pcp size

Nick Piggin
2005-11-06T08:24:35Z

[-- Attachment #1: Type: text/plain, Size: 35 bytes --]

11/14

--
SUSE Labs, Novell Inc.

[-- Attachment #2: mm-increase-pcp-size.patch --]
[-- Type: text/plain, Size: 472 bytes --]

Increasing pageset size gives improvements on kbuild on my Xeon.

Index: linux-2.6/mm/page_alloc.c
===================================================================
--- linux-2.6.orig/mm/page_alloc.c
+++ linux-2.6/mm/page_alloc.c
@@ -1784,7 +1784,7 @@ inline void setup_pageset(struct per_cpu
memset(p, 0, sizeof(*p));
p->count = 0;
p->cold_count = 0;
- p->high = 6 * batch;
+ p->high = 16 * batch;
p->batch = max(1UL, 1 * batch);
INIT_LIST_HEAD(&p->list);
}