Blame view

performance.sh 321 Bytes
3a370415a   William Daniau   Added a script to...
1
2
3
4
5
6
7
8
9
10
11
  #!/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