RE: [PATCH v8 08/25] x86/resctrl: Introduce interface to display number of monitoring counters
From: Luck, Tony
Date: Mon Oct 14 2024 - 15:52:12 EST
> > What advantage does it have over skipping the per-domain list and
> > just providing a single value for all domains? You clearly expect this
> > will be a common user request since you implemented the "*" means
> > apply to all domains.
> >
>
> We started with a global assignment by applying assignment across all the
> domains initially.
>
> But we wanted give a generic approach which allows both the options(domain
> specific assignment and global assignment with '*"). It is also matches
> with other managements (RMID/CLOSID management) we are doing in resctrl
> right now. Also, there is an extra IPI for each domain if user is only
> interested in on domain.
>
> Some of the discussions are here.
> https://lore.kernel.org/lkml/f7dac996d87b4144e4c786178a7fd3d218eaebe8.1711674410.git.babu.moger@xxxxxxx/#r
My summary of that:
Peter: Complex, don't need per-domain.
Reinette: Maybe some architecture might want per-domain.
Since you seem to want to keep the flexibility for a possible future
where per-domain is needed. The "available_mbm_cntrs" file
suggested in another thread would need to list available counters
on each domain to avoid ABI problems should that future arrive.
$ cat num_mbm_counters
32
$ cat available_mbm_cntrs
0=12;1=9
Current implementation would show same number for all domains.
-Tony