]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/numa: Increase SD_NODES_PER_DOMAIN to 32.
authorAnton Blanchard <anton@samba.org>
Sun, 24 Jul 2011 16:33:14 +0000 (16:33 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 20 Sep 2011 05:53:22 +0000 (15:53 +1000)
The largest POWER7 boxes have 32 nodes. SD_NODES_PER_DOMAIN groups
nodes into chunks of 16 and adds a global balancing domain
(SD_ALLNODES) above it.

If we bump SD_NODES_PER_DOMAIN to 32, then we avoid this extra
level of balancing on our largest boxes.

Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/topology.h

index 6a7e7251cc0292deb2a87d1b3718e5c77ab23ec2..d1c1d312f808be51843ce553a8ed2c2cad1adb31 100644 (file)
@@ -28,6 +28,12 @@ struct device_node;
  */
 #define RECLAIM_DISTANCE 10
 
+/*
+ * Avoid creating an extra level of balancing (SD_ALLNODES) on the largest
+ * POWER7 boxes which have a maximum of 32 nodes.
+ */
+#define SD_NODES_PER_DOMAIN 32
+
 #include <asm/mmzone.h>
 
 static inline int cpu_to_node(int cpu)