From: Keir Fraser Subject: Re: AW: Re: AW: Re: Xen 3.4 strange behaviour as compared to Xen 3.3.1 Date: Tue, 02 Jun 2009 23:35:12 +0100 Message-ID: References: <18046169.321243959506677.JavaMail.root@uhura> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <18046169.321243959506677.JavaMail.root@uhura> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Carsten Schiers , xen-devel , "mark.langsdorf@amd.com" List-Id: xen-devel@lists.xenproject.org Have you tried rolling back to use the dom0 kernel that you used with 3.3.1= ? It will be compatible. My guess would be that the large amounts of code churn in the Linux tree to support cpufreq=3Dxen better has perhaps broken cpufreq=3Ddom0-kernel. -- Keir On 02/06/2009 17:18, "Carsten Schiers" wrote: > Sorry, I think it could also be that the CPU mask is somehow modified in = the > hypercall itself. Too much code for me to realy understand. >=20 > Just a guess, but does Changeset 18898 take care of cpufreq=3Ddom0-kernel c= ase? > It's > patching the hypercall 52 and the cpufreq_ondemand.c of Xen near a modfic= ation > of > a CPU mask variable, but no change in the cpufreq_ondemand.c of the Dom0 > kernel.=20 > It also seems to fit into the time window, doesn't it? >=20 > BR, > Carsten. >=20 > ----- Originalnachricht ----- > Von: Carsten Schiers > Gesendet: Die, 2.6.2009 17:28 > An: Carsten Schiers ; keir.fraser > ; xen-devel ; > mark.langsdorf@amd.com > Betreff: AW: Re: AW: Re: AW: Re: [Xen-devel] Xen 3.4 strange behaviour as > compared to Xen 3.3.1 >=20 > I managed to narrowed the problem down to the fact that inside > dbs_calculate_load, which > submits a hypercall to receive the load of all CPUs and then loops throug= h all > of them > to calculate the combined load (which is a max of all (wall-idle)/wall sc= aled > to 100). >=20 > It will not loop as policy->cpus, which is a bitmap of CPUs is zero. I am > currently stuck=20 > and not able to find out, where this is set. It seems that in the > drivers/cpufreq dir, no > change was made at all, so it must be somewhere else. >=20 > I thought, maybe somebody that changed something that has to do with this > bitmap might > come up with something like: uuuh, I missed that one... >=20 > I honestly have no idea what CPU hotpluging is, as I only have a simple > mainstream board > with a normal dual-core CPU, but the only change that is somehow related = to > CPUs that=20 > I recently came accross was that. >=20 > Comments, ideas, help? >=20 > BR, > Carsten. >=20 >=20 >=20 > ----- Originalnachricht ----- > Von: Carsten Schiers > Gesendet: Sam, 30.5.2009 15:29 > An: keir.fraser ; xen-devel > > Betreff: AW: Re: AW: Re: AW: Re: [Xen-devel] Xen 3.4 strange behaviour as > compared to Xen 3.3.1 >=20 > No it's the kernel of Xen 3.4.0 with the same config. I will try later wi= th > the=20 > older kernel, which is the one of 06.04.2009 (I have not realy understood= the > tagging or versioning of the Xen kernel). The other combination would be = Xen > 3.3.1 > with the latest kernel. That's how we narrow it down to hypervisor vs. ke= rnel. >=20 > As I use cpufreq=3Ddom0-kernel and enable cpufreq modules in > drivers/cpufreq/Kconfig, > I guess it should use the hypercall for idle time. But to double check, I > generated > load in dom0. No difference. It simply doesn't step upwards. The kernel w= ith > cpufreq > debugging is enabled. I will also try it, maybe it's loging something use= full. >=20 > BR, > Carsten. >=20 > -----Urspr=FCngliche Nachricht----- > Von: Keir Fraser [mailto:keir.fraser@eu.citrix.com] > Gesendet: Samstag, 30. Mai 2009 11:30 > An: Carsten Schiers; xen-devel > Betreff: Re: AW: Re: AW: Re: [Xen-devel] Xen 3.4 strange behaviour as com= pared > to Xen 3.3.1 >=20 > Are you using the exact same dom0 kernel as before, when it worked? One > theory would be that dom0 is looking at its own idle stats, and it probab= ly > is pretty idle. So then it steps down the CPUs and keeps them down. When = you > work the CPUs, are you working dom0 hard? >=20 > -- Keir >=20 > On 30/05/2009 07:59, "Carsten Schiers" wrote: >=20 >> Sorry, it's lowest frequency (1.0 out of 1.0, 1.8, 2.0, and 2.1 GHz). >> When booting, >> the CPU will be at 2.1 GHz, when switching the governor from performance >> to ondemand, >> this one will set it to 1.0 GHz, where it's sort of fixed. I can set it >> manually with >> cpufreq-set when switching to userspace governor, though. >>=20 >> So my guess is that the ondemand governor donesn't get te right >> information about idle >> time though the according hypercall. I recompiled with CPUFREQ DEBUG >> set. But as said >> earlier, I don't have that much knowledge about how to debug kernels. >>=20 >> BR, >> Carsten. >>=20 >> -----Urspr=FCngliche Nachricht----- >> Von: Keir Fraser [mailto:keir.fraser@eu.citrix.com] >> Gesendet: Freitag, 29. Mai 2009 23:31 >> An: Carsten Schiers; xen-devel >> Betreff: Re: AW: Re: [Xen-devel] Xen 3.4 strange behaviour as compared >> to Xen 3.3.1 >>=20 >> Is lowest p-state lowest or highest frequency/voltage? >>=20 >> -- Keir >>=20 >> On 29/05/2009 17:47, "Carsten Schiers" wrote: >>=20 >>> Thanks Keir, I tried it out but there is no difference. And by the >> way: >>> it >>> is in lowest p-state and doesn't come up, even if under heavy load. >> Hmm. >>>=20 >>> BR, >>> Carsten. >>>=20 >>> -----Urspr=FCngliche Nachricht----- >>> Von: Keir Fraser [mailto:keir.fraser@eu.citrix.com] >>> Gesendet: Freitag, 29. Mai 2009 17:02 >>> An: Carsten Schiers; xen-devel >>> Betreff: Re: [Xen-devel] Xen 3.4 strange behaviour as compared to Xen >>> 3.3.1 >>>=20 >>> On 29/05/2009 15:03, "Carsten Schiers" wrote: >>>=20 >>>> - as already reported, ondemand manager in dom0-kernel doesn't >> step, >>>> manual >>>> setting works so it seems a bit like the communication between >>> dom0 >>>> and >>>> hypervisor regarding idle time is not working >>>=20 >>> Could be an interaction with C-state support, preferring deep sleep to >>> running at lower voltage/frequency? You could try no-cpuidle on Xen's >>> command line at boot time and see if that changes things. >>>=20 >>> -- Keir >>>=20 >>>> - all beside one domu use Xen 3.4.0 kernel, the one who uses it's >>>> customized >>>> kernel won't start up as first domu. It simply hangs and this >>>> prevents also >>>> all other domus (I all auto start them, no save/restore) don't >>> come >>>> up. When >>>> I start the chain with a different one and this (with the >>> different >>>> kernel) >>>> is started as #2 or #3, not problem >>>>=20 >>>> - one domu is for vdr with three dvb pci cards passed trough. This >>>> one, when >>>> started as the first one, will cause xentop to show 20% load. >> When >>>> restarted >>>> or started as #2, the load is like with 3.3.1 at roughly 3-5%. >>>=20 >>>=20 >>>=20 >>>=20 >>=20 >>=20 >>=20 >>=20 >=20 >=20 >=20 >=20