Skip to content
  • Suresh Siddha's avatar
    [PATCH] sched: remove degenerate domains · 245af2c7
    Suresh Siddha authored
    
    
    Remove degenerate scheduler domains during the sched-domain init.
    
    For example on x86_64, we always have NUMA configured in.  On Intel EM64T
    systems, top most sched domain will be of NUMA and with only one sched_group
    in it.
    
    With fork/exec balances(recent Nick's fixes in -mm tree), we always endup
    taking wrong decisions because of this topmost domain (as it contains only one
    group and find_idlest_group always returns NULL).  We will endup loading HT
    package completely first, letting active load balance kickin and correct it.
    
    In general, this patch also makes sense with out recent Nick's fixes in -mm.
    
    From: Nick Piggin <nickpiggin@yahoo.com.au>
    
    Modified to account for more than just sched_groups when scanning for
    degenerate domains by Nick Piggin.  And allow a runqueue's sd to go NULL
    rather than keep a single degenerate domain around (this happens when you run
    with maxcpus=1).
    
    Signed-off-by: default avatarSuresh Siddha <suresh.b.siddha@intel.com>
    Signed-off-by: default avatarNick Piggin <nickpiggin@yahoo.com.au>
    Acked-by: default avatarIngo Molnar <mingo@elte.hu>
    Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
    Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
    245af2c7