* [PATCH] - Zonelists for nodes without cpus
@ 2006-01-17 21:42 Jack Steiner
0 siblings, 0 replies; only message in thread
From: Jack Steiner @ 2006-01-17 21:42 UTC (permalink / raw)
To: linux-ia64
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'
*/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-01-17 21:42 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-17 21:42 [PATCH] - Zonelists for nodes without cpus Jack Steiner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox