Commit ce164428 authored by Christoph Lameter's avatar Christoph Lameter Committed by Linus Torvalds

[PATCH] scheduler: NUMA aware placement of sched_group_allnodes

When the per cpu sched domains are build then they also need to be placed
on the node where the cpu resides otherwise we will have frequent off node
accesses which will slow down the system.
Signed-off-by: default avatarChristoph Lameter <clameter@sgi.com>
Acked-by: default avatarIngo Molnar <mingo@elte.hu>
Acked-by: default avatarNick Piggin <nickpiggin@yahoo.com.au>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 0feaece9
...@@ -6349,9 +6349,10 @@ static int build_sched_domains(const cpumask_t *cpu_map) ...@@ -6349,9 +6349,10 @@ static int build_sched_domains(const cpumask_t *cpu_map)
> SD_NODES_PER_DOMAIN*cpus_weight(nodemask)) { > SD_NODES_PER_DOMAIN*cpus_weight(nodemask)) {
if (!sched_group_allnodes) { if (!sched_group_allnodes) {
sched_group_allnodes sched_group_allnodes
= kmalloc(sizeof(struct sched_group) = kmalloc_node(sizeof(struct sched_group)
* MAX_NUMNODES, * MAX_NUMNODES,
GFP_KERNEL); GFP_KERNEL,
cpu_to_node(i));
if (!sched_group_allnodes) { if (!sched_group_allnodes) {
printk(KERN_WARNING printk(KERN_WARNING
"Can not alloc allnodes sched group\n"); "Can not alloc allnodes sched group\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment