Re: [PATCH v9 09/26] x86/resctrl: Introduce interface to display number of monitoring counters

From: Reinette Chatre
Date: Fri Nov 15 2024 - 19:07:01 EST


Hi Babu,

On 10/29/24 4:21 PM, Babu Moger wrote:
> The mbm_cntr_assign mode provides an option to the user to assign a
> counter to an RMID, event pair and monitor the bandwidth as long as
> the counter is assigned. Number of assignments depend on number of
> monitoring counters available.
>
> Provide the interface to display the number of monitoring counters
> supported. The interface file 'num_mbm_cntrs' is available when an
> architecture supports mbm_cntr_assign mode.
>

As mentioned in previous patch, do you think it may be possible to
have a value for num_mbm_cntrs for non-ABMC AMD systems? If that is
available and always exposed to user space (irrespective of
mbm_cntr_assign mode) then it would be clear to user space on
benefits/risks of running a "default" mode.

Reinette