From: "Niraj Tolia" Subject: Re: RE: AMD P-States not recognized for Xen 3.3 and 3.4 Date: Wed, 7 Jan 2009 13:53:13 -0800 Message-ID: <7e45e2ac0901071353k475ab211tcaf91999cc995062@mail.gmail.com> References: <6453C3CB8E2B3646B0D020C112613273C5AE2A@sausexmb4.amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1994191153==" Return-path: In-Reply-To: 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 Cc: xen-devel , "mark.langsdorf" List-Id: xen-devel@lists.xenproject.org --===============1994191153== Content-Type: multipart/alternative; boundary="----=_Part_213509_407036.1231365193560" ------=_Part_213509_407036.1231365193560 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Wed, Jan 7, 2009 at 1:02 PM, Carsten Schiers wrote: > So having read that, I have to summarize that working with the > Xen 3.2.1 / 2.6.18-xen-3.1-2 kernel / cpufreq=3Ddom0-kernel team > seems to be the best option. > > Only drawback is for sure that typical tools, like powernowd is > only using Dom0 load. But I think I could possibly try to modify > powernowd or another tool to use what e.g. xentop is producing > as output, so that I tune up the system a bit when there is a > noticable bigger load than the 10% it is typically sleeping at. > If you are using the in-kernel ondemand governor (cpufreq=3Ddom0-kernel), i= t will look at complete system load and not just dom0. Look at cpufreq_ondemand.c in the 2.6.18-xen.hg tree for more info. Cheers, Niraj > > Or am I wrong? > > Thanks, > Carsten. > > -----Urspr=FCngliche Nachricht----- > Von: Langsdorf, Mark [mailto:mark.langsdorf@amd.com] > Gesendet: Mittwoch, 7. Januar 2009 21:22 > An: Carsten Schiers; xen-devel@lists.xensource.com > Betreff: RE: [Xen-devel] AMD P-States not recognized for Xen 3.3 and 3.4 > > > > ... but was told that it is intentional that there's no > > code to handle these. > > > > Hm. And for what reason it does work in dom0-kernel? Because > > it's done by powernow-k8.ko and userspace software? > > Correct. The family 0xf P-state interface is significantly > more complicated than the Family 0x10/architectural P-state > interface. Porting it into the Xen hypervisor would possibly > introduce some more stability issues. The architectural > P-state interface is much stabler and smaller, and it made > sense to move it into Xen. > > Since the family 0xf P-state interface already existed in the > Linux kernel, it was easy enough to allow Linux dom0s to use > it for RevF systems. Sadly, it's still got some problems > due to the use of TSC as a time source. > > -Mark Langsdorf > Operating System Research Center > AMD > > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > --=20 Niraj Tolia, Researcher, HP Labs http://www.hpl.hp.com/personal/Niraj_Tolia/ ------=_Part_213509_407036.1231365193560 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline

On Wed, Jan 7, 2009 at 1:02 PM, Carsten = Schiers <carsten= @schiers.de> wrote:
So having read that, I have to summarize that working with the
Xen 3.2.1 / 2.6.18-xen-3.1-2 kernel / cpufreq=3Ddom0-kernel team
seems to be the best option.

Only drawback is for sure that typical tools, like powernowd is
only using Dom0 load. But I think I could possibly try to modify
powernowd or another tool to use what e.g. xentop is producing
as output, so that I tune up the system a bit when there is a
noticable bigger load than the 10% it is typically sleeping at.


If you are using the in-kernel ondemand governor = (cpufreq=3Ddom0-kernel), it will look at complete system load and not just = dom0. Look at cpufreq_ondemand.c in the 2.6.18-xen.hg tree for more info.
Cheers,
Niraj

 

Or am I wrong?

Thanks,
Carsten.

-----Urspr=FCngliche Nachricht-----
Von: Langsdorf, Mark [mailto:mark= .langsdorf@amd.com]
Gesendet: Mittwoch, 7. Januar 2009 21:22
An: Carsten Schiers; xen-d= evel@lists.xensource.com
Betreff: RE: [Xen-devel] AMD P-States not recognized for Xen 3.3 and 3.4

> > ... but was told that it is intentional that there's no
> code to handle these.
>
> Hm. And for what reason it does work in dom0-kernel? Because
> it's done by powernow-k8.ko and userspace software?

Correct.  The family 0xf P-state interface is significantly
more complicated than the Family 0x10/architectural P-state
interface.  Porting it into the Xen hypervisor would possibly
introduce some more stability issues.  The architectural
P-state interface is much stabler and smaller, and it made
sense to move it into Xen.

Since the family 0xf P-state interface already existed in the
Linux kernel, it was easy enough to allow Linux dom0s to use
it for RevF systems.  Sadly, it's still got some problems
due to the use of TSC as a time source.

-Mark Langsdorf
Operating System Research Center
AMD




_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xensource.= com
http://l= ists.xensource.com/xen-devel



--
Niraj Tolia= , Researcher, HP Labs
http://www.hpl.hp.com/personal/Niraj_Tolia/
------=_Part_213509_407036.1231365193560-- --===============1994191153== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============1994191153==--