[Bug 619750] New: Unable to change CPU governor from userspace
http://bugzilla.novell.com/show_bug.cgi?id=619750 http://bugzilla.novell.com/show_bug.cgi?id=619750#c0 Summary: Unable to change CPU governor from userspace Classification: openSUSE Product: openSUSE 11.3 Version: RC 2 Platform: x86-64 OS/Version: openSUSE 11.3 Status: NEW Severity: Major Priority: P5 - None Component: Other AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: kristjan.ugrin@gmail.com QAContact: qa@suse.de Found By: --- Blocker: --- User-Agent: Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.6.30 Version/10.60 I've tested on 32 and 64 bit updated version of upcoming 11.3 release. Sometimes I need to change CPU governors prior to e.g. entering a game, otherwise with ondemand it will behave erratically (frequency changes). This isn't anymore possible under 11.3 RC2 - under systemsettings -> Power Management, I do not see governors when configuring CPU properties under specific profile, it also doesn't work with command line tools:
powersave -f INFO: using SYSTEM upower ERROR: not yet implemented using upower
Same happens if I use powersave as root, the only way to change governor is echoing as root proper value: echo performance > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor .. This offcourse limits scripting possibilities, since applications are mostly run as normal user - also changing whole power profile via dbus call (powerdevil) has more benefits, since it can reconfigure other properties and make a more suitable environment for specific needs. CPU: vendor_id : AuthenticAMD cpu family : 15 model : 12 model name : AMD Athlon(tm) 64 Processor 2800+ I've tried to install other vanilla and non-vanilla kernels beside default (compiled from source) and it behaves in same way - so I think it's probably not a kernel fault. After each try, I've read /proc/cpuinfo to see if the frequency did change according to desired governor. Reproducible: Always Steps to Reproduce: 1. Try to change governor with powersave (-f) or powerdevil Actual Results: CPU governor didn't change Expected Results: CPU governor and frequency should change -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619750 http://bugzilla.novell.com/show_bug.cgi?id=619750#c yang xiaoyu <xyyang@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |xyyang@novell.com AssignedTo|bnc-team-screening@forge.pr |mvyskocil@novell.com |ovo.novell.com | -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619750 http://bugzilla.novell.com/show_bug.cgi?id=619750#c1 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|P5 - None |P4 - Low Status|NEW |ASSIGNED Severity|Major |Minor --- Comment #1 from Michal Vyskocil <mvyskocil@novell.com> 2010-07-07 10:37:03 UTC --- (In reply to comment #0)
User-Agent: Opera/9.80 (X11; Linux x86_64; U; en) Presto/2.6.30 Version/10.60
I've tested on 32 and 64 bit updated version of upcoming 11.3 release.
Sometimes I need to change CPU governors prior to e.g. entering a game, otherwise with ondemand it will behave erratically (frequency changes). This isn't anymore possible under 11.3 RC2 - under systemsettings -> Power Management, I do not see governors when configuring CPU properties under specific profile, it also doesn't work with command line tools:
powersave -f INFO: using SYSTEM upower ERROR: not yet implemented using upower
Hi Kristjan, please move the power devil part to an another bug (and assign it to kde-maintainers@suse.de), the powersave tool has no relationship with KDE and power devil. In fact I removed this legacy script from pm-utils because I don't want to maintain it. After dozen complaints I got, I partially ported it from HAL and moved it back. The port in 11.3 is incomplete (I got a complaints only, not a help ...). So this is an unwanted child for me. In case of governors, the setup can look like this: GOVERNOR=ondemand for CPU in /sys/devices/system/cpu/cpu*; do if [[ $CPU/cpufreq/scaling_available_governors =~ $GOVERNOR ]]; then echo $GORVERNOR > cpufreq/scaling_governor fi done in case of queries - well in case that every cpu has a different governor, tool can simply return unknown state, don't it? I'll try to implement it, but too late for 11.3. The newest version will be in Base:System BuildService project, or you can use the sources from http://gitorious.org/opensuse/pm-utils-suse I'll inform you through this bugzilla -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619750 http://bugzilla.novell.com/show_bug.cgi?id=619750#c2 --- Comment #2 from Michal Vyskocil <mvyskocil@novell.com> 2010-07-09 08:19:40 UTC --- http://gitorious.org/opensuse/pm-utils-suse/commit/36066dff00f6fdb5cd9b12f5b... I'll try to add it to the 11.3 maintenance update as well. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619750 http://bugzilla.novell.com/show_bug.cgi?id=619750#c3 Michal Vyskocil <mvyskocil@novell.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED Target Milestone|--- |Factory --- Comment #3 from Michal Vyskocil <mvyskocil@novell.com> 2010-07-09 08:28:07 UTC --- So 11.3 update is not required. Please apply the attached patch to your /usr/bin/powersave script. This will be part of next openSUSE release (or next maintenance update of pm-utils). -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619750 http://bugzilla.novell.com/show_bug.cgi?id=619750#c4 Eugen Albrecht <ea0@gmx.net> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ea0@gmx.net --- Comment #4 from Eugen Albrecht <ea0@gmx.net> 2010-07-25 19:16:42 UTC --- I still cannot change cpu governor. I applied the patch (http://pastebin.com/TscBA9Hy), but I get error if i run #powersave -f: INFO: using SYSTEM upower ERROR: set_governor: scaling governor is not supported on cpu0 ERROR: set_governor: you don't have rights to setup governors -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619750 http://bugzilla.novell.com/show_bug.cgi?id=619750#c5 --- Comment #5 from Eugen Albrecht <ea0@gmx.net> 2010-07-29 07:46:59 UTC --- opensuse 11.3 32bit -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619750 http://bugzilla.novell.com/show_bug.cgi?id=619750#c6 --- Comment #6 from Michal Vyskocil <mvyskocil@novell.com> 2010-08-02 07:47:39 UTC --- Yes, the error messages are little bit messy. In fact it means the /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_governors is not available, so there's nothing to do. Can you check, what you have in /sys/devices/system/cpu/cpu0/cpufreq/? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619750 http://bugzilla.novell.com/show_bug.cgi?id=619750#c7 --- Comment #7 from Eugen Albrecht <ea0@gmx.net> 2010-08-02 14:22:07 UTC --- I don't have /sys/devices/system/cpu/cpu0/cpufreq/ This is what I have in /sys/devices/system/cpu/cpu0/ -r-------- 1 root root 4096 2. Aug 16:17 crash_notes lrwxrwxrwx 1 root root 0 2. Aug 16:17 node0 -> ../../node/node0 drwxr-xr-x 2 root root 0 2. Aug 16:17 thermal_throttle drwxr-xr-x 2 root root 0 2. Aug 16:17 topology -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619750 http://bugzilla.novell.com/show_bug.cgi?id=619750#c8 --- Comment #8 from Michal Vyskocil <mvyskocil@novell.com> 2010-08-03 14:06:40 UTC --- Then your system does not have the cpufreq support. See http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Do... -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619750 http://bugzilla.novell.com/show_bug.cgi?id=619750#c9 --- Comment #9 from Eugen Albrecht <ea0@gmx.net> 2010-08-04 09:51:40 UTC --- (In reply to comment #8)
Then your system does not have the cpufreq support. See
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=blob;f=Do...
sure my system is supported. I had working powermanagement and cpufreq support using opensuse 11.2. And I think i had working cpufreq support with opensuse 11.3 (but not very long) -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619750 http://bugzilla.novell.com/show_bug.cgi?id=619750#c10 --- Comment #10 from Michal Vyskocil <mvyskocil@novell.com> 2010-08-04 10:14:29 UTC --- Well, try to get me the ls -lh /sys/devices/system/cpu/cpu* we will see. -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619750 http://bugzilla.novell.com/show_bug.cgi?id=619750#c11 --- Comment #11 from Eugen Albrecht <ea0@gmx.net> 2010-08-04 18:41:57 UTC --- (In reply to comment #10)
Well, try to get me the
ls -lh /sys/devices/system/cpu/cpu*
we will see.
#ls -lh /sys/devices/system/cpu/cpu* /sys/devices/system/cpu/cpu0: insgesamt 0 -r-------- 1 root root 4,0K 4. Aug 20:39 crash_notes lrwxrwxrwx 1 root root 0 4. Aug 20:39 node0 -> ../../node/node0 drwxr-xr-x 2 root root 0 4. Aug 20:39 thermal_throttle drwxr-xr-x 2 root root 0 4. Aug 20:39 topology /sys/devices/system/cpu/cpufreq: insgesamt 0 /sys/devices/system/cpu/cpuidle: insgesamt 0 -r--r--r-- 1 root root 4,0K 4. Aug 20:39 current_driver -r--r--r-- 1 root root 4,0K 4. Aug 20:39 current_governor_ro # cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 6 model : 13 model name : Intel(R) Pentium(R) M processor 1.73GHz stepping : 8 cpu MHz : 798.131 cache size : 2048 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 2 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov clflush dts acpi mmx fxsr sse sse2 ss tm pbe nx up bts est tm2 bogomips : 1596.26 clflush size : 64 cache_alignment : 64 address sizes : 32 bits physical, 32 bits virtual power management: -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=619750 http://bugzilla.novell.com/show_bug.cgi?id=619750#c12 --- Comment #12 from Michal Vyskocil <mvyskocil@novell.com> 2010-08-05 14:13:35 UTC --- Sorry, there is nothing can be used for setting up the governor. Can you boot the 11.2 on your machine (LiveCD might be enough) and test the existence of that directory? -- Configure bugmail: http://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
participants (1)
-
bugzilla_noreply@novell.com