-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrun-std.sh
More file actions
executable file
·19 lines (17 loc) · 945 Bytes
/
run-std.sh
File metadata and controls
executable file
·19 lines (17 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
## Check if we have root permissions
if [ "`id -u`" != "0" ]; then
echo "ERROR: Need to be root to run this script! Use 'sudo' command."
exit
fi
echo performance > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
echo performance > /sys/devices/system/cpu/cpufreq/policy1/scaling_governor
echo performance > /sys/devices/system/cpu/cpufreq/policy2/scaling_governor
echo performance > /sys/devices/system/cpu/cpufreq/policy3/scaling_governor
sleep 1
## ./main-std pairs send_period_usec recv_period_usec max_exec_time_usec interconnect_task_usec duration_sec
./main-std 4 10000 10000 5000 1000 30
echo powersave > /sys/devices/system/cpu/cpufreq/policy0/scaling_governor
echo powersave > /sys/devices/system/cpu/cpufreq/policy1/scaling_governor
echo powersave > /sys/devices/system/cpu/cpufreq/policy2/scaling_governor
echo powersave > /sys/devices/system/cpu/cpufreq/policy3/scaling_governor