performance.sh 321 Bytes
#!/bin/bash

# Run this script as root to set the processors to performance

# set all processor to performance
ncpu=`cat /proc/cpuinfo | grep processor | cut -d':' -f 2 | tail -1`
for i in `seq 0 $ncpu`
do
#cpufreq-set -g performance -c $i
echo performance > /sys/devices/system/cpu/cpu$i/cpufreq/scaling_governor
done