sched: Fix idle balancing
authorNikhil Rao <[email protected]>
Wed, 17 Nov 2010 19:42:04 +0000 (11:42 -0800)
committerIngo Molnar <[email protected]>
Thu, 18 Nov 2010 12:12:33 +0000 (13:12 +0100)
An earlier commit reverts idle balancing throttling reset to fix a 30%
regression in volanomark throughput. We still need to reset idle_stamp
when we pull a task in newidle balance.

Reported-by: Alex Shi <[email protected]>
Signed-off-by: Nikhil Rao <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
LKML-Reference: <1290022924[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
kernel/sched_fair.c

index ba0556dc7c068ef596891f112494b08183ddd820..00ebd7686676bd87a6e5b3be513d27028e518796 100644 (file)
@@ -3215,8 +3215,10 @@ static void idle_balance(int this_cpu, struct rq *this_rq)
                interval = msecs_to_jiffies(sd->balance_interval);
                if (time_after(next_balance, sd->last_balance + interval))
                        next_balance = sd->last_balance + interval;
-               if (pulled_task)
+               if (pulled_task) {
+                       this_rq->idle_stamp = 0;
                        break;
+               }
        }
 
        raw_spin_lock(&this_rq->lock);