From: Rohit Seth 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 Signed-off-by: Andrew Morton --- mm/page_alloc.c | 4 ++++ 1 files changed, 4 insertions(+) diff -puN mm/page_alloc.c~make-high-and-batch-sizes-of-per_cpu_pagelists-configurable-fix mm/page_alloc.c --- devel/mm/page_alloc.c~make-high-and-batch-sizes-of-per_cpu_pagelists-configurable-fix 2005-12-09 23:17:41.000000000 -0800 +++ devel-akpm/mm/page_alloc.c 2005-12-09 23:17:41.000000000 -0800 @@ -1894,6 +1894,10 @@ static int __devinit process_zones(int c 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; _