Hi Tony, On 2/18/25 8:51 AM, Luck, Tony wrote: >> Based on the discussion so far, it felt like it is not a group level >> breakdown. It is kind of global level breakdown. I could be wrong here. >> >> My understanding so far, MPAM has a number of global counters. It can be >> assigned to any domain in the system and monitor events. >> >> They also have a way to configure the events (read, write or both). >> >> Both these feature are inline with current resctrl implementation and can >> be easily adapted. >> >> One thing I am not clear why MPAM implementation plans to create separate >> files(dynamically) in /sys/fs/resctrl/info/L3_MON/ directory to read the >> events. We already have files in each group to read the events. >> >> # ls -l /sys/fs/resctrl/mon_data/mon_L3_00/ >> total 0 >> -r--r--r--. 1 root root 0 Feb 17 08:16 llc_occupancy >> -r--r--r--. 1 root root 0 Feb 17 08:16 mbm_local_bytes >> -r--r--r--. 1 root root 0 Feb 17 08:16 mbm_total_bytes > > It would be nice if the filenames here reflected the reconfigured > events. From what I can tell on AMD with BMEC it is possible to change the > underlying events so that local b/w is reported in the mbm_total_bytes > file, and vice versa. Or an event like: > > 6 Dirty Victims from the QOS domain to all types of memory > > is counted. > > Though maybe we'd need to create a lot of filenames for the 2**6 > combinations of bits. Instead of accommodating all possible names resctrl could support "generic" names as hinted in Dave Martin's proposal. The complication with BMEC is that these are the underlying mbm_local_bytes and mbm_total_bytes events on which configuration was built. Specifically, by default and at hardware reset mbm_local_bytes counts exactly that. The event is fixed if BMEC is not supported and configurable if it is. Reinette [1] https://lore.kernel.org/lkml/Z6zeXby8ajh0ax6i@xxxxxxxxxxxxxxx/