[Bug 527800] New: enabling xen power mgmt (either =xen or =dom0-kernel) fails; @ non-xen, pwr mgmt ok
http://bugzilla.novell.com/show_bug.cgi?id=527800 Summary: enabling xen power mgmt (either =xen or =dom0-kernel) fails; @ non-xen, pwr mgmt ok Classification: openSUSE Product: openSUSE 11.1 Version: Final Platform: x86-64 OS/Version: openSUSE 11.1 Status: NEW Severity: Major Priority: P5 - None Component: Xen AssignedTo: jdouglas@novell.com ReportedBy: pgnet.dev@gmail.com QAContact: qa@suse.de Found By: --- User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0 FirePHP/0.3 booting into non-xen kernel, uname -ri 2.6.27.25-0.1-default x86_64 (AM setting up power mgmt profile, cpufreq-set --governor performance --cpu 0 cpufreq-set --governor performance --cpu 1 cpufreq-set --governor performance --cpu 2 cpufreq-set --governor performance --cpu 3 checking, cpufreq-info reports for all 4 cores, as expected, cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006 Report errors and bugs to http://bugs.opensuse.org, please. analyzing CPU 0: driver: powernow-k8 CPUs which need to switch frequency at the same time: 0 hardware limits: 800 MHz - 2.80 GHz available frequency steps: 2.80 GHz, 2.10 GHz, 1.60 GHz, 800 MHz available cpufreq governors: conservative, userspace, powersave, ondemand, performance current policy: frequency should be within 800 MHz and 2.80 GHz. The governor "performance" may decide which speed to use within this range. current CPU frequency is 2.80 GHz (asserted by call to hardware). ... etc ... also, cat /proc/cpuinfo reports processor : 0 vendor_id : AuthenticAMD cpu family : 16 model : 4 model name : AMD Phenom(tm) II X4 920 Processor stepping : 2 cpu MHz : 2800.000 cache size : 512 KB physical id : 0 siblings : 4 core id : 0 cpu cores : 4 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 5 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nopl pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt bogomips : 5612.71 TLB size : 1024 4K pages clflush size : 64 cache_alignment : 64 address sizes : 48 bits physical, 48 bits virtual power management: ts ttp tm stc 100mhzsteps hwpstate ... etc ... if i boot into xen, uname -ri 2.6.27.25-0.1-xen x86_64 and following @ http://wiki.xensource.com/xenwiki/xenpm trying to set up xen Dom0-based (1st ...) power management with xen kernel grub options of, kernel /xen.gz ... cpufreq=dom0-kernel ... then, @ Dom0 cpufreq-info i get, cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006 Report errors and bugs to http://bugs.opensuse.org, please. analyzing CPU 0: no or unknown cpufreq driver is active on this CPU analyzing CPU 1: no or unknown cpufreq driver is active on this CPU analyzing CPU 2: no or unknown cpufreq driver is active on this CPU analyzing CPU 3: no or unknown cpufreq driver is active on this CPU if i try, instead, kernel /xen.gz ... cpufreq=xen ... @ Dom0 cpufreq-info i still get, cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006 Report errors and bugs to http://bugs.opensuse.org, please. analyzing CPU 0: no or unknown cpufreq driver is active on this CPU analyzing CPU 1: no or unknown cpufreq driver is active on this CPU analyzing CPU 2: no or unknown cpufreq driver is active on this CPU analyzing CPU 3: no or unknown cpufreq driver is active on this CPU and, the supposedly now-active xenpm get-scaling-governor returns, xenpm get-scaling-governor Xen cpuidle is not enabled! [CPU0] failed to get P-states statistics information [CPU1] failed to get P-states statistics information [CPU2] failed to get P-states statistics information [CPU3] failed to get P-states statistics information the writing @ xen wiki's a bit tough to follow, but basic implementation in either case should work. also, iiuc, cpuidle is not a prereq (is it?) for hypervisor-based power mgmt, i.e. cpufreg=xen? Reproducible: Always Steps to Reproduce: 1. 2. 3. -- 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=527800
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c1
--- Comment #1 from pgnet Dev
http://bugzilla.novell.com/show_bug.cgi?id=527800
Jason Douglas
http://bugzilla.novell.com/show_bug.cgi?id=527800
User jbeulich@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c2
Jan Beulich
http://bugzilla.novell.com/show_bug.cgi?id=527800
Jan Beulich
http://bugzilla.novell.com/show_bug.cgi?id=527800
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c3
pgnet Dev
we don't support cpufreq=dom0-kernel. none of the native kernel cpufreq utilities are Xen-enabled. I'm not certain xenpm is fully functional in 3.3.x (and specifically for AMD CPUs). the patch you mention above should, afaict, affect Intel CPUs only.
strikes on all counts :-/
using cpufreq=xen *does* have an effect on Fam10 CPUs as one can observe by watching the /proc/cpuinfo output. If that's not the case for you, please provide Xen+kernel boot output (Xen started with loglvl=all guest_loglvl=all).
you're correct, it _is_ the case, as can be seen here in /proc/cpuinfo ... cat /proc/cpuinfo | egrep -i "processor|MHz" processor : 0 model name : AMD Phenom(tm) II X4 920 Processor cpu MHz : 800.000 power management: ts ttp tm stc 100mhzsteps hwpstate processor : 1 model name : AMD Phenom(tm) II X4 920 Processor cpu MHz : 4294967.294 power management: ts ttp tm stc 100mhzsteps hwpstate processor : 2 model name : AMD Phenom(tm) II X4 920 Processor cpu MHz : 4294967.294 power management: ts ttp tm stc 100mhzsteps hwpstate processor : 3 model name : AMD Phenom(tm) II X4 920 Processor cpu MHz : 4294967.294 power management: ts ttp tm stc 100mhzsteps hwpstate still, @ xenpm get-scaling-governor Xen cpuidle is not enabled! [CPU0] failed to get P-states statistics information [CPU1] failed to get P-states statistics information [CPU2] failed to get P-states statistics information [CPU3] failed to get P-states statistics information xenpm set-scaling-governor powersave Xen cpuidle is not enabled! [CPU0] failed to get P-states statistics information [CPU1] failed to get P-states statistics information [CPU2] failed to get P-states statistics information [CPU3] failed to get P-states statistics information so it appears it 'has an effect', but is not controllable? is that a version-of-xen problem? if so then I presume that the problem will also exist in SLES 11/11.1? perhaps something that can be fixed/backported? or, are we relegated to building (well, trying and likley failing ...) xen34x from src? -- 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=527800
User jbeulich@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c4
Jan Beulich
cpu MHz : 4294967.294
are certainly odd (and wrong). This may need fixing, provided we find a way to debug this (i.e. a system we can reproduce this on - Dan?). As to xenpm functionality - I'm not even sure it's properly wired up for AMD in -unstable. But even if it is, the changes are too extensive to be considered for a backport. So bottom line is, all originally brought up issues are unlikely to be fixed, only this last issue is something we ought to look into. -- 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=527800
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c5
--- Comment #5 from pgnet Dev
cpu MHz : 4294967.294
are certainly odd (and wrong).
agreed.
As to xenpm functionality - I'm not even sure it's properly wired up for AMD in -unstable. But even if it is, the changes are too extensive to be considered for a backport.
understood. unfortunate, but ... checking @ http://www.suse.de/~coolo/factory-status.html, Name Devel Project Maintainer Failing Requests Version Upstream Comment .. xen Virtualization charlesa 2 d Project.diff in devel project 3.4.1_19711_01 3.4.0 python moved .. the *xen version* is @ least new enough. reading @ http://wiki.xensource.com/xenwiki/xenpm, "the default governor is userspace governor. Xen also supports three CPU drivers: ACPI (IA32) for Intel x86 processor; ACPI (IA64) for Intel Itanium processor and PowerNow K8 for AMD processor." seems to imply AMD *is* supported. however, if the wiring you're referring to is that "in *suse", then i've no clue ... nonetheless, important to have, i'd suggest.
So bottom line is, all originally brought up issues are unlikely to be fixed,
ok, so we have to live with defaults for now. given that, per xen wiki (for which version applicable, who knows?), "The default is the hypervisor based cpufreq", I rm'd "cpufreq=xen" from the grub boot line ... expecting that behavior, from above, should not change. BUT, cat /proc/cpuinfo | egrep -i "proc|mhz" processor : 0 model name : AMD Phenom(tm) II X4 920 Processor cpu MHz : 2800.080 power management: ts ttp tm stc 100mhzsteps hwpstate processor : 1 model name : AMD Phenom(tm) II X4 920 Processor cpu MHz : 2800.080 power management: ts ttp tm stc 100mhzsteps hwpstate processor : 2 model name : AMD Phenom(tm) II X4 920 Processor cpu MHz : 2800.080 power management: ts ttp tm stc 100mhzsteps hwpstate processor : 3 model name : AMD Phenom(tm) II X4 920 Processor cpu MHz : 2800.080 power management: ts ttp tm stc 100mhzsteps hwpstate shows that it does. and, xenpm get-scaling-governor Xen cpuidle is not enabled! Xen cpufreq is not enabled! so, are we 'back' to vanilla, non-xen Dom0 pm? apparently not, cpufreq-info cpufrequtils 004: cpufreq-info (C) Dominik Brodowski 2004-2006 Report errors and bugs to http://bugs.opensuse.org, please. analyzing CPU 0: no or unknown cpufreq driver is active on this CPU analyzing CPU 1: no or unknown cpufreq driver is active on this CPU analyzing CPU 2: no or unknown cpufreq driver is active on this CPU analyzing CPU 3: no or unknown cpufreq driver is active on this CPU so is, or isn't, opensuse-xen's cpufreq=xen active as a/the default? at the very least, i'd suggest that whatever state the default is should not appear broken ...
only this last issue is something we ought to look into.
happy to provide whatinfo i can ... -- 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=527800
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c6
--- Comment #6 from pgnet Dev
http://bugzilla.novell.com/show_bug.cgi?id=527800
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c7
--- Comment #7 from pgnet Dev
http://bugzilla.novell.com/show_bug.cgi?id=527800
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c8
--- Comment #8 from pgnet Dev
http://bugzilla.novell.com/show_bug.cgi?id=527800
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c9
--- Comment #9 from pgnet Dev
= 0) start [seconds] start collect Cx/Px statistics, output after CTRL-C or SIGINT or several seconds.
hey, no error! checking, xenpm set-scaling-governor ondemad xenpm get-cpufreq-para cpu id : 0 affected_cpus : *0 1 2 3 cpuinfo frequency : max [2800000] min [800000] cur [800000] scaling_driver : scaling_avail_gov : userspace performance powersave ondemand current_governor : powersave scaling_avail_freq : 2800000 2100000 1600000 *800000 scaling frequency : max [2800000] min [800000] cur [800000] cpu id : 1 affected_cpus : 0 *1 2 3 cpuinfo frequency : max [2800000] min [800000] cur [800000] scaling_driver : scaling_avail_gov : userspace performance powersave ondemand current_governor : powersave scaling_avail_freq : 2800000 2100000 1600000 *800000 scaling frequency : max [2800000] min [800000] cur [800000] cpu id : 2 affected_cpus : 0 1 *2 3 cpuinfo frequency : max [2800000] min [800000] cur [800000] scaling_driver : scaling_avail_gov : userspace performance powersave ondemand current_governor : powersave scaling_avail_freq : 2800000 2100000 1600000 *800000 scaling frequency : max [2800000] min [800000] cur [800000] cpu id : 3 affected_cpus : 0 1 2 *3 cpuinfo frequency : max [2800000] min [800000] cur [800000] scaling_driver : scaling_avail_gov : userspace performance powersave ondemand current_governor : powersave scaling_avail_freq : 2800000 2100000 1600000 *800000 scaling frequency : max [2800000] min [800000] cur [800000] and, cat /proc/cpuinfo | grep MHz cpu MHz : 800.000 cpu MHz : 800.000 cpu MHz : 800.000 cpu MHz : 800.000 looks promising. changing, xenpm set-scaling-governor performance xenpm get-cpufreq-para cpu id : 0 affected_cpus : *0 1 2 3 cpuinfo frequency : max [2800000] min [800000] cur [2800000] scaling_driver : scaling_avail_gov : userspace performance powersave ondemand current_governor : performance scaling_avail_freq : *2800000 2100000 1600000 800000 scaling frequency : max [2800000] min [800000] cur [2800000] cpu id : 1 affected_cpus : 0 *1 2 3 cpuinfo frequency : max [2800000] min [800000] cur [2800000] scaling_driver : scaling_avail_gov : userspace performance powersave ondemand current_governor : performance scaling_avail_freq : *2800000 2100000 1600000 800000 scaling frequency : max [2800000] min [800000] cur [2800000] cpu id : 2 affected_cpus : 0 1 *2 3 cpuinfo frequency : max [2800000] min [800000] cur [2800000] scaling_driver : scaling_avail_gov : userspace performance powersave ondemand current_governor : performance scaling_avail_freq : *2800000 2100000 1600000 800000 scaling frequency : max [2800000] min [800000] cur [2800000] cpu id : 3 affected_cpus : 0 1 2 *3 cpuinfo frequency : max [2800000] min [800000] cur [2800000] scaling_driver : scaling_avail_gov : userspace performance powersave ondemand current_governor : performance scaling_avail_freq : *2800000 2100000 1600000 800000 scaling frequency : max [2800000] min [800000] cur [2800000] NOTE the as-expected change from cur[800000] to cur[2800000] and, cat /proc/cpuinfo | grep MHz cpu MHz : 2800.000 cpu MHz : 2800.000 cpu MHz : 2800.000 cpu MHz : 2800.000 finally, launching a release-version DomU (i.e., Xen 3.3.1), boots with no apparent errors, dmesg Initializing cgroup subsys cpuset Initializing cgroup subsys cpu Linux version 2.6.27.29-7-xen (geeko@buildhost) (gcc version 4.3.2 [gcc-4_3-branch revision 141291] (SUSE Linux) ) #1 SMP 2009-08-05 21:29:36 +0200 Command line: root=/dev/xvdc1 textmode=1 xencons=xvc0 swiotlb=128,force elevator=noop linuxrc=trace debug ... progress! perhpas xen 3.4.1 _can_ find it's way back into 11.1, officially ? -- 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=527800
User carnold@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c10
--- Comment #10 from Charles Arnold
progress! perhpas xen 3.4.1 _can_ find it's way back into 11.1, officially ?
I believe it would take Product Management approval - which seems unlikely. Of course, 11.2 will be out in 2 or 3 months. -- 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=527800
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c11
--- Comment #11 from pgnet Dev
http://bugzilla.novell.com/show_bug.cgi?id=527800
User dcollingridge@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c12
Daniel Collingridge
http://bugzilla.novell.com/show_bug.cgi?id=527800
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c13
--- Comment #13 from pgnet Dev
After booting into xen:
what cpufreq/cpuidle settings do you have in grub for xen hypervisor? -- 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=527800
User dcollingridge@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c14
--- Comment #14 from Daniel Collingridge
http://bugzilla.novell.com/show_bug.cgi?id=527800
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c15
pgnet Dev
http://bugzilla.novell.com/show_bug.cgi?id=527800
User dcollingridge@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c16
Daniel Collingridge
what's the difference between the two scenarios?
The difference is that in the first one, I was booted into xen without cpufreq=xen and in the 2nd I was booted into xen with cpufreq=xen.
requiring BOTH the set- settings :-/
I ran the commands you provided and rebooted. cat /proc/cpuinfo | egrep -i "processor|MHz" and xenpm get-scaling-governor still give the same output. I reverted back (removing the cpufreq=xen) and get: === xenpm get-scaling-governor === Xen cpuidle is not enabled! Xen cpufreq is not enabled! and === cat /proc/cpuinfo | egrep -i "processor|MHz" === processor : 0 cpu MHz : 2589.586 power management: ts ttp tm stc 100mhzsteps hwpstate processor : 1 cpu MHz : 2589.586 power management: ts ttp tm stc 100mhzsteps hwpstate processor : 2 cpu MHz : 2589.586 power management: ts ttp tm stc 100mhzsteps hwpstate I've emailed the machine details to Jan. Hopefully he'll be able to take a look at it soon. -- 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=527800
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c17
--- Comment #17 from pgnet Dev
The difference is that in the first one (snip)
thanks for clarifying.
I've emailed the machine details to Jan. Hopefully he'll be able to take a look at it soon.
appreciated, thanks. -- 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=527800
User jbeulich@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c18
Jan Beulich
http://bugzilla.novell.com/show_bug.cgi?id=527800
User jbeulich@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c19
Jan Beulich
http://bugzilla.novell.com/show_bug.cgi?id=527800
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c20
--- Comment #20 from pgnet Dev
http://bugzilla.novell.com/show_bug.cgi?id=527800
User jbeulich@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c21
--- Comment #21 from Jan Beulich
http://bugzilla.novell.com/show_bug.cgi?id=527800
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c22
--- Comment #22 from pgnet Dev
http://bugzilla.novell.com/show_bug.cgi?id=527800
User jbeulich@novell.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c23
--- Comment #23 from Jan Beulich
http://bugzilla.novell.com/show_bug.cgi?id=527800
User pgnet.dev@gmail.com added comment
http://bugzilla.novell.com/show_bug.cgi?id=527800#c24
pgnet Dev
participants (1)
-
bugzilla_noreply@novell.com