Please sign in to comment.
sched/nohz: Fix rq->cpu_load calculations some more
commit 5aaa0b7 upstream. Follow up on commit 556061b ("sched/nohz: Fix rq->cpu_load calculations") since while that fixed the busy case it regressed the mostly idle case. Add a callback from the nohz exit to also age the rq->cpu_load array. This closes the hole where either there was no nohz load balance pass during the nohz, or there was a 'significant' amount of idle time between the last nohz balance and the nohz exit. So we'll update unconditionally from the tick to not insert any accidental 0 load periods while busy, and we try and catch up from nohz idle balance and nohz exit. Both these are still prone to missing a jiffy, but that has always been the case. Signed-off-by: Peter Zijlstra <firstname.lastname@example.org> Cc: email@example.com Cc: Venkatesh Pallipadi <firstname.lastname@example.org> Link: http://email@example.com Signed-off-by: Ingo Molnar <firstname.lastname@example.org> [bwh: Backported to 3.2: adjust filenames and context] Signed-off-by: Ben Hutchings <email@example.com>
- Loading branch information...
Showing with 45 additions and 10 deletions.