最新消息:阿啰哈,本人90后,目前单身,欢迎妹子们来撩!.(。→‿←。)

How can I disable CPU frequency scaling and set the system to performance?

My processor is running at 40% of its maximum speed, I want it to use 100% of the speed, all the time. I searched on Google but the tutorials are very old and they all differ.

So, how can I permanently disable CPU frequency scaling and set my system to performance mode?

Please, only terminal based solutions, I don't want applets.

I'm using Xubuntu 14.04 x64.

After struggling with ondemand for a while, I will share how to permanently disable it in Ubuntu and its derivates.

Install cpufrequtils:

sudo apt-get install cpufrequtils

Then edit the following file (if it doesn't exist, create it):

sudo vim /etc/default/cpufrequtils
And add the following line to it:
GOVERNOR="performance"
Save and exit.

Now you need to disable ondemand daemon, otherwise after you reboot the settings will be overwritten.

sudo update-rc.d ondemand disable

And you are done!

You can check your settings with:

cpufreq-info

It will show a block of information for every core your processor has. Just check if all of then are in performance mode, and at the maximum speed of your processor.

Update:
The Debian Wiki says that sysfsutils is necessary in order to maintain the settings across reboots, but that is untrue. Also, enabling sysfsutils make my system unstable, so it's not recommended.

Sources:
https://wiki.debian.org/HowTo/CpuFrequencyScaling
Disable "ondemand" CPU scaling daemon
CPU frequency scaling in Linux
How to CpuFrequencyScaling
CPU frequency scaling

Try this:

sudo cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
for GOVERNOR in /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor; do echo "performance" | sudo tee $GOVERNOR; done

Replace ondemand with performance. Repeat for every core (increase cpu0: cpu1, cpu2).

via: https://askubuntu.com/questions/523640/how-i-can-disable-cpu-frequency-scaling-and-set-the-system-to-performance

转载请注明:林志斌 » How can I disable CPU frequency scaling and set the system to performance?

发表评论
取消评论
表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址