Commit a8c1b901 authored by Andrew McNab's avatar Andrew McNab
Browse files

Add (re)set to ondemand freq governor

parent a615920b
...@@ -42,10 +42,7 @@ start() { ...@@ -42,10 +42,7 @@ start() {
# Try to use full CPU speed for benchmarking # Try to use full CPU speed for benchmarking
modprobe acpi-cpufreq modprobe acpi-cpufreq
for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor ; do echo performance > $i ; done
do
echo performance > $i
done
# Get the total benchmark for this machine, assuming $total_cpu jobslots # Get the total benchmark for this machine, assuming $total_cpu jobslots
db12_sum=`/usr/sbin/DIRACbenchmark.py --iterations=$iterations --extra-iteration $total_cpu | head -1 | cut -f2 -d' '` db12_sum=`/usr/sbin/DIRACbenchmark.py --iterations=$iterations --extra-iteration $total_cpu | head -1 | cut -f2 -d' '`
...@@ -54,6 +51,9 @@ start() { ...@@ -54,6 +51,9 @@ start() {
echo "$db12_sum" > /etc/db12/db12 echo "$db12_sum" > /etc/db12/db12
fi fi
# Set the governor to ondemand, in case run outside the SysV boot and not followed by cpuspeed
for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor ; do echo ondemand > $i ; done
echo_success echo_success
echo echo
return 0 return 0
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment