]> www.infradead.org Git - linux.git/commit
x86/resctrl: Create Sub-NUMA Cluster (SNC) monitor files
authorTony Luck <tony.luck@intel.com>
Fri, 28 Jun 2024 21:56:13 +0000 (14:56 -0700)
committerBorislav Petkov (AMD) <bp@alien8.de>
Tue, 2 Jul 2024 17:49:54 +0000 (19:49 +0200)
commit0158ed6a1335ff37f0336a986d7b99d6e97d46e9
tree48e12f0c13f8f2df230a020e5058fdd114cb0d82
parent92b5d0b1189ea9e9f00ae493fc99102fe7f2442f
x86/resctrl: Create Sub-NUMA Cluster (SNC) monitor files

When SNC mode is enabled, create subdirectories and files to monitor at the SNC
node granularity. Legacy behavior is preserved by tagging the monitor files at
the L3 granularity with the "sum" attribute.  When the user reads these files
the kernel will read monitor data from all SNC nodes that share the same L3
cache instance and return the aggregated value to the user.

Note that the "domid" field for files that must sum across SNC domains has the
L3 cache instance id, while non-summing files use the domain id.

The "sum" files do not need to make a call to mon_event_read() to initialize
the MBM counters. This will be handled by initializing the individual SNC nodes
that share the L3.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Reinette Chatre <reinette.chatre@intel.com>
Tested-by: Babu Moger <babu.moger@amd.com>
Link: https://lore.kernel.org/r/20240628215619.76401-14-tony.luck@intel.com
arch/x86/kernel/cpu/resctrl/rdtgroup.c