Howto change cpu governor permanently?

General support questions
Post Reply
Przemas
Posts: 58
Joined: 2015/07/22 11:32:28

Howto change cpu governor permanently?

Post by Przemas » 2017/03/25 19:59:25

I'm trying to switch to "performance" type of governor as I use Centos for my 3d work and I need every bit of performance I can squeeze, not worried about power saving much.
By default Centos is set to "powersave" governor. I've used to make the switch:

Code: Select all

echo performance | tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor
but the system reverts to "powersave" after reboot. Howto make those changes permanent?

User avatar
TrevorH
Forum Moderator
Posts: 31067
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Howto change cpu governor permanently?

Post by TrevorH » 2017/03/25 22:18:16

Try running tuned-adm list and also read man tuned-adm
CentOS 6 died in November 2020 - migrate to a new version!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Przemas
Posts: 58
Joined: 2015/07/22 11:32:28

Re: Howto change cpu governor permanently?

Post by Przemas » 2017/03/26 15:21:17

thx - how can I see available profiles for tuned-adm and what they do?
edit: ok, found RHEL help page about those.

edit: also it does not seem the most straightforward solution. It does a lot more than switching cpu governor. Any other ways to switch to performance cpu governor permanently?

tunk
Posts: 1014
Joined: 2017/02/22 15:08:17

Re: Howto change cpu governor permanently?

Post by tunk » 2017/03/27 11:27:08

Are there any bios settings?
Yould create a systemd service to start the command at boot (or cheat and put it in /etc/rc.local).

Przemas
Posts: 58
Joined: 2015/07/22 11:32:28

Re: Howto change cpu governor permanently?

Post by Przemas » 2017/03/28 14:45:19

those are not bios related settings tunk :) .

Anyways thx again goes to TrevorH. In the end I've decided to use his solution, even tuned-adm does a whole lot more than switching the cpu governor. It was simply super easy to just use "throughput-performance" profile, rather than digging for a way to set governor only.

Post Reply

Return to “CentOS 7 - General Support”