Skip to content
This repository was archived by the owner on Nov 8, 2023. It is now read-only.

Commit ea34999

Browse files
aeglbp3tk0v
authored andcommitted
x86/resctrl: Update documentation with Sub-NUMA cluster changes
With Sub-NUMA Cluster (SNC) mode enabled, the scope of monitoring resources is per-NODE instead of per-L3 cache. Backwards compatibility is maintained by providing files in the mon_L3_XX directories that sum event counts for all SNC nodes sharing an L3 cache. New files provide per-SNC node event counts. Users should be aware that SNC mode also affects the amount of L3 cache available for allocation within each SNC node. 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-20-tony.luck@intel.com
1 parent 1348815 commit ea34999

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

Documentation/arch/x86/resctrl.rst

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,10 @@ When monitoring is enabled all MON groups will also contain:
375375
all tasks in the group. In CTRL_MON groups these files provide
376376
the sum for all tasks in the CTRL_MON group and all tasks in
377377
MON groups. Please see example section for more details on usage.
378+
On systems with Sub-NUMA Cluster (SNC) enabled there are extra
379+
directories for each node (located within the "mon_L3_XX" directory
380+
for the L3 cache they occupy). These are named "mon_sub_L3_YY"
381+
where "YY" is the node number.
378382

379383
"mon_hw_id":
380384
Available only with debug option. The identifier used by hardware
@@ -484,6 +488,29 @@ if non-contiguous 1s value is supported. On a system with a 20-bit mask
484488
each bit represents 5% of the capacity of the cache. You could partition
485489
the cache into four equal parts with masks: 0x1f, 0x3e0, 0x7c00, 0xf8000.
486490

491+
Notes on Sub-NUMA Cluster mode
492+
==============================
493+
When SNC mode is enabled, Linux may load balance tasks between Sub-NUMA
494+
nodes much more readily than between regular NUMA nodes since the CPUs
495+
on Sub-NUMA nodes share the same L3 cache and the system may report
496+
the NUMA distance between Sub-NUMA nodes with a lower value than used
497+
for regular NUMA nodes.
498+
499+
The top-level monitoring files in each "mon_L3_XX" directory provide
500+
the sum of data across all SNC nodes sharing an L3 cache instance.
501+
Users who bind tasks to the CPUs of a specific Sub-NUMA node can read
502+
the "llc_occupancy", "mbm_total_bytes", and "mbm_local_bytes" in the
503+
"mon_sub_L3_YY" directories to get node local data.
504+
505+
Memory bandwidth allocation is still performed at the L3 cache
506+
level. I.e. throttling controls are applied to all SNC nodes.
507+
508+
L3 cache allocation bitmaps also apply to all SNC nodes. But note that
509+
the amount of L3 cache represented by each bit is divided by the number
510+
of SNC nodes per L3 cache. E.g. with a 100MB cache on a system with 10-bit
511+
allocation masks each bit normally represents 10MB. With SNC mode enabled
512+
with two SNC nodes per L3 cache, each bit only represents 5MB.
513+
487514
Memory bandwidth Allocation and monitoring
488515
==========================================
489516

0 commit comments

Comments
 (0)