[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 13:43:34 +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=CUyiF6kGYzGot0gbm2/Q2Lz9PVBarD1Y+sM3Tv/zBpc=; b=NuXU2I0a3pvvlz8+jaYuHezCnKcHSrFG2fAGHNDW+VkmtJs3VzVGM0LOdUiAlAQWcm9cKSaTvWP0oxGTiA98BQIoermPTXz3Rg16CNdrjMIsUqCeT/ISaVR0o6zBA4L+D3RndcieHtnMeqJ/2ouhQeIa+DnlgzebuQe6UaMFthwhBOQlMpyb+ndhCPpBUfcxSqL2C2RLmPtJZuUO6/VKQKBFSiTrSUOgezMV+TJU5DphiIGwInecRyxMTWkINPMQYAf0X5LQ7GO5U846sXK5Q+KYtxIH2hD0UWIE+OcxX7I5UhY23mCCH8aog+Wff565qKWmIFZuaFIVLwx5r6FDmg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=RFXRf70YMxIrnr5EwBT8Gp1lh84rvur3m5mqACEHeYccjyazk0huIyEYXOvledEDBhn+14eiegj2fIosoKHOZBcqQupTwNtP2oPVM3QvG+XeWvK2Vcy94V/VNWoFxBklqy9kcHhr8gqohCHa0RQFiycDLxQZcHV3LIySQsC3vJ+dPv52G6BeRRWvTV7GpPpWwNqmoRBVZ4FYvv6+LkEl0fVcaoA01M5ExvQfeuqt4S6IKN3kX0UM5jUo810iCB1C0kwzAM7m7jvFxGjaXnqOVdn2qYZdm90xFlMK+JvLHXHg+LA7vhNxfp9pHLOXyz+9C+Ep3FA8E4gzXeser4jFmw==
  • 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 13:48:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVQiidALk+x0uDw0GmzsE7VlPwJabZ1pPngAANq/uAAARaX4ABYPjhgAACXQCAAAWCgoAACCGA
  • Thread-topic: [Xen-devel] CPU frequency throttling based on the temperature

On 25.07.2019 15:13, 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.
> 
> Not sure how common this MSR interface is in order to read thermal
> values, if the interface it's common maybe it's something that could
> be implemented in Xen, and exported somehow to dom0, maybe using
> sysctl?
> 
> Or else having an hypercall that allows dom0 to request Xen to execute
> MSR read/writes on a given pCPU.

This would look to require just a small extension to
XEN_RESOURCE_OP_MSR_READ. Question is whether the Linux driver
maintainers would accept a change using this Xen-specific
alternative access mechanism (in whatever shape).

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