linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Erich Focht <efocht@ess.nec.de>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] node affine NUMA scheduler 4/5
Date: Mon, 14 Oct 2002 13:09:50 +0200	[thread overview]
Message-ID: <200210141309.50652.efocht@ess.nec.de> (raw)

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

----------  Resent Message  ----------

Subject: [PATCH] node affine NUMA scheduler 4/5
Date: Fri, 11 Oct 2002 20:01:39 +0200

Ooops, this went out empty. It's so simple, anyway. Sorry...

On Friday 11 October 2002 19:59, Erich Focht wrote:
> And here comes the fourth part...
>
> > 04-alloc_on_homenode.patch :
> >        Coupling with the memory allocator: for user tasks allocate memory
> >        from the homenode, no matter on which node the task is scheduled.

Erich

[-- Attachment #2: 04-alloc_on_homenode.patch --]
[-- Type: text/x-diff, Size: 655 bytes --]

diff -urNp 2.5.39-disc-na/include/linux/gfp.h 2.5.39-disc-nac/include/linux/gfp.h
--- 2.5.39-disc-na/include/linux/gfp.h	Fri Sep 27 23:49:16 2002
+++ 2.5.39-disc-nac/include/linux/gfp.h	Tue Oct  8 16:16:04 2002
@@ -51,9 +51,13 @@ extern struct page * alloc_pages_node(in
  */
 static inline struct page * alloc_pages(unsigned int gfp_mask, unsigned int order)
 {
-	pg_data_t *pgdat = NODE_DATA(numa_node_id());
+	pg_data_t *pgdat;
 	unsigned int idx = (gfp_mask & GFP_ZONEMASK);
 
+	if (current->active_mm == &init_mm)
+		pgdat = NODE_DATA(numa_node_id());
+	else
+		pgdat = NODE_DATA(current->node);
 	if (unlikely(order >= MAX_ORDER))
 		return NULL;
 

                 reply	other threads:[~2002-10-14 11:06 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=200210141309.50652.efocht@ess.nec.de \
    --to=efocht@ess.nec.de \
    --cc=linux-kernel@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;
as well as URLs for NNTP newsgroup(s).