Re: [PATCH v2 4/6] fs/resctrl: Disallow the software controller when mbm counters are assignable
From: Ben Horgan
Date: Tue Mar 17 2026 - 07:13:32 EST
Hi Reinette,
On 3/16/26 21:35, Reinette Chatre wrote:
> Hi Ben,
>
> On 3/13/26 10:45 AM, Ben Horgan wrote:
>> The software controller requires that there are free running mbm counters
>
> How is "free running" defined?
I mean that for each control group (and it's associated monitor groups) there are
dedicated MBM counters which are always present and always counting.
So, mon_event_count() always provides a value representative of the traffic
for that control group.
>
> (sidenote: please use upper case for acronyms throughout: mbm -> MBM)
Ack
>
>> for each control group in order to provide the feedback necessary to
>> control the memory bandwidth allocation for that control group. Previous
>> to the introduction counter assignment support (ABMC) resctrl required this
>
> I am not able to parse this second sentence. "to the introduction" -> "to
> the introduction of"? What does "this" refer to?
The 'this' was referring to the first sentence, that you need dedicated counters.
>
>> in order to advertise support for mbm but now if the mbm counters are
>> assignable then this can't be guaranteed.
>>
>> Currently, only AMD systems support counter assignment but the MBA is non
>> linear and so the software controller is never supported anyway. For MPAM
>> systems the MBA is linear and so the dependency on counters not being
>> assignable needs to made explicit. Hence, fail the mount if the user
>
> It is not clear to me that software controller depends on counters not being
> assignable. Is the problem not instead that the current implementation does not
> support this since it allows the event used by software controller to not have a
> counter assigned? So, instead of adding support for software controller by ensuring
> that the event used by software controller has a counter assigned, this patch opts
> for the simpler disabling of software controller when assignable counters are in use?
Yes, they are not fundamentally incompatible but it would require some changes
to the resctrl interface. Unless there are sufficient counters to have one per monitor
group it will always be the case that creating more groups will lead to missing a counter
for the software controller on one of the control groups. As I understand it, resctrl
doesn't have a way to indicate that you only get a control on certain control groups.
For MPAM it is possible to have counters that only match on PARTID and ignore PMG which
could reduce the counters needed to support the software controller. However, one
complication is that the (ignore PMG) counter doesn't match the count for the control
group if it has monitor groups with unassigned counters.
Thanks,
Ben
>
>> requests the software controller, the mba_MBps option, and the mbm counters
>> are assignable.
>
> Reinette
>