diff options
author | Vincent Guittot <[email protected]> | 2020-06-09 14:37:48 +0200 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2020-06-15 14:10:04 +0200 |
commit | 3ea2f097b17e13a8280f1f9386c331b326a3dbef (patch) | |
tree | 386b638bfb54cc3bcf63311ddf1915da7ee011d0 /scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h | |
parent | b4098bfc5efb1fd7ecf40165132a1283aeea3500 (diff) |
sched/fair: Fix NOHZ next idle balance
With commit:
'b7031a02ec75 ("sched/fair: Add NOHZ_STATS_KICK")'
rebalance_domains of the local cfs_rq happens before others idle cpus have
updated nohz.next_balance and its value is overwritten.
Move the update of nohz.next_balance for other idles cpus before balancing
and updating the next_balance of local cfs_rq.
Also, the nohz.next_balance is now updated only if all idle cpus got a
chance to rebalance their domains and the idle balance has not been aborted
because of new activities on the CPU. In case of need_resched, the idle
load balance will be kick the next jiffie in order to address remaining
ilb.
Fixes: b7031a02ec75 ("sched/fair: Add NOHZ_STATS_KICK")
Reported-by: Peng Liu <[email protected]>
Signed-off-by: Vincent Guittot <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Valentin Schneider <[email protected]>
Acked-by: Mel Gorman <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gcc-plugins/gcc-generate-simple_ipa-pass.h')
0 files changed, 0 insertions, 0 deletions