From: Andrew Morton <akpm@linux-foundation.org>
To: Nikanth Karthikesan <knikanth@suse.de>
Cc: linux-kernel@vger.kernel.org, x86@kernel.org,
Yinghai Lu <yinghai@kernel.org>, Ingo Molnar <mingo@elte.hu>,
"H. Peter Anvin" <hpa@zytor.com>,
Thomas Gleixner <tglx@linutronix.de>
Subject: Re: [PATCH] Assign CPUs to nodes in round-robin manner on Fake NUMA.
Date: Thu, 7 Oct 2010 00:42:52 -0700 [thread overview]
Message-ID: <20101007004252.599b6888.akpm@linux-foundation.org> (raw)
In-Reply-To: <201009301734.10787.knikanth@suse.de>
On Thu, 30 Sep 2010 17:34:10 +0530 Nikanth Karthikesan <knikanth@suse.de> wrote:
> Assign CPUs to nodes in round-robin manner on Fake NUMA.
>
> commit d9c2d5ac6af87b4491bff107113aaf16f6c2b2d9
> "x86, numa: Use near(er) online node instead of roundrobin for NUMA"
> changed NUMA initialization on Intel to choose the nearest online node or
> first node. Fake NUMA would be better of with round-robin initialization,
> instead of the all CPUS on first node. Change the choice of first node, back
> to round-robin.
>
Why would fake NUMA "be better off with round-robin initialization"?
>
> ---
>
> diff --git a/arch/x86/kernel/cpu/intel.c b/arch/x86/kernel/cpu/intel.c
> index 85f69cd..47dd171 100644
> --- a/arch/x86/kernel/cpu/intel.c
> +++ b/arch/x86/kernel/cpu/intel.c
> @@ -283,9 +283,7 @@ static void __cpuinit srat_detect_node(struct cpuinfo_x86 *c)
> /* Don't do the funky fallback heuristics the AMD version employs
> for now. */
> node = apicid_to_node[apicid];
> - if (node == NUMA_NO_NODE)
> - node = first_node(node_online_map);
> - else if (!node_online(node)) {
> + if (node == NUMA_NO_NODE || !node_online(node)) {
> /* reuse the value from init_cpu_to_node() */
> node = cpu_to_node(cpu);
> }
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2010-10-07 7:42 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-09-30 12:04 [PATCH] Assign CPUs to nodes in round-robin manner on Fake NUMA Nikanth Karthikesan
2010-10-07 7:42 ` Andrew Morton [this message]
2010-10-08 5:53 ` Nikanth Karthikesan
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=20101007004252.599b6888.akpm@linux-foundation.org \
--to=akpm@linux-foundation.org \
--cc=hpa@zytor.com \
--cc=knikanth@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=tglx@linutronix.de \
--cc=x86@kernel.org \
--cc=yinghai@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.