OSDN Git Service

sched/numa: Use runnable_avg to classify node
authorVincent Guittot <vincent.guittot@linaro.org>
Mon, 21 Sep 2020 07:29:59 +0000 (09:29 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Fri, 25 Sep 2020 12:23:24 +0000 (14:23 +0200)
commit8e0e0eda6a13e242239799263cc354796c05434a
tree4fc5dcada62ffe4590da7a666e207054f0f67151
parent848785df48835eefebe0c4eb5da7690690b0a8b7
sched/numa: Use runnable_avg to classify node

Use runnable_avg to classify numa node state similarly to what is done for
normal load balancer. This helps to ensure that numa and normal balancers
use the same view of the state of the system.

Large arm64system: 2 nodes / 224 CPUs:

  hackbench -l (256000/#grp) -g #grp

  grp    tip/sched/core         +patchset              improvement
  1      14,008(+/- 4,99 %)     13,800(+/- 3.88 %)     1,48 %
  4       4,340(+/- 5.35 %)      4.283(+/- 4.85 %)     1,33 %
  16      3,357(+/- 0.55 %)      3.359(+/- 0.54 %)    -0,06 %
  32      3,050(+/- 0.94 %)      3.039(+/- 1,06 %)     0,38 %
  64      2.968(+/- 1,85 %)      3.006(+/- 2.92 %)    -1.27 %
  128     3,290(+/-12.61 %)      3,108(+/- 5.97 %)     5.51 %
  256     3.235(+/- 3.95 %)      3,188(+/- 2.83 %)     1.45 %

Signed-off-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Mel Gorman <mgorman@suse.de>
Link: https://lkml.kernel.org/r/20200921072959.16317-1-vincent.guittot@linaro.org
kernel/sched/fair.c