[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 17:41:18 +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 15:41:38 +0000
  • Ironport-sdr: jNK2nIXvwZ74PzLSIro7WF/w8KOCWLxzV6h5pH8Y4Y6lRZKa+06Q2QpN7+QBJR2u7n+ojca8IN Ig16kBOA3VEHJkJgpS5au48K/aGnoWh7C43uG8Ys1qb09DB5wAvtUclGSvLk6Dl6kS/dK9M7D9 7hp8UK9uadWPv0SuM6nC0Y/oIuUr8YOYX+vTd8dAzWtfmaffdhufs9TQaANkt2XNvPwgXEE1e9 t691odgNgGnh4PJ9qB953J+bDzScnY6viPhxWL8HFT68vzorlmO0jwaQnDgTzrqMygA8j2KyfB YR4=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On Wed, Jul 24, 2019 at 11:25:55AM -0400, Fredy P. wrote:
> 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:
> > > 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?

You haven't answered this, which I think it's quite relevant in order
to know how to move forward. How is the temperature data exposed by
the hardware will likely determine how to read it, and whether Xen or
dom0 should access it.

If such data (or part of it) comes from ACPI dynamic tables then it
must be dom0 the one that reads it, if it is otherwise exposed as a
PCI device or maybe as a mmio region somewhere it could be Xen the
one to read such information.

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

The model itself is not that relevant, but rather how is the
temperature exposed by the CPU, see my comment above.

Thanks, 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®.