Skip to contentSkip to conversation

: gets a new online cpu to use percpu_pagelist_fraction

PATCH New Rohit Seth 1 participant 1 message Dec 9, 2005

Subsystems (2)
lore
Share & tools
lore

Rohit Seth

author
#0 lore raw

PATCH 1/1 : gets a new online cpu to use percpu_pagelist_fraction

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.

mm/page_alloc.c +4 -0
@@ -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 [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>