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

Try to use performance cpufreq governor before benchmark

parent d22ca0d6
VERSION=00.17
VERSION=00.18
......@@ -2,7 +2,7 @@
#
# db12 Run DB12 fast benchmark and create /etc/db12 files
#
# chkconfig: 345 14 86
# chkconfig: 345 01 99
# description: Run DB12 fast benchmark and create /etc/db12 files
# Source function library.
......@@ -39,7 +39,15 @@ start() {
# Plymouth boot up splash screen uses lots of CPU!
plymouth hide-splash
fi
# Try to use full CPU speed for benchmarking
modprobe acpi-cpufreq
for i in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
do
echo performance > $i
done
# 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' '`
if [ "$db12_sum" != "" ] ; then
......
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