Re: [RFC v3] arm,x86,fs/resctrl: Generic schema description Proof of Concept

From: Reinette Chatre

Date: Fri Nov 20 2026 - 15:26:39 EST


Hi Fenghua,

On 11/20/26 11:48 AM, Fenghua Yu wrote:
>
>
> On 11/19/26 21:04, Reinette Chatre wrote:
>> Hi Everybody,
>>
>> I believe that discussions around resctrl's upcoming support for multiple
>> controls are starting to settle. This RFC aims to capture all the remaining
>> items in implementation as well as documentation. Please point out to me if
>> there is anything I missed.
>>
>> RFC v3 of this PoC can be found at:
>> git://git.kernel.org/pub/scm/linux/kernel/git/reinette/linux.git branch resctrl/controls_rfc_v3
>>
>> Please refer to the documentation patch for an overview of the planned interface
>> changes as well as user space contracts/expectations:
>>
>> https://git.kernel.org/pub/scm/linux/kernel/git/reinette/linux.git/commit/?h=resctrl/controls_rfc_v3&id=95ff9ff7430095cb7264946c944c750315db73d9
>>
>> Remaining opens:
>> ---------------
>> - Ben: I do have a question about the formula used to determine the size of
>>    a scalar cache control. Please see patch changelog of:
>>    https://git.kernel.org/pub/scm/linux/kernel/git/reinette/linux.git/commit/?h=resctrl/controls_rfc_v3&id=8695aab0997d5aa60e104374fae9701f51156c18
>> - MPAM only compile tested.
>
> Basic MPAM tests work fine.
>
Thank you very much for testing this. Much appreciated.

This version implements the naming format that Ben pointed out to you in

https://lore.kernel.org/all/10d97df6-ccfc-4025-9773-0ebe7421cbaf@xxxxxxx/

that points to a discussion during RFC v1 of the PoC, which continued in RFC v2
and finally settled there as

https://lore.kernel.org/all/bccb1249-e722-451a-9c75-8aa846713045@xxxxxxxxx/

In this version, the driver is required to set a scope when creating a new control
and resctrl filesystem constructs the final name. The new naming should "just work"
for features built on top of this. Please let me know where it does not.

Reinette