All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Fredy P." <fredy.pulido@savoirfairelinux.com>
To: "Roger Pau Monné" <roger.pau@citrix.com>
Cc: xen-devel@lists.xenproject.org
Subject: Re: [Xen-devel] CPU frequency throttling based on the temperature
Date: Wed, 24 Jul 2019 11:25:55 -0400	[thread overview]
Message-ID: <cc9a1959af91dc812553b700fee308573c5dea5d.camel@savoirfairelinux.com> (raw)
In-Reply-To: <20190724143643.lpg576p6psxqelrg@Air-de-Roger>

-- 
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.

-------- Forwarded Message --------
From: Fredy P. <fredy.pulido@savoirfairelinux.com>
To: Roger Pau Monné <roger.pau@citrix.com>
Subject: Re: [Xen-devel] CPU frequency throttling based on the
temperature
Date: Wed, 24 Jul 2019 11:00:51 -0400

Hello, answering between lines
On Wed, 2019-07-24 at 16:36 +0200, Roger Pau Monné wrote:
> 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).
Is a X86 server for aircrafts, we have it running Linux and will add
Xen to have a VM running inside, is a kind of big embedded system.

> 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?

Yes that is clear for us but to do active thermal throttling need to be
capable to read the CPU temperature.

> > 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?

That is the main problem, in a POC we did years ago for our client
using Xen 4.8.x we took it from /sys/class/hwmon but that was not
accurate and Xen removes it on 4.9.x. this is the question I'm doing
here.

> 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.

Is a Intel(R) Core(TM) i5-5350U CPU @ 1.80GHz processor, when you say
the hardware is the board itself? or the processor?

> > 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@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

  parent reply	other threads:[~2019-07-24 15:26 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-07-24 14:01 [Xen-devel] CPU frequency throttling based on the temperature Fredy P.
2019-07-24 14:36 ` Roger Pau Monné
2019-07-24 14:47   ` Jan Beulich
2019-07-24 15:35     ` Roger Pau Monné
2019-07-24 15:51       ` Jan Beulich
2019-07-24 17:10       ` Fredy P.
2019-07-24 15:25   ` Fredy P. [this message]
2019-07-24 15:41     ` Roger Pau Monné
2019-07-25 12:44       ` Fredy P.
2019-07-25 12:54         ` Jan Beulich
2019-07-25 13:07           ` Fredy P.
2019-07-25 13:13           ` Roger Pau Monné
2019-07-25 13:29             ` Fredy P.
2019-07-25 13:47               ` Roger Pau Monné
2019-07-25 13:59                 ` Jan Beulich
2019-07-25 14:17                   ` Roger Pau Monné
2019-07-25 14:31                     ` Jan Beulich
2019-07-25 15:34                       ` Roger Pau Monné
2019-07-25 16:29                         ` Fredy P.
2019-07-25 13:43             ` Jan Beulich
2019-07-25 14:07               ` Roger Pau Monné
2019-07-25 14:27                 ` Fredy P.

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cc9a1959af91dc812553b700fee308573c5dea5d.camel@savoirfairelinux.com \
    --to=fredy.pulido@savoirfairelinux.com \
    --cc=roger.pau@citrix.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.