[go: up one dir, main page]

|
|
Log in / Subscribe / Register

no aggressive idle balancing

From:  Nick Piggin <nickpiggin@yahoo.com.au>
To:  Andrew Morton <akpm@osdl.org>
Subject:  [PATCH 6/13] no aggressive idle balancing
Date:  Thu, 24 Feb 2005 18:21:40 +1100
Cc:  linux-kernel@vger.kernel.org


6/13


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 <nickpiggin@yahoo.com.au>

Index: linux-2.6/kernel/sched.c
===================================================================
--- linux-2.6.orig/kernel/sched.c	2005-02-24 17:31:43.537742489 +1100
+++ linux-2.6/kernel/sched.c	2005-02-24 17:43:38.340504724 +1100
@@ -1875,15 +1875,9 @@
 
 	/* 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;



Copyright © 2005, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds