public inbox for linux-ia64@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC] prefer allocations from nodes w/o CPUs
@ 2004-11-04 16:57 Jesse Barnes
  2004-11-04 17:11 ` Alex Williamson
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: Jesse Barnes @ 2004-11-04 16:57 UTC (permalink / raw)
  To: linux-ia64

[-- Attachment #1: Type: text/plain, Size: 290 bytes --]

Small patch for the ia64 version of topology.h to make the zonelist building 
code prefer nodes w/o CPUs for allocations.  Do any platforms aside from 
Altix have nodes with only memory?  If not, then this will only affect sn2, 
otherwise I'm interested in hearing feedback.

Thanks,
Jesse

[-- Attachment #2: prefer-headless-nodes.patch --]
[-- Type: text/plain, Size: 437 bytes --]

===== include/asm-ia64/topology.h 1.13 vs edited =====
--- 1.13/include/asm-ia64/topology.h	2004-10-20 11:20:44 -07:00
+++ edited/include/asm-ia64/topology.h	2004-11-02 12:02:48 -08:00
@@ -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] 8+ messages in thread

end of thread, other threads:[~2004-11-04 17:59 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-04 16:57 [RFC] prefer allocations from nodes w/o CPUs Jesse Barnes
2004-11-04 17:11 ` Alex Williamson
2004-11-04 17:16 ` Jesse Barnes
2004-11-04 17:22 ` Alex Williamson
2004-11-04 17:32 ` Alex Tsariounov
2004-11-04 17:33 ` Jesse Barnes
2004-11-04 17:49 ` Jesse Barnes
2004-11-04 17:59 ` Alex Tsariounov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox