首页 > 代码库 > Linux系统限制CPU工作频率

Linux系统限制CPU工作频率

1.安装sysfsutils软件包。

2.修改/etc/sysfs.conf,并添加以下内容

devices/system/cpu/cpu0/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu1/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu2/cpufreq/scaling_governor = powersave
devices/system/cpu/cpu3/cpufreq/scaling_governor = powersave

devices/system/cpu/cpu0/cpufreq/scaling_max_freq = 1000000
devices/system/cpu/cpu1/cpufreq/scaling_max_freq = 1000000
devices/system/cpu/cpu2/cpufreq/scaling_max_freq = 1000000
devices/system/cpu/cpu3/cpufreq/scaling_max_freq = 1000000

 

Linux系统限制CPU工作频率