Re: [performance regression, bisected] scheduler:should_we_balance() kills filesystem performance

From: Peter Zijlstra
Date: Tue Sep 10 2013 - 04:06:49 EST


On Tue, Sep 10, 2013 at 01:47:59PM +0900, Joonsoo Kim wrote:
> diff --git a/kernel/sched/fair.c b/kernel/sched/fair.c
> index 7f0a5e6..9b3fe1c 100644
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -5151,7 +5151,7 @@ static int should_we_balance(struct lb_env *env)
> * First idle cpu or the first cpu(busiest) in this sched group
> * is eligible for doing load balancing at this and above domains.
> */
> - return balance_cpu != env->dst_cpu;
> + return balance_cpu == env->dst_cpu;
> }

Duh.. /me kicks himself for not seeing that.

Thanks!
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/