cpu frequency scaling not working properly in 2.6.18.8
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.
I have used the cpufreq kernel option over several kernel versions. My setup is doubtless slightly different from yours, but I have had great success with ondemand. Using gkrellm (simple plugin required) I can see the processor speed (and cpu temp) varing according to load.
I also have a k8 processor, but the chipset is via not nforce2.
here are the kernel option that i use:
#
# CPU Frequency scaling
#
CONFIG_CPU_FREQ=y
CONFIG_CPU_FREQ_TABLE=y
# CONFIG_CPU_FREQ_DEBUG is not set
CONFIG_CPU_FREQ_STAT=m
CONFIG_CPU_FREQ_STAT_DETAILS=y
CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set
CONFIG_CPU_FREQ_GOV_PERFORMANCE=y
CONFIG_CPU_FREQ_GOV_POWERSAVE=y
CONFIG_CPU_FREQ_GOV_USERSPACE=y
CONFIG_CPU_FREQ_GOV_ONDEMAND=y
# CONFIG_CPU_FREQ_GOV_CONSERVATIVE is not set
#
# CPUFreq processor drivers
#
CONFIG_X86_ACPI_CPUFREQ=m
# CONFIG_X86_POWERNOW_K6 is not set
# CONFIG_X86_POWERNOW_K7 is not set
CONFIG_X86_POWERNOW_K8=y
# CONFIG_X86_GX_SUSPMOD is not set
# CONFIG_X86_SPEEDSTEP_CENTRINO is not set
# CONFIG_X86_SPEEDSTEP_ICH is not set
# CONFIG_X86_SPEEDSTEP_SMI is not set
# CONFIG_X86_P4_CLOCKMOD is not set
# CONFIG_X86_CPUFREQ_NFORCE2 is not set
# CONFIG_X86_LONGRUN is not set
# CONFIG_X86_LONGHAUL is not set
#
# shared options
#
# CONFIG_X86_ACPI_CPUFREQ_PROC_INTF is not set
# CONFIG_X86_SPEEDSTEP_LIB is not set
i guess the option
# CONFIG_X86_CPUFREQ_NFORCE2
would maybe be set to yes in your case.
as you can see i elected to compile the options in, as opposed to modules.
Well, I managed to get it working by making "performance" be the default governor. Now I can switch between all available frequencies. It doesn't seem like I should have had to do this, though. This must either be a bug or something wrong with my hardware, because it always showed 2G as an available frequency, but I could not use it.
Tobyl,
I have been using the conservative governor instead of the ondemand governor because I read that the AMD64 don't work well with the fast scaling of the ondemand governor. It sounds like you don't have any problem with it, though?
Not at all. My AMD64 3500 behaves very well. It ticks over at 1000MHz most of the time, but as soon as I give it some work to do, it ramps up the MHz rapidly. There is an asus utility that does the same in windows, (forgotten the name as I so rarely boot into windows), but the effect is identical.
I had not heard that AMD64 was not good with ondemand. I have got 1 gig of high quality ram, maybe that helps?
It seems that the max frequency depends on whether the laptop is plugged in or not. Normally my machine should have 3 available freqs, .8, 1.6 and 2. If the machine is unplugged, the max I can do is 1.6. If I plug it back in I have 2 available again. (That's why I thought I had a bad cpu, because sometimes 2 would be available and sometimes not.)
Despite the original thread subject, this is _not_ specific to any kernel version.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.