]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
sched: Fix nohz load accounting -- again!
authorPeter Zijlstra <peterz@infradead.org>
Thu, 1 Mar 2012 14:04:46 +0000 (15:04 +0100)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 11 May 2012 12:14:49 +0000 (13:14 +0100)
commit5e2d50da11f0e6ec3ce8fe658d7c83b0b4346c68
tree338032331134f5d097e47360421fb8568919905c
parentcab35eb95d74609cd26ad8a2084659ec4a65fe12
sched: Fix nohz load accounting -- again!

commit c308b56b5398779cd3da0f62ab26b0453494c3d4 upstream.

Various people reported nohz load tracking still being wrecked, but Doug
spotted the actual problem. We fold the nohz remainder in too soon,
causing us to loose samples and under-account.

So instead of playing catch-up up-front, always do a single load-fold
with whatever state we encounter and only then fold the nohz remainder
and play catch-up.

Reported-by: Doug Smythies <dsmythies@telus.net>
Reported-by: LesÃ…=82aw Kope=C4=87 <leslaw.kopec@nasza-klasa.pl>
Reported-by: Aman Gupta <aman@tmm1.net>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/n/tip-4v31etnhgg9kwd6ocgx3rxl8@git.kernel.org
Signed-off-by: Ingo Molnar <mingo@elte.hu>
[bwh: Backported to 3.2: change filename]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
kernel/sched.c