All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jack Steiner <steiner@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: [PATCH] - Zonelists for nodes without cpus
Date: Tue, 17 Jan 2006 21:42:46 +0000	[thread overview]
Message-ID: <20060117214246.GA15872@sgi.com> (raw)

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

                 reply	other threads:[~2006-01-17 21:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=20060117214246.GA15872@sgi.com \
    --to=steiner@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.