[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [PATCH v2 10/19] xen/sysctl: introduce CONFIG_PM_STATS
- To: Jan Beulich <jbeulich@xxxxxxxx>
- From: "Penny, Zheng" <penny.zheng@xxxxxxx>
- Date: Wed, 16 Apr 2025 08:38:08 +0000
- Accept-language: en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=amd.com; dmarc=pass action=none header.from=amd.com; dkim=pass header.d=amd.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=fxpyWd5KMf+liIXvCETDmdk9xIjSAg71tWtjTLusOhU=; b=upBpXR+UDVwPfT1T/eGELd3DpMwgubInfMqy17D0mO/RI/XhlO9P7ifWBnmg0pCXvXlyWchUWfDNHoNiiF06Dwg3yA/qM3q+nqfSCGPRFNk2Z6K51xGeGClcEhz+8JdKY4U+bZonPNNrCiQfZKu11IKrvoEwQ4tLGOCkudvmBVzI6o3TaA8Ela16rDEgfW1I9T6a/NABVJ+JTEnvKo35VwtTw/60RfgdlragW7L4el/vWpun/LoPGiTJiaRSXfhJYs8bxiN/6cd7goCmr7mbWggZEQV243IGfYxflNw9lbcd6kNgAWAvTiAtatbg7y/QMa4RqW+jC76ZNhd38jF7zg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VuOhAX9oSRphGvKddoBKr8XXxUCblD/XhoI/4rwfNg+IdcLNBeh3cjGhagIzPsSrIWJCvGFDPTU0uPTKkXkAFcF8Myl1WNqDFrXh5bNrMhbZLO1pS06EurE3iCn13uP7VfqfL+I0RjO6Yw+GG8H2RNZqvK335zjH8LMyYfZagcq2mwI7oMDxTX87YBQ+5uzpgsYZbys0dNijlw+Fmav/yJUxLE7uZ8ftdhqdKUnfRkB+xnstYTYM2Q8TZc3kuexELpwsfxzEgd7o+gTV8T7dMvhf2cTAyxCEzXpGJYj5HFlRxHuaxA0aR620nsZyCyePLMEZ+6o/e8zjLaSOhMXv+w==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=amd.com;
- Cc: "Stabellini, Stefano" <stefano.stabellini@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- Delivery-date: Wed, 16 Apr 2025 08:38:31 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Msip_labels: MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_ActionId=7e4ee221-c559-45fb-93ed-8c519a00e044;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_ContentBits=0;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Enabled=true;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Method=Privileged;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Name=Open Source;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_SetDate=2025-04-16T08:37:59Z;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_SiteId=3dd8961f-e488-4e60-8e11-a82d994e183d;MSIP_Label_f265efc6-e181-49d6-80f4-fae95cf838a0_Tag=10, 0, 1, 1;
- Thread-index: AQHbnhN0GO5sSI+g2kqtQPzlgrAUG7OO0pKAgBbuLcCAADcSAIAAF55A
- Thread-topic: [PATCH v2 10/19] xen/sysctl: introduce CONFIG_PM_STATS
[Public]
Hi,
> -----Original Message-----
> From: Jan Beulich <jbeulich@xxxxxxxx>
> Sent: Wednesday, April 16, 2025 2:37 PM
> To: Penny, Zheng <penny.zheng@xxxxxxx>
> Cc: Stabellini, Stefano <stefano.stabellini@xxxxxxx>; xen-
> devel@xxxxxxxxxxxxxxxxxxxx
> Subject: Re: [PATCH v2 10/19] xen/sysctl: introduce CONFIG_PM_STATS
>
> On 16.04.2025 05:54, Penny, Zheng wrote:
> >> -----Original Message-----
> >> From: Jan Beulich <jbeulich@xxxxxxxx>
> >> Sent: Tuesday, April 1, 2025 9:10 PM
> >>
> >> On 26.03.2025 06:50, Penny Zheng wrote:
> >>> --- a/xen/common/Kconfig
> >>> +++ b/xen/common/Kconfig
> >>> @@ -557,4 +557,9 @@ config SYSCTL
> >>> to reduce Xen footprint.
> >>> endmenu
> >>>
> >>> +config PM_STATS
> >>> + bool "Enable Performance Management Statistics"
> >>> + depends on ACPI && HAS_CPUFREQ && SYSCTL
> >>> + default y
> >>
> >> As per above - either name, prompt and the description that Stefano
> >> suggested are wrong, or it is too much that is being covered by this new
> control.
> >>
> >
> > We have two sysctl-op on performance, do_get_pm_info() and do_pm_op().
> > I think do_get_pm_info() is to collect PM statistic info, which could
> > be wrapped with CONFIG_PM_STATS, while maybe do_pm_op() is more
> focusing on performance tuning.
> > How about we introduce another Kconfig CONFIG_PM_TUNE to wrap
> > do_pm_op() and related helpers? I suggest to introduce a new file pmtune.c
> > to
> contain.
> > Or any better suggestion?
>
> "tune" is too narrow imo. "ctrl" may be an option, but how about simply
> pm-op.c,
> fitting do_pm_op() pretty nicely? Question is what else is going to end up in
> that
> file.
>
The following functions will be included in pm_op.c and wrapped with PM_CTRL or
PM_OP
- get_cpufreq_para()
- set_cpufreq_para()
- set_cpufreq_gov()
- set_cpufreq_cppc()
- cpufreq_driver_getavg()
- cpufreq_update_turbo()
- cpufreq_get_turbo_status()
And description for PM_STATS, I'll take stefano's suggestion and for
PM_CTRL/PM_OP, maybe it will be
```
Enable userspace performance management control to do power/performance
analyzing and tuning
```
> Jan
|