Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can I change cpu frequency manually using sysfs & CPUFREQ subsystem?

Tags:

linux-kernel

I don't have cpufreq-info/set, utility, How can I change cpu frequency manually using sysfs & CPUFREQ ?

like image 393
BonosF Avatar asked Feb 16 '10 07:02

BonosF


1 Answers

According to this:

If you are using the userspace governor, you can write to /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed to change the current speed.

# echo 700000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed 
# cat /proc/cpuinfo 
cpu MHz  : 697.252 
# echo 900000 > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed 
# cat /proc/cpuinfo 
cpu MHz  : 976.152 

To enable userspace governor you must write userspace into /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor:

# echo userspace > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
like image 120
werewindle Avatar answered Oct 12 '22 09:10

werewindle