CPU governor.. different methods to set?

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
Kraligor
Posts: 2
Joined: 10. Dec 2012, 21:56

CPU governor.. different methods to set?

Post 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.
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: CPU governor.. different methods to set?

Post 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:
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
Kraligor
Posts: 2
Joined: 10. Dec 2012, 21:56

Re: CPU governor.. different methods to set?

Post 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?
User avatar
thenktor
Salix Wizard
Posts: 2426
Joined: 6. Jun 2009, 14:47
Location: Franconia
Contact:

Re: CPU governor.. different methods to set?

Post by thenktor »

German translations are done here: https://www.transifex.com/projects/p/sa ... ault/l/de/
But no idea about the manual...
Image
burnCDDA (burns audio CDs)
geBIERt (German beer blog)
User avatar
mimosa
Salix Warrior
Posts: 3311
Joined: 25. May 2010, 17:02
Contact:

Re: CPU governor.. different methods to set?

Post 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.
User avatar
Akuna
Salix Wizard
Posts: 1038
Joined: 14. Jun 2009, 12:25

Re: CPU governor.. different methods to set?

Post 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.
Image
What really matters is where you are going, not where you come from.
Post Reply