Default cpufreq governor not according to kernel config?!
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Default cpufreq governor not according to kernel config?!
According to the kernel configuration:
Code:
CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y
Nevertheless, ondemand is the governor that is used according to the .../cpu/cpu0/cpufreq entry in /sys when the system is up and running.
Why is that?
(The kernel that I am running right now is 2.6.30.7)
Unless I'm mistaken, that kernel config entry means that the default governor in use will be determined by userspace application(s), rather than actually specifying which governor will necessarily be in use.
You should be able to set which governor is being used at any given time, by using the sysctl interface. Something like below:
..which you can do in a boot/init script, OR by using the sysctl.conf file (check around a bit for the exact syntax required for use in the sysctl.conf file for this item.
Unless I'm mistaken, that kernel config entry means that the default governor in use will be determined by userspace application(s), rather than actually specifying which governor will necessarily be in use.
You should be able to set which governor is being used at any given time, by using the sysctl interface. Something like below:
..which you can do in a boot/init script, OR by using the sysctl.conf file (check around a bit for the exact syntax required for use in the sysctl.conf file for this item.
Hope this helps
Sasha
Sure, I did the echoing myself in an earlier installation in rc.local, but since I haven't done that this time, I wondered where the system does that. It is always nice to keep track on "hidden" configurations that the system does without I begging for it.
Unless I'm mistaken, that kernel config entry means that the default governor in use will be determined by userspace application(s), rather than actually specifying which governor will necessarily be in use.
Yes, and he don't need to mess with kernel config as Slack comes correctly configured. He only need to load the modules.
Ondemand seems the safe initial choice. Most time it is just sitting on the slow speed or going full speed when demanded, but processor without multiple clocks work correctly.
Check /etc/rc.d/rc.modules. That is where the CPU frequency governor is modified during booting. Look at the end of the script.
Thank you. It seems like the script tries to load every possible driver for frequency scaling regardless if they are included or not in the kernel, maybe I should comment some of them to save some boot time?
maybe I should comment some of them to save some boot time?
Yes, as you see fit.
Prior to 13.0, the governor modules were listed in rc.modules but not loaded. The end-user had to uncomment the governor of choice. I prefered that approach. Before 13.0 I loaded the ondemand governor in rc.local.
In 13.0 I commented out all the options in rc.modules and still use my script snippet in rc.local. The simple reason being I run a snippet of code in rc.local to create /etc/issue, and part of the final text in /etc/issue includes the normal rated CPU speed. Loading the ondemand governor in rc.modules caused the resulting /etc/issue to always display the governed (lowest) speed rather than the normal rated speed. Purely cosmetic, but I'm the one who sees the incorrect text every day.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.