diff options
| author | Peter Zijlstra <[email protected]> | 2012-06-22 13:52:09 +0000 |
|---|---|---|
| committer | Ingo Molnar <[email protected]> | 2012-07-05 18:58:13 +0000 |
| commit | 5167e8d5417bf5c322a703d2927daec727ea40dd (patch) | |
| tree | b919aac933c104e7c7abc1730da810f60ba3229d /tools/perf/util/trace-event-scripting.c | |
| parent | sched: Fix fork() error path to not crash (diff) | |
| download | kernel-5167e8d5417bf5c322a703d2927daec727ea40dd.tar.gz kernel-5167e8d5417bf5c322a703d2927daec727ea40dd.zip | |
sched/nohz: Rewrite and fix load-avg computation -- again
Thanks to Charles Wang for spotting the defects in the current code:
- If we go idle during the sample window -- after sampling, we get a
negative bias because we can negate our own sample.
- If we wake up during the sample window we get a positive bias
because we push the sample to a known active period.
So rewrite the entire nohz load-avg muck once again, now adding
copious documentation to the code.
Reported-and-tested-by: Doug Smythies <[email protected]>
Reported-and-tested-by: Charles Wang <[email protected]>
Signed-off-by: Peter Zijlstra <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Andrew Morton <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/1340373782.18025.74.camel@twins
[ minor edits ]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/util/trace-event-scripting.c')
0 files changed, 0 insertions, 0 deletions
