[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>, Fredy P. <fredy.pulido@xxxxxxxxxxxxxxxxxxxx>
  • From: Jan Beulich <JBeulich@xxxxxxxx>
  • Date: Wed, 24 Jul 2019 14:47:19 +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=ogKDJTVgPo1eZ0Wf2g970RLw7pDtE7D5XJ06yKVT0kI=; b=UetR7Po1m4jfO9GPKtiRd1GyIWN8vCvk2eJVRt1dGghdQdG+4bVCwKPVKxRJlzYykZYOiyqTD4k3Uw2q9cfPxkwfVoqUYKhgZmRXwhWnsd/L0bwv5O5RU0OouNdAVIj2pAjFE5zwVMI4C5Uds2HIiJLwxO1oBFW4DVZerB/lFJ8MKKGZ2tmcVVYXm+3njpWi90YuJkA4sI+MqvvQPJ4FG7LUuW7AVvu/y6/PlEule6D0YsJzAWY13+w0QzZTU7mB+acMDKtN4mkdYurLfvZaAWQjMsdHsdzKk0UWTeu1QHF/ZSTmGN3NZTjOJHNHYar/U5rf4IwX9q5hANTDiTvlng==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i5ckIU+SvH0lIChals/MvXgSB/MZ6lntGYTl29qoE8s22fMSi4CxmOiWtrIkimef8TJQXTYO3bv6/c1Z7mwLjnmsV3OAxy33jjwTnJgrc+rcNos92pzvgMzxRhkRTDH+5hyhKu31TB6AQzeXlUWP1/7PRIFUWf+6Z4fqAWf9FDW0QQRDMYl5aAqD+wOQCBeuIKZVf+G2cNoSTmoVKQRQFCv0ec/EN78LVpL7DXnAvojJxsem5atErksVykmshenjJvIMkm7crU72uEhfqw2+8SE4zO/2rMfJZX+8C/134o1oLMdlea4vYVNOl9g374T5sgJdygDedjynpu8Oh0fnCw==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=JBeulich@xxxxxxxx;
  • Cc: "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Wed, 24 Jul 2019 14:55:56 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVQiidALk+x0uDw0GmzsE7VlPwJabZ1pPngAACeAA=
  • Thread-topic: [Xen-devel] CPU frequency throttling based on the temperature

On 24.07.2019 16:36, Roger Pau Monné  wrote:
> On Wed, Jul 24, 2019 at 10:01:40AM -0400, Fredy P. wrote:
>> 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?

The original authors of P- and C-state handling look to have
assumed that T-state handling should work similarly, i.e. by
Dom0 uploading relevant data. See public/platform.h starting at

#define XENPF_set_processor_pminfo      54

where in particular you'll find

#define XEN_PM_TX   2

Additionally "done by dom0 using xenpm" still means Xen carrying
out the actual operation. And xenpm of course is only an
auxiliary tool by which an admin can influence overall behavior,
it doesn't replace a proper governor.

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