Page 1 of 1

CPU governor.. different methods to set?

Posted: 10. Dec 2012, 22:23
by Kraligor
Hi!
I'm new to the forums, so I'd like to briefly introduce myself: Oli, 27 years old, from Würzburg, Franconia, Germany.
I'm also new to Salix/Slackware, so my questions may sound rather stupid, please excuse that. ;)

First off, I really like Salix' approach so far. Combining simplicity and minimalism with ease of use creates a truly comfortable feeling.

But now to my first problem I encountered. Well, it's more like an understanding problem, since I solved an issue, but I don't really apprehend how.

I wanted to set my CPU-governor to 'ondemand', since it always ran at 4 x 3.20 GHz. After some reading in the forum, I changed CPUFREQ=battery to CPUFREQ=on in /etc/rc.d/rc.modules. Now my governor is set to 'ondemand', so - problem solved.
But here (salixos.org/forum/viewtopic.php?p=3040)¹ it's recommended to use modprobe and semi-manual modification of /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor and /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold via rc.d.
Also, in /boot/config the default governor is 'userspace'.

If I had to guess, I'd say that the entry in /boot/config is the default value for the governor. The suggestion in the thread is the semi-manual method to change this default value for the session, and 'my' solution is the automatic method via rc.modules.


Would someone mind to introduce me to the automagical powers of Salix? ;)
Thanks in advance
Oli

¹ I'm not allowed to post links yet.

Re: CPU governor.. different methods to set?

Posted: 11. Dec 2012, 08:47
by thenktor
Kraligor wrote:I wanted to set my CPU-governor to 'ondemand', since it always ran at 4 x 3.20 GHz. After some reading in the forum, I changed CPUFREQ=battery to CPUFREQ=on in /etc/rc.d/rc.modules. Now my governor is set to 'ondemand', so - problem solved.
That can be considered as the recommended method. IIRC there also is some automatism and tests in rc.modules to set the default governor.
Kraligor wrote:But here (salixos.org/forum/viewtopic.php?p=3040)¹ it's recommended to use modprobe and semi-manual modification of /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor and /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold via rc.d.
Also, in /boot/config the default governor is 'userspace'.
The rc.local method is quick and dirty and works if you know what you are doing ;) It also works for every bootup.
Kraligor wrote:I'm new to the forums, so I'd like to briefly introduce myself: Oli, 27 years old, from Würzburg, Franconia, Germany.
I'm also new to Salix/Slackware, so my questions may sound rather stupid, please excuse that. ;)
Greetings from Sand am Main, Franconia, Germany :mrgreen:

Re: CPU governor.. different methods to set?

Posted: 15. Dec 2012, 22:01
by Kraligor
Heh, small world we live in. Thanks for the reply. :)

I'd love to help the distribution. Can I translate something to German? I've seen that there's no German Manual but since the manual is 13.37 maybe I should wait until there's an updated 14.0 manual?

Re: CPU governor.. different methods to set?

Posted: 17. Dec 2012, 09:30
by thenktor
German translations are done here: https://www.transifex.com/projects/p/sa ... ault/l/de/
But no idea about the manual...

Re: CPU governor.. different methods to set?

Posted: 17. Dec 2012, 10:50
by mimosa
I'm sure a translation of the existing manual would be useful. As fas as I know, there is no major revision in the pipeline; and most of the content is not specific to a particular Salix version. For example, things like package management haven't changed, except for the new Salix repo for Slackbuilds that now includes some dependency checking; and I believe that's the case for 13.37 too anyway, or will be.

Re: CPU governor.. different methods to set?

Posted: 18. Dec 2012, 14:20
by Akuna
And if there are changes to the manual, the translations changes will be incremental. So you can safely translate anything that is general and not version related.