OSDN Git Service

sched/fair: Add NOHZ balancer flag for nohz.next_balance updates
authorValentin Schneider <valentin.schneider@arm.com>
Mon, 23 Aug 2021 11:16:59 +0000 (12:16 +0100)
committerPeter Zijlstra <peterz@infradead.org>
Tue, 5 Oct 2021 13:51:30 +0000 (15:51 +0200)
commitefd984c481abb516fab8bafb25bf41fd9397a43c
tree456c643db81f5548a2d0395a234f5c5aee789db9
parent9e1ff307c779ce1f0f810c7ecce3d95bbae40896
sched/fair: Add NOHZ balancer flag for nohz.next_balance updates

A following patch will trigger NOHZ idle balances as a means to update
nohz.next_balance. Vincent noted that blocked load updates can have
non-negligible overhead, which should be avoided if the intent is to only
update nohz.next_balance.

Add a new NOHZ balance kick flag, NOHZ_NEXT_KICK. Gate NOHZ blocked load
update by the presence of NOHZ_STATS_KICK - currently all NOHZ balance
kicks will have the NOHZ_STATS_KICK flag set, so no change in behaviour is
expected.

Suggested-by: Vincent Guittot <vincent.guittot@linaro.org>
Signed-off-by: Valentin Schneider <valentin.schneider@arm.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Vincent Guittot <vincent.guittot@linaro.org>
Link: https://lkml.kernel.org/r/20210823111700.2842997-2-valentin.schneider@arm.com
kernel/sched/fair.c
kernel/sched/sched.h