[PATCH] mm: pcp use non powers of 2 for batch size
authorNick Piggin <nickpiggin@yahoo.com.au>
Sun, 1 May 2005 15:58:36 +0000 (08:58 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sun, 1 May 2005 15:58:36 +0000 (08:58 -0700)
commit8e30f272a93ec9c1d5c305c5040dfaebc880499d
treeed5b54d2895d3e93768f79b2ec2b968f79bf7013
parent81b4082dc7666e2bc5ec229d8e837f3bafb96883
[PATCH] mm: pcp use non powers of 2 for batch size

Jack Steiner reported this to have fixed his problem (bad colouring):
"The patches fix both problems that I found - bad
 coloring & excessive pages in pagesets."

In most workloads this is not likely to be such a pronounced problem,
however it should help corner cases.  And avoiding powers of 2 in these
types of memory operations is always a good idea.

Signed-off-by: Nick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/page_alloc.c