Skip to contentSkip to conversation

cpufreq default governor?

DISCUSSION Diwaker Gupta 3 participants 4 messages Jan 19, 2004

lore
Share & tools
lore
#0 lore raw

Hi,

I'm running 2.6.1 vanilla kernel from kernel.org with no patches. I want to set the default cpufreq governor to userspace. Here is the relevant portion of my .config:

====
CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_PROC_INTF=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=y CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_24_API=y CONFIG_CPU_FREQ_TABLE=y CONFIG_X86_ACPI_CPUFREQ=y CONFIG_X86_ACPI_CPUFREQ_PROC_INTF=y
====

Everything compiles fine, but when I boot into the new kernel, the default governor is still set to performance:

<diwaker@diwaker>$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance

But the userspace governor is indeed available:

<diwaker@diwaker>$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
powersave userspace performance

Any suggestions?
TIA,
Diwaker

Signature · 4 lines
Diwaker Gupta
Graduate Student, Computer Sc. and Engg.
University of California, San Diego
<http://www.cse.ucsd.edu/users/dgupta>
#1 lore raw

Hi,

I'm sorry but I cannot reproduce the behaviour you see. Do you run any userspace cpufreq tool like cpufreqd? Can you compile the other governors as modules, and see what happens then, please? Thanks,
Dominik

Quoted 26 lines · Diwaker Gupta

Hi,

I'm running 2.6.1 vanilla kernel from kernel.org with no patches. I want to set the default cpufreq governor to userspace. Here is the relevant portion of my .config:

====
CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_PROC_INTF=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=y CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_24_API=y CONFIG_CPU_FREQ_TABLE=y CONFIG_X86_ACPI_CPUFREQ=y CONFIG_X86_ACPI_CPUFREQ_PROC_INTF=y
====

Everything compiles fine, but when I boot into the new kernel, the default governor is still set to performance:

<diwaker@diwaker>$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance
Quoted 18 lines

But the userspace governor is indeed available:

<diwaker@diwaker>$ cat 
/sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
powersave userspace performance

Any suggestions?
TIA,
Diwaker

Signature · 9 lines
Diwaker Gupta
Graduate Student, Computer Sc. and Engg.
University of California, San Diego
<http://www.cse.ucsd.edu/users/dgupta>

_______________________________________________
Cpufreq mailing list
[email protected]
http://www.linux.org.uk/mailman/listinfo/cpufreq

_______________________________________________
Cpufreq mailing list
[email protected]
http://www.linux.org.uk/mailman/listinfo/cpufreq

#2 lore raw

Hi,

Sorry, really stupid of me. It seems cpudynd or acpid are changing the default governor! I booted with both services off and the governor showed up okay.

BTW, do people have any opinion on which frequency daemon is better -- cpudynd or cpufreqd?

Diwaker

Quoted 51 lines · Dominik Brodowski

Hi,

I'm sorry but I cannot reproduce the behaviour you see. Do you run any userspace cpufreq tool like cpufreqd? Can you compile the other governors as modules, and see what happens then, please? Thanks,
Dominik

Quoted 23 lines · Diwaker Gupta

Hi,

I'm running 2.6.1 vanilla kernel from kernel.org with no patches. I want to set the default cpufreq governor to userspace. Here is the relevant portion of my .config:

====
CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_PROC_INTF=y
# CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE=y CONFIG_CPU_FREQ_GOV_PERFORMANCE=y CONFIG_CPU_FREQ_GOV_POWERSAVE=y CONFIG_CPU_FREQ_GOV_USERSPACE=y CONFIG_CPU_FREQ_24_API=y CONFIG_CPU_FREQ_TABLE=y CONFIG_X86_ACPI_CPUFREQ=y CONFIG_X86_ACPI_CPUFREQ_PROC_INTF=y
====

Everything compiles fine, but when I boot into the new kernel, the default governor is still set to performance:

<diwaker@diwaker>$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
performance
Quoted 17 lines

But the userspace governor is indeed available:

<diwaker@diwaker>$ cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors
powersave userspace performance

Any suggestions?
TIA,
Diwaker

Signature · 9 lines
Diwaker Gupta
Graduate Student, Computer Sc. and Engg.
University of California, San Diego
<http://www.cse.ucsd.edu/users/dgupta>

_______________________________________________
Cpufreq mailing list
[email protected]
http://www.linux.org.uk/mailman/listinfo/cpufre

q

Signature · 4 lines
Diwaker Gupta
Graduate Student, Computer Sc. and Engg.
University of California, San Diego
<http://www.cse.ucsd.edu/users/dgupta>