CPU frequency governor configuration
Hi,
I would like to change the governor to "performance", but I don't even have the directory "cpufreq" under /sys/devices/system/cpu/cpuX/. The only reason that made me believe that I work with "ondemand" governor is the fact that my kernel (4.1.6-200.fc22.x86_64) is configured with the below flag: CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y Is there a way to change the governor type without recompiling the kernel? Any suggestions will be highly appreciated. Thanks Yan |
|
I already read this page, but unfortunately there is no explanation regarding what should be done if the cpufreq dir is missing.
|
You have to install cpufreq utils.
What distro are you using? |
I am using Fedora 22. Actually I already installed the cpu freq utills but the directory still didn't show up.
|
Quote:
could you please comment on my answer. Thanks |
Have you looked at this?
|
Sure, it simply doesnt work. It prints CPU0 with empty info and thats all.
|
Interesting. I'm running Rawhide (kernel 4.3.0-1.fc24.x86_64), and I get
Code:
~$ cpupower frequency-info --governors Code:
~$ sudo cpupower info |
So, perhaps its a Linux bug and looks like not in a single distro.
|
Post more info about your system. Do you have any of the x86 CPU frequency scaling drivers in the kernel ?
I wrote a small howto here: http://docs.slackware.com/howtos:har...quency_scaling The directory won't show up unless you have the drivers that support your system. |
Hi here is some more info. First, below I paste the kernel flags related to FREQ configuration.
Next, I show the related modules I have. BTW, when I tried loading any of the modules (using modprobe) I didn't get any errors but ! I didnt get any change either. I really want to work with a standard kernel without any additional compilations etc... Thanks in advance.. [root@magma14 ~]# cat /boot/config-4.1.6-200.fc22.x86_64 | grep FREQ CONFIG_CPU_FREQ=y CONFIG_CPU_FREQ_GOV_COMMON=y CONFIG_CPU_FREQ_STAT=m CONFIG_CPU_FREQ_STAT_DETAILS=y # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_POWERSAVE is not set # CONFIG_CPU_FREQ_DEFAULT_GOV_USERSPACE is not set CONFIG_CPU_FREQ_DEFAULT_GOV_ONDEMAND=y # CONFIG_CPU_FREQ_DEFAULT_GOV_CONSERVATIVE 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=y CONFIG_X86_PCC_CPUFREQ=m CONFIG_X86_ACPI_CPUFREQ=m CONFIG_X86_ACPI_CPUFREQ_CPB=y CONFIG_X86_AMD_FREQ_SENSITIVITY=m CONFIG_PM_DEVFREQ=y # DEVFREQ Governors CONFIG_DEVFREQ_GOV_SIMPLE_ONDEMAND=m # CONFIG_DEVFREQ_GOV_PERFORMANCE is not set # CONFIG_DEVFREQ_GOV_POWERSAVE is not set # CONFIG_DEVFREQ_GOV_USERSPACE is not set # DEVFREQ Drivers # CONFIG_PM_DEVFREQ_EVENT is not set [root@magma14 ~]# /sbin/modinfo /lib/modules/$(uname -r)/kernel/drivers/cpufreq/* | grep "^[fd]" filename: /lib/modules/4.1.6-200.fc22.x86_64/kernel/drivers/cpufreq/acpi-cpufreq.ko.xz description: ACPI Processor P-States Driver depends: filename: /lib/modules/4.1.6-200.fc22.x86_64/kernel/drivers/cpufreq/amd_freq_sensitivity.ko.xz description: AMD frequency sensitivity feedback powersave bias for the ondemand governor. depends: filename: /lib/modules/4.1.6-200.fc22.x86_64/kernel/drivers/cpufreq/cpufreq_stats.ko.xz description: Export cpufreq stats via sysfs depends: filename: /lib/modules/4.1.6-200.fc22.x86_64/kernel/drivers/cpufreq/p4-clockmod.ko.xz description: cpufreq driver for Pentium(TM) 4/Xeon(TM) depends: speedstep-lib filename: /lib/modules/4.1.6-200.fc22.x86_64/kernel/drivers/cpufreq/pcc-cpufreq.ko.xz description: Processor Clocking Control interface driver depends: filename: /lib/modules/4.1.6-200.fc22.x86_64/kernel/drivers/cpufreq/powernow-k8.ko.xz description: AMD Athlon 64 and Opteron processor frequency driver. depends: filename: /lib/modules/4.1.6-200.fc22.x86_64/kernel/drivers/cpufreq/speedstep-lib.ko.xz description: Library for Intel SpeedStep 1 or 2 cpufreq drivers. depends: |
What about the 'X86_INTEL_PSTATE' driver ?
Also, what processor do you have Intel/AMD make, model ? Also, check your UEFI/BIOS settings and make sure cpu frequency scaling is enabled. |
All times are GMT -5. The time now is 01:17 PM. |