Skip to content

Commit aaa5fa3

Browse files
Fenghua Yubp3tk0v
authored andcommitted
Documentation/x86: Document resctrl's new sparse_masks
The documentation mentions that non-contiguous bit masks are not supported in Intel Cache Allocation Technology (CAT). Update the documentation on how to determine if sparse bit masks are allowed in L2 and L3 CAT. Signed-off-by: Fenghua Yu <[email protected]> Signed-off-by: Maciej Wieczor-Retman <[email protected]> Signed-off-by: Borislav Petkov (AMD) <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]> Reviewed-by: Peter Newman <[email protected]> Reviewed-by: Reinette Chatre <[email protected]> Reviewed-by: Babu Moger <[email protected]> Tested-by: Peter Newman <[email protected]> Link: https://lore.kernel.org/r/3e9610997164f648e15c5c2e90d4944ce36504fe.1696934091.git.maciej.wieczor-retman@intel.com
1 parent 4dba8f1 commit aaa5fa3

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

Documentation/arch/x86/resctrl.rst

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,13 @@ related to allocation:
124124
"P":
125125
Corresponding region is pseudo-locked. No
126126
sharing allowed.
127+
"sparse_masks":
128+
Indicates if non-contiguous 1s value in CBM is supported.
129+
130+
"0":
131+
Only contiguous 1s value in CBM is supported.
132+
"1":
133+
Non-contiguous 1s value in CBM is supported.
127134

128135
Memory bandwidth(MB) subdirectory contains the following files
129136
with respect to allocation:
@@ -445,12 +452,13 @@ For cache resources we describe the portion of the cache that is available
445452
for allocation using a bitmask. The maximum value of the mask is defined
446453
by each cpu model (and may be different for different cache levels). It
447454
is found using CPUID, but is also provided in the "info" directory of
448-
the resctrl file system in "info/{resource}/cbm_mask". Intel hardware
455+
the resctrl file system in "info/{resource}/cbm_mask". Some Intel hardware
449456
requires that these masks have all the '1' bits in a contiguous block. So
450457
0x3, 0x6 and 0xC are legal 4-bit masks with two bits set, but 0x5, 0x9
451-
and 0xA are not. On a system with a 20-bit mask each bit represents 5%
452-
of the capacity of the cache. You could partition the cache into four
453-
equal parts with masks: 0x1f, 0x3e0, 0x7c00, 0xf8000.
458+
and 0xA are not. Check /sys/fs/resctrl/info/{resource}/sparse_masks
459+
if non-contiguous 1s value is supported. On a system with a 20-bit mask
460+
each bit represents 5% of the capacity of the cache. You could partition
461+
the cache into four equal parts with masks: 0x1f, 0x3e0, 0x7c00, 0xf8000.
454462

455463
Memory bandwidth Allocation and monitoring
456464
==========================================

0 commit comments

Comments
 (0)