Advertisement
para_bellum

cpu perf

Sep 30th, 2015
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.35 KB | None | 0 0
  1. cpu_ondemand.sh:
  2. #!/bin/bash
  3.  
  4. for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
  5. do
  6.     if [ -f $CPUFREQ ]
  7.     then
  8.         echo -n ondemand > $CPUFREQ
  9.     fi
  10. done
  11.  
  12. cpu_perf.sh:
  13. #!/bin/bash
  14.  
  15. for CPUFREQ in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
  16. do
  17.     if [ -f $CPUFREQ ]
  18.     then
  19.         echo -n performance > $CPUFREQ
  20.     fi
  21. done
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement