RE: [sched/numa] 6499b1b2dd: phoronix-test-suite.aom-av1.0.frames_per_second -25.0% regression

From: Sang, Oliver
Date: Fri Mar 06 2020 - 09:22:35 EST


> -----Original Message-----
> From: Hillf Danton <hdanton@xxxxxxxx>
> Sent: Friday, March 6, 2020 3:28 PM
> To: Sang, Oliver <oliver.sang@xxxxxxxxx>
> Cc: Vincent Guittot <vincent.guittot@xxxxxxxxxx>; Ingo Molnar
> <mingo@xxxxxxxxxx>; Mel Gorman <mgorman@xxxxxxxxxxxxxxxxxxx>; Peter
> Zijlstra <a.p.zijlstra@xxxxxxxxx>; Juri Lelli <juri.lelli@xxxxxxxxxx>; Valentin
> Schneider <valentin.schneider@xxxxxxx>; Phil Auld <pauld@xxxxxxxxxx>; Hillf
> Danton <hdanton@xxxxxxxx>; LKML <linux-kernel@xxxxxxxxxxxxxxx>; Andrew
> Morton <akpm@xxxxxxxxxxxxxxxxxxxx>; Stephen Rothwell
> <sfr@xxxxxxxxxxxxxxxx>; lkp@xxxxxxxxxxxx
> Subject: Re: [sched/numa] 6499b1b2dd: phoronix-test-suite.aom-
> av1.0.frames_per_second -25.0% regression
>
>
> On Fri, 6 Mar 2020 10:35:51 +0800 from kernel test robot
> <oliver.sang@xxxxxxxxx>
> >
> > Greeting,
> >
> > FYI, we noticed a -25.0% regression of phoronix-test-suite.aom-
> av1.0.frames_per_second due to commit:
> >
> >
> > commit: 6499b1b2dd1b8d404a16b9fbbf1af6b9b3c1d83d ("sched/numa:
> Replace
> > runnable_load_avg by load_avg")
> > https://git.kernel.org/cgit/linux/kernel/git/next/linux-next.git
> > master
> >
> Hi Oliver
>
> Thanks for your report.
>
> It's fixed in fb86f5b21192 ("sched/numa: Use similar logic to the load balancer
> for moving between domains with spare capacity") and if you're curious, see the
> force of that cure using the following diff.
>
> Hillf

Thanks a lot for information!

> --
>
>
> --- a/kernel/sched/fair.c
> +++ b/kernel/sched/fair.c
> @@ -1594,11 +1594,6 @@ static bool load_too_imbalanced(long src
> long orig_src_load, orig_dst_load;
> long src_capacity, dst_capacity;
>
> -
> - /* If dst node has spare capacity, there is no real load imbalance */
> - if (env->dst_stats.node_type == node_has_spare)
> - return false;
> -
> /*
> * The load is corrected for the CPU capacity available on each node.
> *
> --