]> git.baikalelectronics.ru Git - kernel.git/commit
sched/nohz: Run NOHZ idle load balancer on HK_FLAG_MISC CPUs
authorNicholas Piggin <npiggin@gmail.com>
Fri, 12 Apr 2019 04:26:13 +0000 (14:26 +1000)
committerIngo Molnar <mingo@kernel.org>
Mon, 29 Apr 2019 06:27:03 +0000 (08:27 +0200)
commitc57a01e6f89cd420027a8a7d430092ce18013528
treee7f8828759e3a56d22c1b6a0e2a969a184c31c41
parent1af4f120618440479e967a4e366530cba6dbd7a4
sched/nohz: Run NOHZ idle load balancer on HK_FLAG_MISC CPUs

The NOHZ idle balancer runs on the lowest idle CPU. This can
interfere with isolated CPUs, so confine it to HK_FLAG_MISC
housekeeping CPUs.

HK_FLAG_SCHED is not used for this because it is not set anywhere
at the moment. This could be folded into HK_FLAG_SCHED once that
option is fixed.

The problem was observed with increased jitter on an application
running on CPU0, caused by NOHZ idle load balancing being run on
CPU1 (an SMT sibling).

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: https://lkml.kernel.org/r/20190412042613.28930-1-npiggin@gmail.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
kernel/sched/fair.c