* [PATCH] CPUs on memoryless nodes not being reassigned
@ 2008-03-26 12:44 Daniel Yeisley
2008-03-26 13:10 ` Ingo Molnar
0 siblings, 1 reply; 3+ messages in thread
From: Daniel Yeisley @ 2008-03-26 12:44 UTC (permalink / raw)
To: linux-kernel; +Cc: ak
When I boot with memoryless nodes on the latest 2.6.25-rc kernels, the
CPUs aren't being reassigned to nodes with memory.
Signed-off-by: Dan Yeisley <dan.yeisley@unisys.com>
---
diff -Nuar linux-2.6.25-rc6/arch/x86/kernel/setup_64.c linux-2.6.25-rc6-new/arch/x86/kernel/setup_64.c
--- linux-2.6.25-rc6/arch/x86/kernel/setup_64.c 2008-03-16 19:32:14.000000000 -0400
+++ linux-2.6.25-rc6-new/arch/x86/kernel/setup_64.c 2008-03-25 09:52:15.000000000 -0400
@@ -801,7 +801,7 @@
/* Don't do the funky fallback heuristics the AMD version employs
for now. */
node = apicid_to_node[apicid];
- if (node == NUMA_NO_NODE)
+ if (node == NUMA_NO_NODE || !node_online(node))
node = first_node(node_online_map);
numa_set_node(cpu, node);
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] CPUs on memoryless nodes not being reassigned
2008-03-26 12:44 [PATCH] CPUs on memoryless nodes not being reassigned Daniel Yeisley
@ 2008-03-26 13:10 ` Ingo Molnar
2008-03-26 17:57 ` Yeisley, Dan P.
0 siblings, 1 reply; 3+ messages in thread
From: Ingo Molnar @ 2008-03-26 13:10 UTC (permalink / raw)
To: Daniel Yeisley; +Cc: linux-kernel, ak, Yinghai Lu
* Daniel Yeisley <dan.yeisley@unisys.com> wrote:
> When I boot with memoryless nodes on the latest 2.6.25-rc kernels, the
> CPUs aren't being reassigned to nodes with memory.
> node = apicid_to_node[apicid];
> - if (node == NUMA_NO_NODE)
> + if (node == NUMA_NO_NODE || !node_online(node))
> node = first_node(node_online_map);
that's already fixed in x86.git/latest, by Yinghai Lu, could you try it:
http://people.redhat.com/mingo/x86.git/README
(let me know if there's any other problem with your hardware on
x86.git/latest.)
Ingo
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: [PATCH] CPUs on memoryless nodes not being reassigned
2008-03-26 13:10 ` Ingo Molnar
@ 2008-03-26 17:57 ` Yeisley, Dan P.
0 siblings, 0 replies; 3+ messages in thread
From: Yeisley, Dan P. @ 2008-03-26 17:57 UTC (permalink / raw)
To: Ingo Molnar; +Cc: linux-kernel, ak, Yinghai Lu
> -----Original Message-----
> From: Ingo Molnar [mailto:mingo@elte.hu]
> Sent: Wednesday, March 26, 2008 9:10
> To: Yeisley, Dan P.
> Cc: linux-kernel@vger.kernel.org; ak@suse.de; Yinghai Lu
> Subject: Re: [PATCH] CPUs on memoryless nodes not being reassigned
>
>
> * Daniel Yeisley <dan.yeisley@unisys.com> wrote:
>
> > When I boot with memoryless nodes on the latest 2.6.25-rc kernels,
the
> > CPUs aren't being reassigned to nodes with memory.
>
> > node = apicid_to_node[apicid];
> > - if (node == NUMA_NO_NODE)
> > + if (node == NUMA_NO_NODE || !node_online(node))
> > node = first_node(node_online_map);
>
> that's already fixed in x86.git/latest, by Yinghai Lu, could you try
it:
>
> http://people.redhat.com/mingo/x86.git/README
>
> (let me know if there's any other problem with your hardware on
> x86.git/latest.)
>
> Ingo
I tried the x86.git/latest and it worked.
Dan
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2008-03-26 17:58 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-26 12:44 [PATCH] CPUs on memoryless nodes not being reassigned Daniel Yeisley
2008-03-26 13:10 ` Ingo Molnar
2008-03-26 17:57 ` Yeisley, Dan P.
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.