Re: [PATCH v2 1/6] sched/stats: Print domain name in /proc/schedstat

From: Sapkal, Swapnil
Date: Mon Nov 25 2024 - 07:31:46 EST


Hello Peter,

On 11/22/2024 4:42 PM, Peter Zijlstra wrote:
On Fri, Nov 22, 2024 at 08:44:47AM +0000, Swapnil Sapkal wrote:

schedstat version has not been updated since this change merely adds
additional information to the domain name field and does not add a new
field altogether.

So I don't care much either way, but if an existing tool is trying to
parse the domain number, it might now get confused by the extra
characters. I know of no such tool, just being pedantic.

I will change the schedstat version so that it will not break any existing tools.

However the domain name is under CONFIG_SCHED_DEBUG and thus incrementing the schedstats version is not sufficient when this config option is disabled. Is it okay for you to move domain name out of CONFIG_SCHED_DEBUG?

Previously, I sent couple of patches to change the schedstat layout for
* Correctly accounting the different types of imbalances [1]
* Accurately computing the task hot migrations [2] (This was your patch)
I would like to include these two patches that better helps justify the version change. Is that okay by you?

[1] https://lore.kernel.org/all/20240514044445.1409976-1-swapnil.sapkal@xxxxxxx/
[2] https://lore.kernel.org/all/20230614102224.12555-1-swapnil.sapkal@xxxxxxx/

--
Thanks and Regards,
Swapnil