From: Jesse Barnes <jbarnes@engr.sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [RFC] prefer allocations from nodes w/o CPUs
Date: Thu, 04 Nov 2004 16:57:25 +0000 [thread overview]
Message-ID: <200411040857.25664.jbarnes@engr.sgi.com> (raw)
[-- 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'
*/
next reply other threads:[~2004-11-04 16:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-04 16:57 Jesse Barnes [this message]
2004-11-04 17:11 ` [RFC] prefer allocations from nodes w/o CPUs 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200411040857.25664.jbarnes@engr.sgi.com \
--to=jbarnes@engr.sgi.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox