[PATCH] - Zonelists for nodes without cpus

From: Jack Steiner <steiner_at_sgi.com>
Date: 2006-01-18 08:42:46
If a node runs out of memory, ensure that memory on nodes w/o cpus is used
before using memory on nodes with cpus. 

	Signed-off-by: Jack Steiner <steiner@sgi.com>



Index: linux/include/asm-ia64/topology.h
===================================================================
--- linux.orig/include/asm-ia64/topology.h	2006-01-17 14:27:48.473073976 -0600
+++ linux/include/asm-ia64/topology.h	2006-01-17 14:28:12.070373036 -0600
@@ -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'
  */
-
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Received on Wed Jan 18 08:44:08 2006

This archive was generated by hypermail 2.1.8 : 2006-01-18 08:44:17 EST