diff options
| author | Arjan van de Ven <[email protected]> | 2010-05-24 14:32:59 -0700 |
|---|---|---|
| committer | Linus Torvalds <[email protected]> | 2010-05-25 08:07:02 -0700 |
| commit | 1f85f87d4f81d1e5a2d502d48316a1bdc5acac0b (patch) | |
| tree | ef9254e52665274ae4d0fd1381cc2ae5a48791f6 /tools/perf/scripts/python/syscall-counts-by-pid.py | |
| parent | 6cdafaae41d52e6ef9a5c5be23602ef083e4d0f9 (diff) | |
cpuidle: add a repeating pattern detector to the menu governor
Currently, the menu governor uses the (corrected) next timer as key item
for predicting the idle duration.
It turns out that there are specific cases where this breaks down: There
are cases where we have a very repetitive pattern of idle durations, where
the idle period is pretty much the same, for reasons completely unrelated
to the next timer event. Examples of such repeating patterns are network
loads with irq mitigation, the mouse moving but in theory also the wifi
beacons.
This patch adds a relatively simple detector for such repeating patterns,
where the standard deviation of the last 8 idle periods is compared to a
threshold.
With this extra predictor in place, measurements show that the DECAY
factor can now be increased (the decaying average will now decay slower)
to get an even more stable result.
[[email protected]: fix bug identified by Frank]
Signed-off-by: Arjan van de Ven <[email protected]>
Cc: Corrado Zoccolo <[email protected]>
Cc: Frank Rowand <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions