• P
    sched: Change NODE sched_domain group creation · cd4ea6ae
    Peter Zijlstra 提交于
    The NODE sched_domain is 'special' in that it allocates sched_groups
    per CPU, instead of sharing the sched_groups between all CPUs.
    
    While this might have some benefits on large NUMA and avoid remote
    memory accesses when iterating the sched_groups, this does break
    current code that assumes sched_groups are shared between all
    sched_domains (since the dynamic cpu_power patches).
    
    So refactor the NODE groups to behave like all other groups.
    
    (The ALLNODES domain again shared its groups across the CPUs for some
    reason).
    
    If someone does measure a performance decrease due to this change we
    need to revisit this and come up with another way to have both dynamic
    cpu_power and NUMA work nice together.
    Signed-off-by: NPeter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: Mike Galbraith <efault@gmx.de>
    Cc: Nick Piggin <npiggin@kernel.dk>
    Cc: Linus Torvalds <torvalds@linux-foundation.org>
    Cc: Andrew Morton <akpm@linux-foundation.org>
    Link: http://lkml.kernel.org/r/20110407122941.978111700@chello.nlSigned-off-by: NIngo Molnar <mingo@elte.hu>
    cd4ea6ae
sched.c 223.2 KB