Skip to contentSkip to conversation

prefer allocation from nodes w/o CPUs

PATCH New Jesse Barnes 1 participant 1 message Nov 4, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 prefer allocation from nodes w/o CPUs

This patch increases the allocation penalty for nodes with CPUs, which has the effect of making nodes w/o CPUs preferred for memory allocations. Both Altix and sx1000 will benefit from using the extra memory before touching the memory 'belonging' to other CPUs, so I'm sending it in for inclusion.

Thanks,
Jesse

===== include/asm-ia64/topology.h 1.13 vs edited =====

include/asm-ia64/topology.h +4 -0
@@ -18,6 +18,10 @@
 #include <asm/smp.h>
 
 #ifdef CONFIG_NUMA
+
+/* Nodes w/o CPUs are preferred for memory allocations, see build_zonelists */
+#define PENALTY_FOR_NODE_WITH_CPUS 255
+
 /*
  * Returns the number of the node containing CPU 'cpu'
  */