Skip to content

Commit 834b2e8

Browse files
committed
[perf] - scripts to control linux performance for benchmarking
1 parent b75ccb3 commit 834b2e8

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
#!/bin/bash
2+
3+
# This assumes intel processors!!
4+
5+
# Intel
6+
echo 1 > /sys/devices/system/cpu/intel_pstate/no_turbo
7+
# AMD
8+
# echo 0 > /sys/devices/system/cpu/cpufreq/boost
9+
10+
for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
11+
do
12+
echo performance > $i
13+
done
14+
15+
echo 0 > /proc/sys/kernel/randomize_va_space
16+

0 commit comments

Comments
 (0)