aboutsummaryrefslogtreecommitdiff
path: root/crosperf/suite_runner.py
diff options
context:
space:
mode:
authorManoj Gupta <manojgupta@google.com>2019-05-28 10:34:44 -0700
committerManoj Gupta <manojgupta@chromium.org>2019-05-28 23:03:17 +0000
commit67478b3e2e67bb6d2a566a5d4fb5e253ed879213 (patch)
tree038c37ac8297528a9de7d0054a207ab4bf189385 /crosperf/suite_runner.py
parent885d08a929b803d9245d71fc6fdb776b31e349f6 (diff)
downloadtoolchain-utils-67478b3e2e67bb6d2a566a5d4fb5e253ed879213.tar.gz
crosperf: Stop setting cpu governor.
Performance governor makes data noisy for high-end machines while powersave makes speedometer2 timeout. Let's try with the defaults for now and decide a better strategy later. BUG=chromium:966514 TEST=unit tests pass. Change-Id: I12e0f1ce7a0eed52f07cd3e1272d4280b93ef3b0 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/toolchain-utils/+/1632422 Tested-by: Manoj Gupta <manojgupta@chromium.org> Legacy-Commit-Queue: Commit Bot <commit-bot@chromium.org> Reviewed-by: George Burgess <gbiv@chromium.org> Commit-Queue: Manoj Gupta <manojgupta@chromium.org>
Diffstat (limited to 'crosperf/suite_runner.py')
-rw-r--r--crosperf/suite_runner.py20
1 files changed, 12 insertions, 8 deletions
diff --git a/crosperf/suite_runner.py b/crosperf/suite_runner.py
index 46610f01..b195d2cc 100644
--- a/crosperf/suite_runner.py
+++ b/crosperf/suite_runner.py
@@ -108,21 +108,22 @@ class SuiteRunner(object):
"""
# pyformat: disable
set_cpu_freq = (
- 'set -e && '
# Disable Turbo in Intel pstate driver
'if [[ -e /sys/devices/system/cpu/intel_pstate/no_turbo ]]; then '
' if grep -q 0 /sys/devices/system/cpu/intel_pstate/no_turbo; then '
' echo -n 1 > /sys/devices/system/cpu/intel_pstate/no_turbo; '
' fi; '
'fi; '
- # Set governor to powersave for each cpu.
- 'for f in /sys/devices/system/cpu/cpu*/cpufreq; do '
+ # Uncomment the following lines to set governor to powersave for each
+ # cpu. Also uncomment the 'done' at end.
+ # 'for f in /sys/devices/system/cpu/cpu*/cpufreq; do '
# Skip writing scaling_governor if cpu is not online.
- '[[ -e ${f/cpufreq/online} ]] && grep -q 0 ${f/cpufreq/online} '
- '&& continue; '
+ # '[[ -e ${f/cpufreq/online} ]] && grep -q 0 ${f/cpufreq/online} '
+ # '&& continue; '
# The cpu is online, can update.
- 'cd $f; '
- 'echo powersave > scaling_governor; '
+ # 'cd $f; '
+ # 'echo powersave > scaling_governor; '
+ #
# Uncomment rest of lines to enable setting frequency by crosperf.
# It sets the cpu to the second highest supported frequency.
#'val=0; '
@@ -138,7 +139,10 @@ class SuiteRunner(object):
#'fi ;'
#'echo $highest > scaling_max_freq; '
#'echo $highest > scaling_min_freq; '
- 'done')
+ #
+ # Uncomment to enable the loop for CPU governor settings.
+ # 'done'
+ )
# pyformat: enable
if self.log_level == 'average':
self.logger.LogOutput(