summaryrefslogtreecommitdiffstats
path: root/kernel/sched/sched-pelt.h
diff options
context:
space:
mode:
authorPeter Zijlstra <peterz@infradead.org>2017-04-10 13:20:45 +0200
committerIngo Molnar <mingo@kernel.org>2017-04-14 10:26:36 +0200
commitbb0bd044e65c2bf0f26b29613fcc441dfdeedf14 (patch)
tree1248b06e789e378c26652059d9efeda6951085c8 /kernel/sched/sched-pelt.h
parent3841cdc31099fe3b84c93903c63e3d60348c0ea1 (diff)
downloadlinux-bb0bd044e65c2bf0f26b29613fcc441dfdeedf14.tar.bz2
sched/fair: Increase PELT accuracy for small tasks
We truncate (and loose) the lower 10 bits of runtime in ___update_load_avg(), this means there's a consistent bias to under-account tasks. This is esp. significant for small tasks. Cure this by only forwarding last_update_time to the point we've actually accounted for, leaving the remainder for the next time. Reported-by: Morten Rasmussen <morten.rasmussen@arm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Acked-by: Morten Rasmussen <morten.rasmussen@arm.com> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: linux-kernel@vger.kernel.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'kernel/sched/sched-pelt.h')
0 files changed, 0 insertions, 0 deletions