Skip to contentSkip to conversation

- Zonelists for nodes without cpus

PATCH New Jack Steiner 1 participant 1 message Jan 17, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 - Zonelists for nodes without cpus

If a node runs out of memory, ensure that memory on nodes w/o cpus is used before using memory on nodes with cpus.

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'
*/