Bug 735685
Summary: | cpupower script (from kernel-tools) is completely broken/incomplete/unusable in F16/rawhide | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Artem S. Tashkinov <aros> | ||||
Component: | kernel | Assignee: | Kernel Maintainer List <kernel-maint> | ||||
Status: | CLOSED NEXTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | urgent | Docs Contact: | |||||
Priority: | unspecified | ||||||
Version: | 15 | CC: | gansalmon, itamar, jonathan, kernel-maint, madhu.chinakonda, psabata | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2011-09-07 17:08:17 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Artem S. Tashkinov
2011-09-04 23:19:49 UTC
Thus, 1) /etc/sysconfig/cpupower must contain a CPU specific module to be loaded, e.g. CPUDRIVER=acpi-cpufreq and 2) /lib/systemd/system/cpupower.service must automatically load cpufreq_* modules (preferably all three of them, since they are tiny and could be read from a disk instantly: -rwxr--r-- 1 root root 14248 Aug 16 10:23 cpufreq_conservative.ko -rwxr--r-- 1 root root 16080 Aug 16 10:23 cpufreq_ondemand.ko -rwxr--r-- 1 root root 4808 Aug 16 10:24 cpufreq_powersave.ko ) Created attachment 521409 [details]
Patches for cpupower.service and cpupower settings in sysconfig
Please, apply.
Petr, we inherited these settings from the cpupowerutils package in f16/rawhide. Do Artem's changes look correct to you? It depends. I'd say no because: 1) 'ondemand' was supposed to be the default governor in F16; starting the service was meant to override this ('performance' there is just an example) 2) All those modules were supposed to be built-in in F16. cpupower.service was not planned to be run by default on most systems; it's only for users who don't like 'ondemand' or wish to tweak their system a bit. See the bug 713572. I don't have a F16 system, so this is just a theory though. (In reply to comment #4) 1) Making it the default in kernel won't work, if a CPU driver is not specified and loaded (and judging from F16 alphas, CPU specific frequency modules are not loaded on boot) 2) And they aren't So either you change .config and make all those modules built-in or this bug is still valid :) (In reply to comment #6) > (In reply to comment #4) > > 1) Making it the default in kernel won't work, if a CPU driver is not specified > and loaded (and judging from F16 alphas, CPU specific frequency modules are not > loaded on boot) > > 2) And they aren't They are built in: [jwboyer@localhost ~]$ grep GOV /boot/config-3.1.0-0.rc4.git0.0.fc16.x86_64 # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE 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_CPU_IDLE_GOV_LADDER=y CONFIG_CPU_IDLE_GOV_MENU=y > So either you change .config and make all those modules built-in or this bug is > still valid :) Given all the information now, I'm not sure this bug is valid. (In reply to comment #7) > (In reply to comment #6) > > (In reply to comment #4) > > > > 1) Making it the default in kernel won't work, if a CPU driver is not specified > > and loaded (and judging from F16 alphas, CPU specific frequency modules are not > > loaded on boot) > > > > 2) And they aren't > > They are built in: > > [jwboyer@localhost ~]$ grep GOV /boot/config-3.1.0-0.rc4.git0.0.fc16.x86_64 > # CONFIG_CPU_FREQ_DEFAULT_GOV_PERFORMANCE 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_CPU_IDLE_GOV_LADDER=y > CONFIG_CPU_IDLE_GOV_MENU=y > Um, Artem was talking about acpi-cpufreq, pcc-cpufreq and such, I believe. Those, too, should be built-in. They are, yes: [jwboyer@localhost ~]$ grep CPUFREQ /boot/config-3.1.0-0.rc4.git0.0.fc16.x86_64 CONFIG_X86_PCC_CPUFREQ=y CONFIG_X86_ACPI_CPUFREQ=y [jwboyer@localhost ~]$ (In reply to comment #9) You are right, the kernel configuration in F16 has changed, and all the mentioned modules are built-in now. |