Commit 99b61ccf authored by Nick Piggin's avatar Nick Piggin Committed by Linus Torvalds

[PATCH] sched: less aggressive idle balancing

Remove the special casing for idle CPU balancing.  Things like this are
hurting for example on SMT, where are single sibling being idle doesn't really
warrant a really aggressive pull over the NUMA domain, for example.
Signed-off-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 db935dbd
...@@ -1877,15 +1877,9 @@ find_busiest_group(struct sched_domain *sd, int this_cpu, ...@@ -1877,15 +1877,9 @@ find_busiest_group(struct sched_domain *sd, int this_cpu,
/* Get rid of the scaling factor, rounding down as we divide */ /* Get rid of the scaling factor, rounding down as we divide */
*imbalance = *imbalance / SCHED_LOAD_SCALE; *imbalance = *imbalance / SCHED_LOAD_SCALE;
return busiest; return busiest;
out_balanced: out_balanced:
if (busiest && (idle == NEWLY_IDLE ||
(idle == SCHED_IDLE && max_load > SCHED_LOAD_SCALE)) ) {
*imbalance = 1;
return busiest;
}
*imbalance = 0; *imbalance = 0;
return NULL; return NULL;
......
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