[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] CPU frequency throttling based on the temperature


  • To: Fredy P. <fredy.pulido@xxxxxxxxxxxxxxxxxxxx>
  • From: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • Date: Wed, 24 Jul 2019 16:36:43 +0200
  • Authentication-results: esa2.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@xxxxxxxxxx; spf=Pass smtp.mailfrom=roger.pau@xxxxxxxxxx; spf=None smtp.helo=postmaster@xxxxxxxxxxxxxxx
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 24 Jul 2019 14:36:56 +0000
  • Ironport-sdr: nWydUCHmxN4FRIYlNQ+3AtC2v2FA7uHJRIFYesDco9LnWDtMXaRRdQyNUrMj6CZxbLp6lOxROY q7YLPSSc2qdKzZSy6yhbs3sDw9geA7IFqOxor8RD9wZW2zcrCxCzRHWgFfft1zfxi3yZdb41Qo 0UuzEBhL9m2pr+wgGu64JZJr1JgD2D0YUxo12LRg55IeTV6ZuIKyxEuOqYEUl3BcFM7hYngihr OSuCg9J8apz+OqDhjyS7b7PKtbxUQJS7ARTWetY+VcUsyAS+f9wmuAQmaBCE/AgN7BnCZNuFyI ZGw=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Wed, Jul 24, 2019 at 10:01:40AM -0400, Fredy P. wrote:
> Hello,
> 
> My objective is to get CPU frequency throttling based on the
> temperature in a Xen/OpenWRT(dom0) system.
> 
> After to expend hours reading Xen's wiki, mailing list archives,
> commits, googling and asking in the IRC channel I'm coming here asking
> for help because I hope there is something I miss and you could point
> it.

That seems like an interesting project, I guess your focus is some
kind of low-power device? (not that it matters much for the context of
the question).

Anyway, thanks for your interest on Xen and ways to improve it!

> My first question is, there is any way to do CPU frequency throttling
> based on the temperature?

I don't think there's such governor ATM implemented in Xen, the more
that I think all frequency throttling is supposed to be done by dom0
using xenpm, but not Xen itself?

> If the answer for first question is not, then there is any way to get
> the CPU temperature from Dom0? (this way we could use Intel's thermald
> and modify it to use xenpm to change the cpufreq).

What hardware interface does thermald (or the driver in Linux if
there's one) use to get the temperature data?

Is it exposed in a mmio region somewhere? Or maybe exposed as a pci
device?

> If one and two are not, do you think that the right path is to modify
>  linux/drivers/xen/xen-acpi-processor.c or you have any other ideas?

I think it depends on how this data is exposed by the hardware.

> Thanks
> 
> -- 
> Fredy Pulido,
> Consultant en logiciel libre
> Infrastructure, Infonuagique et architecture de systèmes
> Savoir-faire Linux, Montréal, Qc
> Bureau : (+ 1) 514 276-5468 p.410 
> 
> Message de confidentialité :
> Ce courriel (de même que les fichiers joints) est strictement réservé à
> l'usage de la personne ou de l'entité à qui il est adressé et peut
> contenir de l'information privilégiée et confidentielle.
> Toute divulgation, distribution ou copie de ce courriel est strictement
> prohibée.
> Si vous avez reçu ce courriel par erreur, veuillez nous en aviser sur-
> le-champ, détruire toutes les copies et le supprimer de votre système
> informatique.

Adding a confidentiality footer to an email sent to a public mailing
list is pointless, do you know the whole mailing list archives are
publicly accessible at:

https://lists.xenproject.org/archives/html/xen-devel/

For anyone to read?

Roger.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.