From: Nick Piggin Date: Sat, 25 Jun 2005 21:57:12 +0000 (-0700) Subject: [PATCH] sched: less aggressive idle balancing X-Git-Tag: Ubuntu-5.2.0-15.16~57971^2~205 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=99b61ccf0bf0e9a85823d39a5db6a1519caeb13d;p=mirror_ubuntu-eoan-kernel.git [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: Nick Piggin Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/sched.c b/kernel/sched.c index 8b035a8b3c30..f665de34ed82 100644 --- a/kernel/sched.c +++ b/kernel/sched.c @@ -1877,15 +1877,9 @@ nextgroup: /* Get rid of the scaling factor, rounding down as we divide */ *imbalance = *imbalance / SCHED_LOAD_SCALE; - return busiest; out_balanced: - if (busiest && (idle == NEWLY_IDLE || - (idle == SCHED_IDLE && max_load > SCHED_LOAD_SCALE)) ) { - *imbalance = 1; - return busiest; - } *imbalance = 0; return NULL;