diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-02-02 14:13:42 +0100 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2018-02-02 14:13:42 +0100 |
commit | 4058de5c9e4df5dc6e94b5dc1418fd4901aa6520 (patch) | |
tree | 4c4d1edec2b7034355b807a7b09c32d40c542dd8 /run.sh | |
parent | hacl perf (diff) | |
download | kbench9000-4058de5c9e4df5dc6e94b5dc1418fd4901aa6520.tar.xz kbench9000-4058de5c9e4df5dc6e94b5dc1418fd4901aa6520.zip |
Give sane measurements
Diffstat (limited to 'run.sh')
-rwxr-xr-x | run.sh | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -8,9 +8,15 @@ nob_cpus() { done } +noturbo() { + echo "[+] Setting no-turbo to status $1" + echo "$1" > /sys/devices/system/cpu/intel_pstate/no_turbo +} + [[ -e kbench9000.ko ]] -trap "nob_cpus 1" INT TERM EXIT +trap "nob_cpus 1; noturbo 0;" INT TERM EXIT +noturbo 1 nob_cpus 0 echo "[+] Inserting module to run tests" |