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

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


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Jan Beulich <JBeulich@xxxxxxxx>
  • Date: Thu, 25 Jul 2019 14:31:40 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1;spf=pass smtp.mailfrom=suse.com;dmarc=pass action=none header.from=suse.com;dkim=pass header.d=suse.com;arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=qKAqP6aTOFJvOBo0bva2rUZ0by9i6ZGGwYe6BVcTpaY=; b=iITtImgLNR+wBdgVWD4op0MHwoSM6AAh0Q5IrQhMQMoPGnFW1//i8kbTpZVTAvgkjou00Bgo1rq/1kx21Qx4cfqL/RwMuziDw/mV2aurwYyoGhadHsytTA7k0Nd9GT6Z4Gx6T1kW9icNAt+ImGnKGkAPdTecuT2mluZd0wVWgPE6pIeLVLBmTa7gMvUMNkRpiMhRNPK2Os/roFZbnHDFjKy3dcplgI1wCugqBfvBfzYHhTGTvtmgbF8T39g4L3xwD1rFRY9RviB00hnOgdGPHQiIczJegmhkM3zgkpAI+hGKJkYtIhynE1+sjPhQamXSr20V4fb3XFIls5nNfocpkw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=fvM2EJhx6CgKzUuEI01efVkTs559jAGgO96fyoODsa38h+LXQJvzagP8u5/g9VVe0JtST6NWZ9PCXVuMsRNQPR5PsuNdi5vXv7QYjyTEUbNFZyPVOuMtwDQ/ZXmJrD6zvjzGc6Ig5n8BlMZ/rX4TLRGIvtITxWXfr+tjqzj1XpgZZ8gc8j1sP151NNBM6MTemSIExPP9+BUM/cLZDVVqc8RpcEjJTqlX6NBvovd88Ab2unfsaIBXq2OfNoKbnpNfoXjPqaZSAeteyfgEfAPvDBSu+F4siFnkLylIBXkNTlj8Mkeus4Y9kC2y2vSM7Nm+nYpKc0b8mdOBPxl2DIr+ag==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=JBeulich@xxxxxxxx;
  • Cc: "Fredy P." <fredy.pulido@xxxxxxxxxxxxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 25 Jul 2019 14:46:13 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVQu0HpijgxWKHrUqY6YxdJv9yhqbbWYdZgAAC64CAAAVCp4AAA8MA
  • Thread-topic: [Xen-devel] CPU frequency throttling based on the temperature

On 25.07.2019 16:17, Roger Pau Monné  wrote:
> On Thu, Jul 25, 2019 at 01:59:22PM +0000, Jan Beulich wrote:
>> On 25.07.2019 15:47, Roger Pau Monné  wrote:
>>> On Thu, Jul 25, 2019 at 09:29:01AM -0400, Fredy P. wrote:
>>>> On Thu, 2019-07-25 at 15:13 +0200, Roger Pau Monné wrote:
>>>>> On Thu, Jul 25, 2019 at 12:54:46PM +0000, Jan Beulich wrote:
>>>>>> On 25.07.2019 14:44,  Fredy P.  wrote:
>>>>>>> On Wed, 2019-07-24 at 17:41 +0200, Roger Pau Monné wrote:
>>>>>>>>>> What hardware interface does thermald (or the driver in
>>>>>>>>>> Linux if
>>>>>>>>>> there's one) use to get the temperature data?
>>>>>>>
>>>>>>> In our initial POC using Xen 4.8.x we where using Linux coretemp
>>>>>>> driver
>>>>>>> reading by example /class/sys/hwmon/hwmon0/temp3_input but it got
>>>>>>> deprecated at commit 72e038450d3d5de1a39f0cfa2d2b0f9b3d43c6c6
>>>>>>
>>>>>> Hmm, I wouldn't call this deprecation, but a regression. I would
>>>>>> say we want to re-expose this leaf to Dom0, the more that the
>>>>>> commit also only mentions unprivileged domains. Andrew?
>>>>>
>>>>> AFAICT from the documents provided by Fredy the temperature is read
>>>>> from a MSR that reports the current temperature of the core on which
>>>>> the MSR is read from. When running on Xen this will only work
>>>>> correctly if dom0 is given the same vCPUs as pCPUs and those are
>>>>> identity pinned.
>>>>
>>>> I just want to be sure I got it correctly, by saying "When running on
>>>> Xen this will only work correctly if ..." means in a future
>>>> implementation or that right now could work if I pin this v/pCPUS?
>>>
>>> No, right now there's no way to get this data from dom0, regardless of
>>> the pinning.
>>
>> Of course you can, using the MSR "device" Linux optionally
>> provides (plus perhaps the rdmsr utility from the msr-tools
>> package).
> 
> But you won't get coherent results, since the vCPU might be jumping
> from pCPU to pCPU, thus returning values from multiple different pCPUs
> regardless of whether all rdmsr have been executed from the same vCPU
> from dom0 PoV.

I don't understand. Earlier you said "regardless of the pinning".
That's what my response was to, i.e. I was implying vCPU-s to be
pinned.

Jan
_______________________________________________
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®.