[PATCH v4 26/41] arm_mpam: resctrl: Add support for 'MB' resource
Zeng Heng
zengheng4 at huawei.com
Thu Feb 12 23:38:09 PST 2026
Hi Ben,
On 2026/2/6 0:50, Jonathan Cameron wrote:
> On Tue, 3 Feb 2026 21:43:27 +0000
> Ben Horgan <ben.horgan at arm.com> wrote:
>
>> From: James Morse <james.morse at arm.com>
>>
>> resctrl supports 'MB', as a percentage throttling of traffic from the
>> L3. This is the control that mba_sc uses, so ideally the class chosen
>> should be as close as possible to the counters used for mbm_total. If
>> there is a single L3 and the topology of the memory matches then the
>> traffic at the memory controller will be equivalent to that at egress of
>> the L3. If these conditions are met allow the memory class to back MB.
>>
>> MB's percentage control should be backed either with the fixed point
>> fraction MBW_MAX or bandwidth portion bitmaps. The bandwidth portion
>> bitmaps is not used as its tricky to pick which bits to use to avoid
>> contention, and may be possible to expose this as something other than a
>> percentage in the future.
>
> I'm very curious to know whether this heuristic is actually useful on many
> systems or whether many / most of them fail this 'shape' heuristic.
>
The current MPAM driver has restrictions that limit MB control support.
For example, on some systems, the MPAM memory class MSCs are not located
at the L3 cache but rather at the memory controller (e.g., Mata). In
such cases, MB control and mbm_total bandwidth monitoring cannot be
enabled.
I'm unsure whether the community would welcome and be willing to review
a patch series supporting such systems. Of course, the changes would
involve minor refactoring in the resctrl common layer.
Any feedback would be greatly appreciated.
Best Regards,
Zeng Heng
More information about the linux-arm-kernel
mailing list