qsphinx.addnodesdocument)}( rawsourcechildren]( translations LanguagesNode)}(hhh](h pending_xref)}(hhh]docutils.nodesTextChinese (Simplified)}parenthsba attributes}(ids]classes]names]dupnames]backrefs] refdomainstdreftypedoc reftarget$/translations/zh_CN/arch/x86/resctrlmodnameN classnameN refexplicitutagnamehhh ubh)}(hhh]hChinese (Traditional)}hh2sbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget$/translations/zh_TW/arch/x86/resctrlmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hItalian}hhFsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget$/translations/it_IT/arch/x86/resctrlmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hJapanese}hhZsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget$/translations/ja_JP/arch/x86/resctrlmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hKorean}hhnsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget$/translations/ko_KR/arch/x86/resctrlmodnameN classnameN refexplicituh1hhh ubh)}(hhh]hSpanish}hhsbah}(h]h ]h"]h$]h&] refdomainh)reftypeh+ reftarget$/translations/sp_SP/arch/x86/resctrlmodnameN classnameN refexplicituh1hhh ubeh}(h]h ]h"]h$]h&]current_languageEnglishuh1h hh _documenthsourceNlineNubhcomment)}(h SPDX-License-Identifier: GPL-2.0h]h SPDX-License-Identifier: GPL-2.0}hhsbah}(h]h ]h"]h$]h&] xml:spacepreserveuh1hhhhhh>/var/lib/git/docbuild/linux/Documentation/arch/x86/resctrl.rsthKubh)}(h4This data file has been placed in the public domain.h]h4This data file has been placed in the public domain.}hhsbah}(h]h ]h"]h$]h&]hhuh1hhhhhho/srv/docbuild/lib/venvs/build-kernel-docs/lib64/python3.9/site-packages/docutils/parsers/rst/include/isonum.txthKubh)}(hDerived from the Unicode character mappings available from . Processed by unicode2rstsubs.py, part of Docutils: .h]hDerived from the Unicode character mappings available from . Processed by unicode2rstsubs.py, part of Docutils: .}hhsbah}(h]h ]h"]h$]h&]hhuh1hhhhhhhhKubhsubstitution_definition)}(h*.. |amp| unicode:: U+00026 .. AMPERSANDh]h&}hhsbah}(h]h ]h"]ampah$]h&]uh1hhhhKhhhhubh)}(h+.. |apos| unicode:: U+00027 .. APOSTROPHEh]h'}hhsbah}(h]h ]h"]aposah$]h&]uh1hhhhKhhhhubh)}(h).. |ast| unicode:: U+0002A .. ASTERISKh]h*}hhsbah}(h]h ]h"]astah$]h&]uh1hhhhK hhhhubh)}(h+.. |brvbar| unicode:: U+000A6 .. BROKEN BARh]h¦}hjsbah}(h]h ]h"]brvbarah$]h&]uh1hhhhK hhhhubh)}(h0.. |bsol| unicode:: U+0005C .. REVERSE SOLIDUSh]h\}hjsbah}(h]h ]h"]bsolah$]h&]uh1hhhhK hhhhubh)}(h*.. |cent| unicode:: U+000A2 .. CENT SIGNh]h¢}hjsbah}(h]h ]h"]centah$]h&]uh1hhhhK hhhhubh)}(h&.. |colon| unicode:: U+0003A .. COLONh]h:}hj-sbah}(h]h ]h"]colonah$]h&]uh1hhhhK hhhhubh)}(h&.. |comma| unicode:: U+0002C .. COMMAh]h,}hj<sbah}(h]h ]h"]commaah$]h&]uh1hhhhKhhhhubh)}(h... |commat| unicode:: U+00040 .. COMMERCIAL ATh]h@}hjKsbah}(h]h ]h"]commatah$]h&]uh1hhhhKhhhhubh)}(h/.. |copy| unicode:: U+000A9 .. COPYRIGHT SIGNh]h©}hjZsbah}(h]h ]h"]copyah$]h&]uh1hhhhKhhhhubh)}(h... |curren| unicode:: U+000A4 .. CURRENCY SIGNh]h¤}hjisbah}(h]h ]h"]currenah$]h&]uh1hhhhKhhhhubh)}(h0.. |darr| unicode:: U+02193 .. DOWNWARDS ARROWh]h↓}hjxsbah}(h]h ]h"]darrah$]h&]uh1hhhhKhhhhubh)}(h,.. |deg| unicode:: U+000B0 .. DEGREE SIGNh]h°}hjsbah}(h]h ]h"]degah$]h&]uh1hhhhKhhhhubh)}(h... |divide| unicode:: U+000F7 .. DIVISION SIGNh]h÷}hjsbah}(h]h ]h"]divideah$]h&]uh1hhhhKhhhhubh)}(h,.. |dollar| unicode:: U+00024 .. DOLLAR SIGNh]h$}hjsbah}(h]h ]h"]dollarah$]h&]uh1hhhhKhhhhubh)}(h,.. |equals| unicode:: U+0003D .. EQUALS SIGNh]h=}hjsbah}(h]h ]h"]equalsah$]h&]uh1hhhhKhhhhubh)}(h1.. |excl| unicode:: U+00021 .. EXCLAMATION MARKh]h!}hjsbah}(h]h ]h"]exclah$]h&]uh1hhhhKhhhhubh)}(h9.. |frac12| unicode:: U+000BD .. VULGAR FRACTION ONE HALFh]h½}hjsbah}(h]h ]h"]frac12ah$]h&]uh1hhhhKhhhhubh)}(h<.. |frac14| unicode:: U+000BC .. VULGAR FRACTION ONE QUARTERh]h¼}hjsbah}(h]h ]h"]frac14ah$]h&]uh1hhhhKhhhhubh)}(h;.. |frac18| unicode:: U+0215B .. VULGAR FRACTION ONE EIGHTHh]h⅛}hjsbah}(h]h ]h"]frac18ah$]h&]uh1hhhhKhhhhubh)}(h?.. |frac34| unicode:: U+000BE .. VULGAR FRACTION THREE QUARTERSh]h¾}hjsbah}(h]h ]h"]frac34ah$]h&]uh1hhhhKhhhhubh)}(h>.. |frac38| unicode:: U+0215C .. VULGAR FRACTION THREE EIGHTHSh]h⅜}hjsbah}(h]h ]h"]frac38ah$]h&]uh1hhhhKhhhhubh)}(h=.. |frac58| unicode:: U+0215D .. VULGAR FRACTION FIVE EIGHTHSh]h⅝}hjsbah}(h]h ]h"]frac58ah$]h&]uh1hhhhKhhhhubh)}(h>.. |frac78| unicode:: U+0215E .. VULGAR FRACTION SEVEN EIGHTHSh]h⅞}hj,sbah}(h]h ]h"]frac78ah$]h&]uh1hhhhKhhhhubh)}(h2.. |gt| unicode:: U+0003E .. GREATER-THAN SIGNh]h>}hj;sbah}(h]h ]h"]gtah$]h&]uh1hhhhKhhhhubh)}(h9.. |half| unicode:: U+000BD .. VULGAR FRACTION ONE HALFh]h½}hjJsbah}(h]h ]h"]halfah$]h&]uh1hhhhK hhhhubh)}(h/.. |horbar| unicode:: U+02015 .. HORIZONTAL BARh]h―}hjYsbah}(h]h ]h"]horbarah$]h&]uh1hhhhK!hhhhubh)}(h'.. |hyphen| unicode:: U+02010 .. HYPHENh]h‐}hjhsbah}(h]h ]h"]hyphenah$]h&]uh1hhhhK"hhhhubh)}(h:.. |iexcl| unicode:: U+000A1 .. INVERTED EXCLAMATION MARKh]h¡}hjwsbah}(h]h ]h"]iexclah$]h&]uh1hhhhK#hhhhubh)}(h7.. |iquest| unicode:: U+000BF .. INVERTED QUESTION MARKh]h¿}hjsbah}(h]h ]h"]iquestah$]h&]uh1hhhhK$hhhhubh)}(hJ.. |laquo| unicode:: U+000AB .. LEFT-POINTING DOUBLE ANGLE QUOTATION MARKh]h«}hjsbah}(h]h ]h"]laquoah$]h&]uh1hhhhK%hhhhubh)}(h0.. |larr| unicode:: U+02190 .. LEFTWARDS ARROWh]h←}hjsbah}(h]h ]h"]larrah$]h&]uh1hhhhK&hhhhubh)}(h3.. |lcub| unicode:: U+0007B .. LEFT CURLY BRACKETh]h{}hjsbah}(h]h ]h"]lcubah$]h&]uh1hhhhK'hhhhubh)}(h;.. |ldquo| unicode:: U+0201C .. LEFT DOUBLE QUOTATION MARKh]h“}hjsbah}(h]h ]h"]ldquoah$]h&]uh1hhhhK(hhhhubh)}(h).. |lowbar| unicode:: U+0005F .. LOW LINEh]h_}hjsbah}(h]h ]h"]lowbarah$]h&]uh1hhhhK)hhhhubh)}(h1.. |lpar| unicode:: U+00028 .. LEFT PARENTHESISh]h(}hjsbah}(h]h ]h"]lparah$]h&]uh1hhhhK*hhhhubh)}(h4.. |lsqb| unicode:: U+0005B .. LEFT SQUARE BRACKETh]h[}hjsbah}(h]h ]h"]lsqbah$]h&]uh1hhhhK+hhhhubh)}(h;.. |lsquo| unicode:: U+02018 .. LEFT SINGLE QUOTATION MARKh]h‘}hjsbah}(h]h ]h"]lsquoah$]h&]uh1hhhhK,hhhhubh)}(h/.. |lt| unicode:: U+0003C .. LESS-THAN SIGNh]h<}hj sbah}(h]h ]h"]ltah$]h&]uh1hhhhK-hhhhubh)}(h+.. |micro| unicode:: U+000B5 .. MICRO SIGNh]hµ}hjsbah}(h]h ]h"]microah$]h&]uh1hhhhK.hhhhubh)}(h+.. |middot| unicode:: U+000B7 .. MIDDLE DOTh]h·}hj+sbah}(h]h ]h"]middotah$]h&]uh1hhhhK/hhhhubh)}(h/.. |nbsp| unicode:: U+000A0 .. NO-BREAK SPACEh]h }hj:sbah}(h]h ]h"]nbspah$]h&]uh1hhhhK0hhhhubh)}(h).. |not| unicode:: U+000AC .. NOT SIGNh]h¬}hjIsbah}(h]h ]h"]notah$]h&]uh1hhhhK1hhhhubh)}(h,.. |num| unicode:: U+00023 .. NUMBER SIGNh]h#}hjXsbah}(h]h ]h"]numah$]h&]uh1hhhhK2hhhhubh)}(h).. |ohm| unicode:: U+02126 .. OHM SIGNh]hΩ}hjgsbah}(h]h ]h"]ohmah$]h&]uh1hhhhK3hhhhubh)}(h;.. |ordf| unicode:: U+000AA .. FEMININE ORDINAL INDICATORh]hª}hjvsbah}(h]h ]h"]ordfah$]h&]uh1hhhhK4hhhhubh)}(h<.. |ordm| unicode:: U+000BA .. MASCULINE ORDINAL INDICATORh]hº}hjsbah}(h]h ]h"]ordmah$]h&]uh1hhhhK5hhhhubh)}(h-.. |para| unicode:: U+000B6 .. PILCROW SIGNh]h¶}hjsbah}(h]h ]h"]paraah$]h&]uh1hhhhK6hhhhubh)}(h-.. |percnt| unicode:: U+00025 .. PERCENT SIGNh]h%}hjsbah}(h]h ]h"]percntah$]h&]uh1hhhhK7hhhhubh)}(h*.. |period| unicode:: U+0002E .. FULL STOPh]h.}hjsbah}(h]h ]h"]periodah$]h&]uh1hhhhK8hhhhubh)}(h*.. |plus| unicode:: U+0002B .. PLUS SIGNh]h+}hjsbah}(h]h ]h"]plusah$]h&]uh1hhhhK9hhhhubh)}(h0.. |plusmn| unicode:: U+000B1 .. PLUS-MINUS SIGNh]h±}hjsbah}(h]h ]h"]plusmnah$]h&]uh1hhhhK:hhhhubh)}(h+.. |pound| unicode:: U+000A3 .. POUND SIGNh]h£}hjsbah}(h]h ]h"]poundah$]h&]uh1hhhhK;hhhhubh)}(h... |quest| unicode:: U+0003F .. QUESTION MARKh]h?}hjsbah}(h]h ]h"]questah$]h&]uh1hhhhKhhhhubh)}(h1.. |rarr| unicode:: U+02192 .. RIGHTWARDS ARROWh]h→}hjsbah}(h]h ]h"]rarrah$]h&]uh1hhhhK?hhhhubh)}(h4.. |rcub| unicode:: U+0007D .. RIGHT CURLY BRACKETh]h}}hj*sbah}(h]h ]h"]rcubah$]h&]uh1hhhhK@hhhhubh)}(h<.. |rdquo| unicode:: U+0201D .. RIGHT DOUBLE QUOTATION MARKh]h”}hj9sbah}(h]h ]h"]rdquoah$]h&]uh1hhhhKAhhhhubh)}(h0.. |reg| unicode:: U+000AE .. REGISTERED SIGNh]h®}hjHsbah}(h]h ]h"]regah$]h&]uh1hhhhKBhhhhubh)}(h2.. |rpar| unicode:: U+00029 .. RIGHT PARENTHESISh]h)}hjWsbah}(h]h ]h"]rparah$]h&]uh1hhhhKChhhhubh)}(h5.. |rsqb| unicode:: U+0005D .. RIGHT SQUARE BRACKETh]h]}hjfsbah}(h]h ]h"]rsqbah$]h&]uh1hhhhKDhhhhubh)}(h<.. |rsquo| unicode:: U+02019 .. RIGHT SINGLE QUOTATION MARKh]h’}hjusbah}(h]h ]h"]rsquoah$]h&]uh1hhhhKEhhhhubh)}(h-.. |sect| unicode:: U+000A7 .. SECTION SIGNh]h§}hjsbah}(h]h ]h"]sectah$]h&]uh1hhhhKFhhhhubh)}(h*.. |semi| unicode:: U+0003B .. SEMICOLONh]h;}hjsbah}(h]h ]h"]semiah$]h&]uh1hhhhKGhhhhubh)}(h,.. |shy| unicode:: U+000AD .. SOFT HYPHENh]h­}hjsbah}(h]h ]h"]shyah$]h&]uh1hhhhKHhhhhubh)}(h(.. |sol| unicode:: U+0002F .. SOLIDUSh]h/}hjsbah}(h]h ]h"]solah$]h&]uh1hhhhKIhhhhubh)}(h,.. |sung| unicode:: U+0266A .. EIGHTH NOTEh]h♪}hjsbah}(h]h ]h"]sungah$]h&]uh1hhhhKJhhhhubh)}(h0.. |sup1| unicode:: U+000B9 .. SUPERSCRIPT ONEh]h¹}hjsbah}(h]h ]h"]sup1ah$]h&]uh1hhhhKKhhhhubh)}(h0.. |sup2| unicode:: U+000B2 .. SUPERSCRIPT TWOh]h²}hjsbah}(h]h ]h"]sup2ah$]h&]uh1hhhhKLhhhhubh)}(h2.. |sup3| unicode:: U+000B3 .. SUPERSCRIPT THREEh]h³}hjsbah}(h]h ]h"]sup3ah$]h&]uh1hhhhKMhhhhubh)}(h4.. |times| unicode:: U+000D7 .. MULTIPLICATION SIGNh]h×}hjsbah}(h]h ]h"]timesah$]h&]uh1hhhhKNhhhhubh)}(h0.. |trade| unicode:: U+02122 .. TRADE MARK SIGNh]h™}hj sbah}(h]h ]h"]tradeah$]h&]uh1hhhhKOhhhhubh)}(h... |uarr| unicode:: U+02191 .. UPWARDS ARROWh]h↑}hjsbah}(h]h ]h"]uarrah$]h&]uh1hhhhKPhhhhubh)}(h... |verbar| unicode:: U+0007C .. VERTICAL LINEh]h|}hj)sbah}(h]h ]h"]verbarah$]h&]uh1hhhhKQhhhhubh)}(h*.. |yen| unicode:: U+000A5 .. YEN SIGN h]h¥}hj8sbah}(h]h ]h"]yenah$]h&]uh1hhhhKRhhhhubhsection)}(hhh](htitle)}(h+User Interface for Resource Control featureh]h+User Interface for Resource Control feature}(hjNhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjIhhhhhKubh field_list)}(hhh](hfield)}(hhh](h field_name)}(h Copyrighth]h Copyright}(hjhhhhNhNubah}(h]h ]h"]h$]h&]uh1jfhjchhhKubh field_body)}(h|copy| 2016 Intel Corporationh]h paragraph)}(hjzh](h©}(hj~hhhNhNubh 2016 Intel Corporation}(hj~hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhKhjxubah}(h]h ]h"]h$]h&]uh1jvhjcubeh}(h]h ]h"]h$]h&]uh1jahhhKhj^hhubjb)}(hhh](jg)}(hAuthorsh]hAuthors}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jfhjhhhKubjw)}(hs- Fenghua Yu - Tony Luck - Vikas Shivappa h]h bullet_list)}(hhh](h list_item)}(h!Fenghua Yu h]j})}(hjh](h Fenghua Yu <}(hjhhhNhNubh reference)}(hfenghua.yu@intel.comh]hfenghua.yu@intel.com}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:fenghua.yu@intel.comuh1jhjubh>}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhK hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hTony Luck h]j})}(hjh](h Tony Luck <}(hjhhhNhNubj)}(htony.luck@intel.comh]htony.luck@intel.com}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:tony.luck@intel.comuh1jhjubh>}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhK hjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(h+Vikas Shivappa h]j})}(h)Vikas Shivappa h](hVikas Shivappa <}(hjhhhNhNubj)}(hvikas.shivappa@intel.comh]hvikas.shivappa@intel.com}(hjhhhNhNubah}(h]h ]h"]h$]h&]refurimailto:vikas.shivappa@intel.comuh1jhjubh>}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhK hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]bullet-uh1jhhhK hjubah}(h]h ]h"]h$]h&]uh1jvhjubeh}(h]h ]h"]h$]h&]uh1jahhhK hj^hhubeh}(h]h ]h"]h$]h&]uh1j\hjIhhhhhKubj})}(hIntel refers to this feature as Intel Resource Director Technology(Intel(R) RDT). AMD refers to this feature as AMD Platform Quality of Service(AMD QoS).h]hIntel refers to this feature as Intel Resource Director Technology(Intel(R) RDT). AMD refers to this feature as AMD Platform Quality of Service(AMD QoS).}(hjUhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjIhhubj})}(hZThis feature is enabled by the CONFIG_X86_CPU_RESCTRL and the x86 /proc/cpuinfo flag bits:h]hZThis feature is enabled by the CONFIG_X86_CPU_RESCTRL and the x86 /proc/cpuinfo flag bits:}(hjchhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjIhhubhtable)}(hhh]htgroup)}(hhh](hcolspec)}(hhh]h}(h]h ]h"]h$]h&]colwidthK/uh1j{hjxubj|)}(hhh]h}(h]h ]h"]h$]h&]colwidthK uh1j{hjxubhtbody)}(hhh](hrow)}(hhh](hentry)}(hhh]j})}(h-RDT (Resource Director Technology) Allocationh]h-RDT (Resource Director Technology) Allocation}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j})}(h"rdt_a"h]h “rdt_a”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j})}(h!CAT (Cache Allocation Technology)h]h!CAT (Cache Allocation Technology)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j})}(h"cat_l3", "cat_l2"h]h“cat_l3”, “cat_l2”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j})}(h"CDP (Code and Data Prioritization)h]h"CDP (Code and Data Prioritization)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj ubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j})}(h"cdp_l3", "cdp_l2"h]h“cdp_l3”, “cdp_l2”}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j})}(hCQM (Cache QoS Monitoring)h]hCQM (Cache QoS Monitoring)}(hjEhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjBubah}(h]h ]h"]h$]h&]uh1jhj?ubj)}(hhh]j})}(h"cqm_llc", "cqm_occup_llc"h]h"“cqm_llc”, “cqm_occup_llc”}(hj\hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjYubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j})}(h!MBM (Memory Bandwidth Monitoring)h]h!MBM (Memory Bandwidth Monitoring)}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjyubah}(h]h ]h"]h$]h&]uh1jhjvubj)}(hhh]j})}(h "cqm_mbm_total", "cqm_mbm_local"h]h(“cqm_mbm_total”, “cqm_mbm_local”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjvubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j})}(h!MBA (Memory Bandwidth Allocation)h]h!MBA (Memory Bandwidth Allocation)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j})}(h"mba"h]h “mba”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j})}(h'SMBA (Slow Memory Bandwidth Allocation)h]h'SMBA (Slow Memory Bandwidth Allocation)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j})}(h""h]h“”}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j})}(h/BMEC (Bandwidth Monitoring Event Configuration)h]h/BMEC (Bandwidth Monitoring Event Configuration)}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j})}(h""h]h“”}(hj8hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj5ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjxubeh}(h]h ]h"]h$]h&]colsKuh1jvhjsubah}(h]h ]h"]h$]h&]uh1jqhjIhhhhhNubj})}(hXHistorically, new features were made visible by default in /proc/cpuinfo. This resulted in the feature flags becoming hard to parse by humans. Adding a new flag to /proc/cpuinfo should be avoided if user space can obtain information about the feature from resctrl's info directory.h]hXHistorically, new features were made visible by default in /proc/cpuinfo. This resulted in the feature flags becoming hard to parse by humans. Adding a new flag to /proc/cpuinfo should be avoided if user space can obtain information about the feature from resctrl’s info directory.}(hjehhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjIhhubj})}(h*To use the feature mount the file system::h]h)To use the feature mount the file system:}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhK$hjIhhubh literal_block)}(hN# mount -t resctrl resctrl [-o cdp[,cdpl2][,mba_MBps][,debug]] /sys/fs/resctrlh]hN# mount -t resctrl resctrl [-o cdp[,cdpl2][,mba_MBps][,debug]] /sys/fs/resctrl}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhK&hjIhhubj})}(hmount options are:h]hmount options are:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhK(hjIhhubhdefinition_list)}(hhh](hdefinition_list_item)}(h?"cdp": Enable code/data prioritization in L3 cache allocations.h](hterm)}(h"cdp":h]h “cdp”:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK*hjubh definition)}(hhh]j})}(h8Enable code/data prioritization in L3 cache allocations.h]h8Enable code/data prioritization in L3 cache allocations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhK+hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhK*hjubj)}(hA"cdpl2": Enable code/data prioritization in L2 cache allocations.h](j)}(h"cdpl2":h]h “cdpl2”:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK,hjubj)}(hhh]j})}(h8Enable code/data prioritization in L2 cache allocations.h]h8Enable code/data prioritization in L2 cache allocations.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhK-hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhK,hjhhubj)}(hX"mba_MBps": Enable the MBA Software Controller(mba_sc) to specify MBA bandwidth in MiBpsh](j)}(h "mba_MBps":h]h“mba_MBps”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK/hj ubj)}(hhh]j})}(hLEnable the MBA Software Controller(mba_sc) to specify MBA bandwidth in MiBpsh]hLEnable the MBA Software Controller(mba_sc) to specify MBA bandwidth in MiBps}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhK/hj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhK/hjhhubj)}(hs"debug": Make debug files accessible. Available debug files are annotated with "Available only with debug option". h](j)}(h"debug":h]h “debug”:}(hj; hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK3hj7 ubj)}(hhh]j})}(hiMake debug files accessible. Available debug files are annotated with "Available only with debug option".h]hmMake debug files accessible. Available debug files are annotated with “Available only with debug option”.}(hjL hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhK2hjI ubah}(h]h ]h"]h$]h&]uh1jhj7 ubeh}(h]h ]h"]h$]h&]uh1jhhhK3hjhhubeh}(h]h ]h"]h$]h&]uh1jhjIhhhhhNubj})}(h(L2 and L3 CDP are controlled separately.h]h(L2 and L3 CDP are controlled separately.}(hjl hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhK5hjIhhubj})}(hXRDT features are orthogonal. A particular system may support only monitoring, only control, or both monitoring and control. Cache pseudo-locking is a unique way of using cache control to "pin" or "lock" data in the cache. Details can be found in "Cache Pseudo-Locking".h]hXRDT features are orthogonal. A particular system may support only monitoring, only control, or both monitoring and control. Cache pseudo-locking is a unique way of using cache control to “pin” or “lock” data in the cache. Details can be found in “Cache Pseudo-Locking”.}(hjz hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhK7hjIhhubj})}(hXThe mount succeeds if either of allocation or monitoring is present, but only those files and directories supported by the system will be created. For more details on the behavior of the interface during monitoring and allocation, see the "Resource alloc and monitor groups" section.h]hXThe mount succeeds if either of allocation or monitoring is present, but only those files and directories supported by the system will be created. For more details on the behavior of the interface during monitoring and allocation, see the “Resource alloc and monitor groups” section.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhK>hjIhhubjH)}(hhh](jM)}(hInfo directoryh]hInfo directory}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hhhhhKDubj})}(hThe 'info' directory contains information about the enabled resources. Each resource has its own subdirectory. The subdirectory names reflect the resource names.h]hThe ‘info’ directory contains information about the enabled resources. Each resource has its own subdirectory. The subdirectory names reflect the resource names.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKFhj hhubj})}(hJEach subdirectory contains the following files with respect to allocation:h]hJEach subdirectory contains the following files with respect to allocation:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKJhj hhubj})}(hWCache resource(L3/L2) subdirectory contains the following files related to allocation:h]hWCache resource(L3/L2) subdirectory contains the following files related to allocation:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKMhj hhubj)}(hhh](j)}(h"num_closids": The number of CLOSIDs which are valid for this resource. The kernel uses the smallest number of CLOSIDs of all enabled resources as limit.h](j)}(h"num_closids":h]h“num_closids”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKRhj ubj)}(hhh]j})}(hThe number of CLOSIDs which are valid for this resource. The kernel uses the smallest number of CLOSIDs of all enabled resources as limit.h]hThe number of CLOSIDs which are valid for this resource. The kernel uses the smallest number of CLOSIDs of all enabled resources as limit.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKQhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhKRhj ubj)}(hZ"cbm_mask": The bitmask which is valid for this resource. This mask is equivalent to 100%.h](j)}(h "cbm_mask":h]h“cbm_mask”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKUhj ubj)}(hhh]j})}(hNThe bitmask which is valid for this resource. This mask is equivalent to 100%.h]hNThe bitmask which is valid for this resource. This mask is equivalent to 100%.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKUhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhKUhj hhubj)}(h^"min_cbm_bits": The minimum number of consecutive bits which must be set when writing a mask. h](j)}(h"min_cbm_bits":h]h“min_cbm_bits”:}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKYhj2 ubj)}(hhh]j})}(hMThe minimum number of consecutive bits which must be set when writing a mask.h]hMThe minimum number of consecutive bits which must be set when writing a mask.}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKXhjD ubah}(h]h ]h"]h$]h&]uh1jhj2 ubeh}(h]h ]h"]h$]h&]uh1jhhhKYhj hhubj)}(hX "shareable_bits": Bitmask of shareable resource with other executing entities (e.g. I/O). User can use this when setting up exclusive cache partitions. Note that some platforms support devices that have their own settings for cache use which can over-ride these bits.h](j)}(h"shareable_bits":h]h“shareable_bits”:}(hje hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK`hja ubj)}(hhh]j})}(hBitmask of shareable resource with other executing entities (e.g. I/O). User can use this when setting up exclusive cache partitions. Note that some platforms support devices that have their own settings for cache use which can over-ride these bits.h]hBitmask of shareable resource with other executing entities (e.g. I/O). User can use this when setting up exclusive cache partitions. Note that some platforms support devices that have their own settings for cache use which can over-ride these bits.}(hjv hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhK\hjs ubah}(h]h ]h"]h$]h&]uh1jhja ubeh}(h]h ]h"]h$]h&]uh1jhhhK`hj hhubj)}(hX"bit_usage": Annotated capacity bitmasks showing how all instances of the resource are used. The legend is: "0": Corresponding region is unused. When the system's resources have been allocated and a "0" is found in "bit_usage" it is a sign that resources are wasted. "H": Corresponding region is used by hardware only but available for software use. If a resource has bits set in "shareable_bits" but not all of these bits appear in the resource groups' schematas then the bits appearing in "shareable_bits" but no resource group will be marked as "H". "X": Corresponding region is available for sharing and used by hardware and software. These are the bits that appear in "shareable_bits" as well as a resource group's allocation. "S": Corresponding region is used by software and available for sharing. "E": Corresponding region is used exclusively by one resource group. No sharing allowed. "P": Corresponding region is pseudo-locked. No sharing allowed.h](j)}(h "bit_usage":h]h“bit_usage”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(hhh](j})}(h^Annotated capacity bitmasks showing how all instances of the resource are used. The legend is:h]h^Annotated capacity bitmasks showing how all instances of the resource are used. The legend is:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKchj ubh block_quote)}(hX"0": Corresponding region is unused. When the system's resources have been allocated and a "0" is found in "bit_usage" it is a sign that resources are wasted. "H": Corresponding region is used by hardware only but available for software use. If a resource has bits set in "shareable_bits" but not all of these bits appear in the resource groups' schematas then the bits appearing in "shareable_bits" but no resource group will be marked as "H". "X": Corresponding region is available for sharing and used by hardware and software. These are the bits that appear in "shareable_bits" as well as a resource group's allocation. "S": Corresponding region is used by software and available for sharing. "E": Corresponding region is used exclusively by one resource group. No sharing allowed. "P": Corresponding region is pseudo-locked. No sharing allowed.h]j)}(hhh](j)}(h"0": Corresponding region is unused. When the system's resources have been allocated and a "0" is found in "bit_usage" it is a sign that resources are wasted. h](j)}(h"0":h]h“0”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKjhj ubj)}(hhh]j})}(hCorresponding region is unused. When the system's resources have been allocated and a "0" is found in "bit_usage" it is a sign that resources are wasted.h]hCorresponding region is unused. When the system’s resources have been allocated and a “0” is found in “bit_usage” it is a sign that resources are wasted.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKghj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhKjhj ubj)}(hX"H": Corresponding region is used by hardware only but available for software use. If a resource has bits set in "shareable_bits" but not all of these bits appear in the resource groups' schematas then the bits appearing in "shareable_bits" but no resource group will be marked as "H".h](j)}(h"H":h]h“H”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKrhj ubj)}(hhh]j})}(hXCorresponding region is used by hardware only but available for software use. If a resource has bits set in "shareable_bits" but not all of these bits appear in the resource groups' schematas then the bits appearing in "shareable_bits" but no resource group will be marked as "H".h]hX&Corresponding region is used by hardware only but available for software use. If a resource has bits set in “shareable_bits” but not all of these bits appear in the resource groups’ schematas then the bits appearing in “shareable_bits” but no resource group will be marked as “H”.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKmhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhKrhj ubj)}(h"X": Corresponding region is available for sharing and used by hardware and software. These are the bits that appear in "shareable_bits" as well as a resource group's allocation.h](j)}(h"X":h]h“X”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKwhj ubj)}(hhh]j})}(hCorresponding region is available for sharing and used by hardware and software. These are the bits that appear in "shareable_bits" as well as a resource group's allocation.h]hCorresponding region is available for sharing and used by hardware and software. These are the bits that appear in “shareable_bits” as well as a resource group’s allocation.}(hj/ hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKuhj, ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhKwhj ubj)}(hH"S": Corresponding region is used by software and available for sharing.h](j)}(h"S":h]h“S”:}(hjM hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKzhjI ubj)}(hhh]j})}(hCCorresponding region is used by software and available for sharing.h]hCCorresponding region is used by software and available for sharing.}(hj^ hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKzhj[ ubah}(h]h ]h"]h$]h&]uh1jhjI ubeh}(h]h ]h"]h$]h&]uh1jhhhKzhj ubj)}(hX"E": Corresponding region is used exclusively by one resource group. No sharing allowed.h](j)}(h"E":h]h“E”:}(hj| hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhK}hjx ubj)}(hhh]j})}(hSCorresponding region is used exclusively by one resource group. No sharing allowed.h]hSCorresponding region is used exclusively by one resource group. No sharing allowed.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhK}hj ubah}(h]h ]h"]h$]h&]uh1jhjx ubeh}(h]h ]h"]h$]h&]uh1jhhhK}hj ubj)}(h?"P": Corresponding region is pseudo-locked. No sharing allowed.h](j)}(h"P":h]h“P”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(hhh]j})}(h:Corresponding region is pseudo-locked. No sharing allowed.h]h:Corresponding region is pseudo-locked. No sharing allowed.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1j hhhKfhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubj)}(h"sparse_masks": Indicates if non-contiguous 1s value in CBM is supported. "0": Only contiguous 1s value in CBM is supported. "1": Non-contiguous 1s value in CBM is supported. h](j)}(h"sparse_masks":h]h“sparse_masks”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(hhh](j})}(h9Indicates if non-contiguous 1s value in CBM is supported.h]h9Indicates if non-contiguous 1s value in CBM is supported.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj ubj )}(hq"0": Only contiguous 1s value in CBM is supported. "1": Non-contiguous 1s value in CBM is supported. h]j)}(hhh](j)}(h2"0": Only contiguous 1s value in CBM is supported.h](j)}(h"0":h]h“0”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(hhh]j})}(h-Only contiguous 1s value in CBM is supported.h]h-Only contiguous 1s value in CBM is supported.}(hj- hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj* ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(h2"1": Non-contiguous 1s value in CBM is supported. h](j)}(h"1":h]h“1”:}(hjK hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjG ubj)}(hhh]j})}(h,Non-contiguous 1s value in CBM is supported.h]h,Non-contiguous 1s value in CBM is supported.}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjY ubah}(h]h ]h"]h$]h&]uh1jhjG ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubah}(h]h ]h"]h$]h&]uh1j hhhKhj ubeh}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubeh}(h]h ]h"]h$]h&]uh1jhj hhhhhNubj})}(hZMemory bandwidth(MB) subdirectory contains the following files with respect to allocation:h]hZMemory bandwidth(MB) subdirectory contains the following files with respect to allocation:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj hhubj)}(hhh](j)}(hQ"min_bandwidth": The minimum memory bandwidth percentage which user can request. h](j)}(h"min_bandwidth":h]h“min_bandwidth”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(hhh]j})}(h?The minimum memory bandwidth percentage which user can request.h]h?The minimum memory bandwidth percentage which user can request.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(hX"bandwidth_gran": The granularity in which the memory bandwidth percentage is allocated. The allocated b/w percentage is rounded off to the next control step available on the hardware. The available bandwidth control steps are: min_bandwidth + N * bandwidth_gran. h](j)}(h"bandwidth_gran":h]h“bandwidth_gran”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(hhh]j})}(hThe granularity in which the memory bandwidth percentage is allocated. The allocated b/w percentage is rounded off to the next control step available on the hardware. The available bandwidth control steps are: min_bandwidth + N * bandwidth_gran.h]hThe granularity in which the memory bandwidth percentage is allocated. The allocated b/w percentage is rounded off to the next control step available on the hardware. The available bandwidth control steps are: min_bandwidth + N * bandwidth_gran.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubj)}(ho"delay_linear": Indicates if the delay scale is linear or non-linear. This field is purely informational only. h](j)}(h"delay_linear":h]h“delay_linear”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(hhh]j})}(h^Indicates if the delay scale is linear or non-linear. This field is purely informational only.h]h^Indicates if the delay scale is linear or non-linear. This field is purely informational only.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubj)}(hXn"thread_throttle_mode": Indicator on Intel systems of how tasks running on threads of a physical core are throttled in cases where they request different memory bandwidth percentages: "max": the smallest percentage is applied to all threads "per-thread": bandwidth percentages are directly applied to the threads running on the core h](j)}(h"thread_throttle_mode":h]h“thread_throttle_mode”:}(hj6 hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj2 ubj)}(hhh](j})}(hIndicator on Intel systems of how tasks running on threads of a physical core are throttled in cases where they request different memory bandwidth percentages:h]hIndicator on Intel systems of how tasks running on threads of a physical core are throttled in cases where they request different memory bandwidth percentages:}(hjG hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjD ubj)}(hhh](j)}(h8"max": the smallest percentage is applied to all threadsh](j)}(h"max":h]h “max”:}(hj\ hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjX ubj)}(hhh]j})}(h1the smallest percentage is applied to all threadsh]h1the smallest percentage is applied to all threads}(hjm hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjj ubah}(h]h ]h"]h$]h&]uh1jhjX ubeh}(h]h ]h"]h$]h&]uh1jhhhKhjU ubj)}(h\"per-thread": bandwidth percentages are directly applied to the threads running on the core h](j)}(h "per-thread":h]h“per-thread”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(hhh]j})}(hMbandwidth percentages are directly applied to the threads running on the coreh]hMbandwidth percentages are directly applied to the threads running on the core}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhKhjU ubeh}(h]h ]h"]h$]h&]uh1jhjD ubeh}(h]h ]h"]h$]h&]uh1jhj2 ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubeh}(h]h ]h"]h$]h&]uh1jhj hhhhhNubj})}(h\If RDT monitoring is available there will be an "L3_MON" directory with the following files:h]h`If RDT monitoring is available there will be an “L3_MON” directory with the following files:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj hhubj)}(hhh](j)}(h{"num_rmids": The number of RMIDs available. This is the upper bound for how many "CTRL_MON" + "MON" groups can be created. h](j)}(h "num_rmids":h]h“num_rmids”:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(hhh]j})}(hmThe number of RMIDs available. This is the upper bound for how many "CTRL_MON" + "MON" groups can be created.h]huThe number of RMIDs available. This is the upper bound for how many “CTRL_MON” + “MON” groups can be created.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhhhKhj ubj)}(hX)"mon_features": Lists the monitoring events if monitoring is enabled for the resource. Example:: # cat /sys/fs/resctrl/info/L3_MON/mon_features llc_occupancy mbm_total_bytes mbm_local_bytes If the system supports Bandwidth Monitoring Event Configuration (BMEC), then the bandwidth events will be configurable. The output will be:: # cat /sys/fs/resctrl/info/L3_MON/mon_features llc_occupancy mbm_total_bytes mbm_total_bytes_config mbm_local_bytes mbm_local_bytes_config h](j)}(h"mon_features":h]h“mon_features”:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhKhjubj)}(hhh](j})}(hPLists the monitoring events if monitoring is enabled for the resource. Example::h]hOLists the monitoring events if monitoring is enabled for the resource. Example:}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj ubj)}(h\# cat /sys/fs/resctrl/info/L3_MON/mon_features llc_occupancy mbm_total_bytes mbm_local_bytesh]h\# cat /sys/fs/resctrl/info/L3_MON/mon_features llc_occupancy mbm_total_bytes mbm_local_bytes}hj1sbah}(h]h ]h"]h$]h&]hhuh1jhhhKhj ubj})}(hIf the system supports Bandwidth Monitoring Event Configuration (BMEC), then the bandwidth events will be configurable. The output will be::h]hIf the system supports Bandwidth Monitoring Event Configuration (BMEC), then the bandwidth events will be configurable. The output will be:}(hj?hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj ubj)}(h# cat /sys/fs/resctrl/info/L3_MON/mon_features llc_occupancy mbm_total_bytes mbm_total_bytes_config mbm_local_bytes mbm_local_bytes_configh]h# cat /sys/fs/resctrl/info/L3_MON/mon_features llc_occupancy mbm_total_bytes mbm_total_bytes_config mbm_local_bytes mbm_local_bytes_config}hjMsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhj ubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhKhj hhubj)}(hX@ "mbm_total_bytes_config", "mbm_local_bytes_config": Read/write files containing the configuration for the mbm_total_bytes and mbm_local_bytes events, respectively, when the Bandwidth Monitoring Event Configuration (BMEC) feature is supported. The event configuration settings are domain specific and affect all the CPUs in the domain. When either event configuration is changed, the bandwidth counters for all RMIDs of both events (mbm_total_bytes as well as mbm_local_bytes) are cleared for that domain. The next read for every RMID will report "Unavailable" and subsequent reads will report the valid value. Following are the types of events supported: ==== ======================================================== Bits Description ==== ======================================================== 6 Dirty Victims from the QOS domain to all types of memory 5 Reads to slow memory in the non-local NUMA domain 4 Reads to slow memory in the local NUMA domain 3 Non-temporal writes to non-local NUMA domain 2 Non-temporal writes to local NUMA domain 1 Reads to memory in the non-local NUMA domain 0 Reads to memory in the local NUMA domain ==== ======================================================== By default, the mbm_total_bytes configuration is set to 0x7f to count all the event types and the mbm_local_bytes configuration is set to 0x15 to count all the local memory events. Examples: * To view the current configuration:: :: # cat /sys/fs/resctrl/info/L3_MON/mbm_total_bytes_config 0=0x7f;1=0x7f;2=0x7f;3=0x7f # cat /sys/fs/resctrl/info/L3_MON/mbm_local_bytes_config 0=0x15;1=0x15;3=0x15;4=0x15 * To change the mbm_total_bytes to count only reads on domain 0, the bits 0, 1, 4 and 5 needs to be set, which is 110011b in binary (in hexadecimal 0x33): :: # echo "0=0x33" > /sys/fs/resctrl/info/L3_MON/mbm_total_bytes_config # cat /sys/fs/resctrl/info/L3_MON/mbm_total_bytes_config 0=0x33;1=0x7f;2=0x7f;3=0x7f * To change the mbm_local_bytes to count all the slow memory reads on domain 0 and 1, the bits 4 and 5 needs to be set, which is 110000b in binary (in hexadecimal 0x30): :: # echo "0=0x30;1=0x30" > /sys/fs/resctrl/info/L3_MON/mbm_local_bytes_config # cat /sys/fs/resctrl/info/L3_MON/mbm_local_bytes_config 0=0x30;1=0x30;3=0x15;4=0x15 h](j)}(h3"mbm_total_bytes_config", "mbm_local_bytes_config":h]h;“mbm_total_bytes_config”, “mbm_local_bytes_config”:}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhjgubj)}(hhh](j})}(hX-Read/write files containing the configuration for the mbm_total_bytes and mbm_local_bytes events, respectively, when the Bandwidth Monitoring Event Configuration (BMEC) feature is supported. The event configuration settings are domain specific and affect all the CPUs in the domain. When either event configuration is changed, the bandwidth counters for all RMIDs of both events (mbm_total_bytes as well as mbm_local_bytes) are cleared for that domain. The next read for every RMID will report "Unavailable" and subsequent reads will report the valid value.h]hX1Read/write files containing the configuration for the mbm_total_bytes and mbm_local_bytes events, respectively, when the Bandwidth Monitoring Event Configuration (BMEC) feature is supported. The event configuration settings are domain specific and affect all the CPUs in the domain. When either event configuration is changed, the bandwidth counters for all RMIDs of both events (mbm_total_bytes as well as mbm_local_bytes) are cleared for that domain. The next read for every RMID will report “Unavailable” and subsequent reads will report the valid value.}(hj|hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjyubj})}(h,Following are the types of events supported:h]h,Following are the types of events supported:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjyubjr)}(hhh]jw)}(hhh](j|)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j{hjubj|)}(hhh]h}(h]h ]h"]h$]h&]colwidthK8uh1j{hjubhthead)}(hhh]j)}(hhh](j)}(hhh]j})}(hBitsh]hBits}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j})}(h Descriptionh]h Description}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh](j)}(hhh]j})}(h6h]h6}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j})}(h8Dirty Victims from the QOS domain to all types of memoryh]h8Dirty Victims from the QOS domain to all types of memory}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j})}(h5h]h5}(hj4hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj1ubah}(h]h ]h"]h$]h&]uh1jhj.ubj)}(hhh]j})}(h1Reads to slow memory in the non-local NUMA domainh]h1Reads to slow memory in the non-local NUMA domain}(hjKhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjHubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j})}(h4h]h4}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjhubah}(h]h ]h"]h$]h&]uh1jhjeubj)}(hhh]j})}(h-Reads to slow memory in the local NUMA domainh]h-Reads to slow memory in the local NUMA domain}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjeubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j})}(h3h]h3}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j})}(h,Non-temporal writes to non-local NUMA domainh]h,Non-temporal writes to non-local NUMA domain}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j})}(h2h]h2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh]j})}(h(Non-temporal writes to local NUMA domainh]h(Non-temporal writes to local NUMA domain}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j})}(h1h]h1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hhh]j})}(h,Reads to memory in the non-local NUMA domainh]h,Reads to memory in the non-local NUMA domain}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj$ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hhh](j)}(hhh]j})}(h0h]h0}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjDubah}(h]h ]h"]h$]h&]uh1jhjAubj)}(hhh]j})}(h(Reads to memory in the local NUMA domainh]h(Reads to memory in the local NUMA domain}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhj[ubah}(h]h ]h"]h$]h&]uh1jhjAubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]colsKuh1jvhjubah}(h]h ]h"]h$]h&]uh1jqhjyubj})}(hBy default, the mbm_total_bytes configuration is set to 0x7f to count all the event types and the mbm_local_bytes configuration is set to 0x15 to count all the local memory events.h]hBy default, the mbm_total_bytes configuration is set to 0x7f to count all the event types and the mbm_local_bytes configuration is set to 0x15 to count all the local memory events.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjyubj})}(h Examples:h]h Examples:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjyubj)}(hhh](j)}(hTo view the current configuration:: :: # cat /sys/fs/resctrl/info/L3_MON/mbm_total_bytes_config 0=0x7f;1=0x7f;2=0x7f;3=0x7f # cat /sys/fs/resctrl/info/L3_MON/mbm_local_bytes_config 0=0x15;1=0x15;3=0x15;4=0x15 h](j})}(h&To view the current configuration:: ::h]h#To view the current configuration::}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubj)}(h# cat /sys/fs/resctrl/info/L3_MON/mbm_total_bytes_config 0=0x7f;1=0x7f;2=0x7f;3=0x7f # cat /sys/fs/resctrl/info/L3_MON/mbm_local_bytes_config 0=0x15;1=0x15;3=0x15;4=0x15h]h# cat /sys/fs/resctrl/info/L3_MON/mbm_total_bytes_config 0=0x7f;1=0x7f;2=0x7f;3=0x7f # cat /sys/fs/resctrl/info/L3_MON/mbm_local_bytes_config 0=0x15;1=0x15;3=0x15;4=0x15}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hX?To change the mbm_total_bytes to count only reads on domain 0, the bits 0, 1, 4 and 5 needs to be set, which is 110011b in binary (in hexadecimal 0x33): :: # echo "0=0x33" > /sys/fs/resctrl/info/L3_MON/mbm_total_bytes_config # cat /sys/fs/resctrl/info/L3_MON/mbm_total_bytes_config 0=0x33;1=0x7f;2=0x7f;3=0x7f h](j})}(hTo change the mbm_total_bytes to count only reads on domain 0, the bits 0, 1, 4 and 5 needs to be set, which is 110011b in binary (in hexadecimal 0x33): ::h]hTo change the mbm_total_bytes to count only reads on domain 0, the bits 0, 1, 4 and 5 needs to be set, which is 110011b in binary (in hexadecimal 0x33):}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubj)}(h# echo "0=0x33" > /sys/fs/resctrl/info/L3_MON/mbm_total_bytes_config # cat /sys/fs/resctrl/info/L3_MON/mbm_total_bytes_config 0=0x33;1=0x7f;2=0x7f;3=0x7fh]h# echo "0=0x33" > /sys/fs/resctrl/info/L3_MON/mbm_total_bytes_config # cat /sys/fs/resctrl/info/L3_MON/mbm_total_bytes_config 0=0x33;1=0x7f;2=0x7f;3=0x7f}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubj)}(hXUTo change the mbm_local_bytes to count all the slow memory reads on domain 0 and 1, the bits 4 and 5 needs to be set, which is 110000b in binary (in hexadecimal 0x30): :: # echo "0=0x30;1=0x30" > /sys/fs/resctrl/info/L3_MON/mbm_local_bytes_config # cat /sys/fs/resctrl/info/L3_MON/mbm_local_bytes_config 0=0x30;1=0x30;3=0x15;4=0x15 h](j})}(hTo change the mbm_local_bytes to count all the slow memory reads on domain 0 and 1, the bits 4 and 5 needs to be set, which is 110000b in binary (in hexadecimal 0x30): ::h]hTo change the mbm_local_bytes to count all the slow memory reads on domain 0 and 1, the bits 4 and 5 needs to be set, which is 110000b in binary (in hexadecimal 0x30):}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhKhjubj)}(h# echo "0=0x30;1=0x30" > /sys/fs/resctrl/info/L3_MON/mbm_local_bytes_config # cat /sys/fs/resctrl/info/L3_MON/mbm_local_bytes_config 0=0x30;1=0x30;3=0x15;4=0x15h]h# echo "0=0x30;1=0x30" > /sys/fs/resctrl/info/L3_MON/mbm_local_bytes_config # cat /sys/fs/resctrl/info/L3_MON/mbm_local_bytes_config 0=0x30;1=0x30;3=0x15;4=0x15}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhKhjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]jA*uh1jhhhKhjyubeh}(h]h ]h"]h$]h&]uh1jhjgubeh}(h]h ]h"]h$]h&]uh1jhhhMhj hhubj)}(h"max_threshold_occupancy": Read/write file provides the largest value (in bytes) at which a previously used LLC_occupancy counter can be considered for re-use. h](j)}(h"max_threshold_occupancy":h]h“max_threshold_occupancy”:}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhj/ubj)}(hhh]j})}(hRead/write file provides the largest value (in bytes) at which a previously used LLC_occupancy counter can be considered for re-use.h]hRead/write file provides the largest value (in bytes) at which a previously used LLC_occupancy counter can be considered for re-use.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjAubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhhhMhj hhubeh}(h]h ]h"]h$]h&]uh1jhj hhhhhNubj})}(hXFinally, in the top level of the "info" directory there is a file named "last_cmd_status". This is reset with every "command" issued via the file system (making new directories or writing to any of the control files). If the command was successful, it will read as "ok". If the command failed, it will provide more information that can be conveyed in the error returns from file operations. E.g. ::h]hXFinally, in the top level of the “info” directory there is a file named “last_cmd_status”. This is reset with every “command” issued via the file system (making new directories or writing to any of the control files). If the command was successful, it will read as “ok”. If the command failed, it will provide more information that can be conveyed in the error returns from file operations. E.g.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj hhubj)}(h# echo L3:0=f7 > schemata bash: echo: write error: Invalid argument # cat info/last_cmd_status mask f7 has non-consecutive 1-bitsh]h# echo L3:0=f7 > schemata bash: echo: write error: Invalid argument # cat info/last_cmd_status mask f7 has non-consecutive 1-bits}hjrsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhj hhubeh}(h]info-directoryah ]h"]info directoryah$]h&]uh1jGhjIhhhhhKDubjH)}(hhh](jM)}(h!Resource alloc and monitor groupsh]h!Resource alloc and monitor groups}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMubj})}(hResource groups are represented as directories in the resctrl file system. The default group is the root directory which, immediately after mounting, owns all the tasks and cpus in the system and can make full use of all resources.h]hResource groups are represented as directories in the resctrl file system. The default group is the root directory which, immediately after mounting, owns all the tasks and cpus in the system and can make full use of all resources.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(hX On a system with RDT control features additional directories can be created in the root directory that specify different amounts of each resource (see "schemata" below). The root and these additional top level directories are referred to as "CTRL_MON" groups below.h]hXOn a system with RDT control features additional directories can be created in the root directory that specify different amounts of each resource (see “schemata” below). The root and these additional top level directories are referred to as “CTRL_MON” groups below.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(hX.On a system with RDT monitoring the root directory and other top level directories contain a directory named "mon_groups" in which additional directories can be created to monitor subsets of tasks in the CTRL_MON group that is their ancestor. These are called "MON" groups in the rest of this document.h]hX6On a system with RDT monitoring the root directory and other top level directories contain a directory named “mon_groups” in which additional directories can be created to monitor subsets of tasks in the CTRL_MON group that is their ancestor. These are called “MON” groups in the rest of this document.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM"hjhhubj})}(hRemoving a directory will move all tasks and cpus owned by the group it represents to the parent. Removing one of the created CTRL_MON groups will automatically remove all MON groups below it.h]hRemoving a directory will move all tasks and cpus owned by the group it represents to the parent. Removing one of the created CTRL_MON groups will automatically remove all MON groups below it.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM(hjhhubj})}(hXgMoving MON group directories to a new parent CTRL_MON group is supported for the purpose of changing the resource allocations of a MON group without impacting its monitoring data or assigned tasks. This operation is not allowed for MON groups which monitor CPUs. No other move operation is currently allowed other than simply renaming a CTRL_MON or MON group.h]hXgMoving MON group directories to a new parent CTRL_MON group is supported for the purpose of changing the resource allocations of a MON group without impacting its monitoring data or assigned tasks. This operation is not allowed for MON groups which monitor CPUs. No other move operation is currently allowed other than simply renaming a CTRL_MON or MON group.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM,hjhhubj})}(h'All groups contain the following files:h]h'All groups contain the following files:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM3hjhhubj)}(hhh](j)}(hX7"tasks": Reading this file shows the list of all tasks that belong to this group. Writing a task id to the file will add a task to the group. Multiple tasks can be added by separating the task ids with commas. Tasks will be assigned sequentially. Multiple failures are not supported. A single failure encountered while attempting to assign a task will cause the operation to abort and already added tasks before the failure will remain in the group. Failures will be logged to /sys/fs/resctrl/info/last_cmd_status. If the group is a CTRL_MON group the task is removed from whichever previous CTRL_MON group owned the task and also from any MON group that owned the task. If the group is a MON group, then the task must already belong to the CTRL_MON parent of this group. The task is removed from any previous MON group. h](j)}(h"tasks":h]h “tasks”:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMDhjubj)}(hhh](j})}(hXReading this file shows the list of all tasks that belong to this group. Writing a task id to the file will add a task to the group. Multiple tasks can be added by separating the task ids with commas. Tasks will be assigned sequentially. Multiple failures are not supported. A single failure encountered while attempting to assign a task will cause the operation to abort and already added tasks before the failure will remain in the group. Failures will be logged to /sys/fs/resctrl/info/last_cmd_status.h]hXReading this file shows the list of all tasks that belong to this group. Writing a task id to the file will add a task to the group. Multiple tasks can be added by separating the task ids with commas. Tasks will be assigned sequentially. Multiple failures are not supported. A single failure encountered while attempting to assign a task will cause the operation to abort and already added tasks before the failure will remain in the group. Failures will be logged to /sys/fs/resctrl/info/last_cmd_status.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM6hjubj})}(hX1If the group is a CTRL_MON group the task is removed from whichever previous CTRL_MON group owned the task and also from any MON group that owned the task. If the group is a MON group, then the task must already belong to the CTRL_MON parent of this group. The task is removed from any previous MON group.h]hX1If the group is a CTRL_MON group the task is removed from whichever previous CTRL_MON group owned the task and also from any MON group that owned the task. If the group is a MON group, then the task must already belong to the CTRL_MON parent of this group. The task is removed from any previous MON group.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM?hjubeh}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMDhjubj)}(hX"cpus": Reading this file shows a bitmask of the logical CPUs owned by this group. Writing a mask to this file will add and remove CPUs to/from this group. As with the tasks file a hierarchy is maintained where MON groups may only include CPUs owned by the parent CTRL_MON group. When the resource group is in pseudo-locked mode this file will only be readable, reflecting the CPUs associated with the pseudo-locked region. h](j)}(h"cpus":h]h “cpus”:}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMOhj-ubj)}(hhh]j})}(hXReading this file shows a bitmask of the logical CPUs owned by this group. Writing a mask to this file will add and remove CPUs to/from this group. As with the tasks file a hierarchy is maintained where MON groups may only include CPUs owned by the parent CTRL_MON group. When the resource group is in pseudo-locked mode this file will only be readable, reflecting the CPUs associated with the pseudo-locked region.h]hXReading this file shows a bitmask of the logical CPUs owned by this group. Writing a mask to this file will add and remove CPUs to/from this group. As with the tasks file a hierarchy is maintained where MON groups may only include CPUs owned by the parent CTRL_MON group. When the resource group is in pseudo-locked mode this file will only be readable, reflecting the CPUs associated with the pseudo-locked region.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMGhj?ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhhhMOhjhhubj)}(hO"cpus_list": Just like "cpus", only using ranges of CPUs instead of bitmasks. h](j)}(h "cpus_list":h]h“cpus_list”:}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMShj\ubj)}(hhh]j})}(h@Just like "cpus", only using ranges of CPUs instead of bitmasks.h]hDJust like “cpus”, only using ranges of CPUs instead of bitmasks.}(hjqhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMRhjnubah}(h]h ]h"]h$]h&]uh1jhj\ubeh}(h]h ]h"]h$]h&]uh1jhhhMShjhhubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj})}(h>When control is enabled all CTRL_MON groups will also contain:h]h>When control is enabled all CTRL_MON groups will also contain:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMUhjhhubj)}(hhh](j)}(h"schemata": A list of all the resources available to this group. Each resource has its own line and format - see below for details. h](j)}(h "schemata":h]h“schemata”:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMYhjubj)}(hhh]j})}(hwA list of all the resources available to this group. Each resource has its own line and format - see below for details.h]hwA list of all the resources available to this group. Each resource has its own line and format - see below for details.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMXhjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMYhjubj)}(h"size": Mirrors the display of the "schemata" file to display the size in bytes of each allocation instead of the bits representing the allocation. h](j)}(h"size":h]h “size”:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM^hjubj)}(hhh]j})}(hMirrors the display of the "schemata" file to display the size in bytes of each allocation instead of the bits representing the allocation.h]hMirrors the display of the “schemata” file to display the size in bytes of each allocation instead of the bits representing the allocation.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM\hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM^hjhhubj)}(hX"mode": The "mode" of the resource group dictates the sharing of its allocations. A "shareable" resource group allows sharing of its allocations while an "exclusive" resource group does not. A cache pseudo-locked region is created by first writing "pseudo-locksetup" to the "mode" file before writing the cache pseudo-locked region's schemata to the resource group's "schemata" file. On successful pseudo-locked region creation the mode will automatically change to "pseudo-locked". h](j)}(h"mode":h]h “mode”:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMhhjubj)}(hhh]j})}(hXThe "mode" of the resource group dictates the sharing of its allocations. A "shareable" resource group allows sharing of its allocations while an "exclusive" resource group does not. A cache pseudo-locked region is created by first writing "pseudo-locksetup" to the "mode" file before writing the cache pseudo-locked region's schemata to the resource group's "schemata" file. On successful pseudo-locked region creation the mode will automatically change to "pseudo-locked".h]hXThe “mode” of the resource group dictates the sharing of its allocations. A “shareable” resource group allows sharing of its allocations while an “exclusive” resource group does not. A cache pseudo-locked region is created by first writing “pseudo-locksetup” to the “mode” file before writing the cache pseudo-locked region’s schemata to the resource group’s “schemata” file. On successful pseudo-locked region creation the mode will automatically change to “pseudo-locked”.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMahjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhMhhjhhubj)}(h"ctrl_hw_id": Available only with debug option. The identifier used by hardware for the control group. On x86 this is the CLOSID. h](j)}(h "ctrl_hw_id":h]h“ctrl_hw_id”:}(hj3hhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhMlhj/ubj)}(hhh]j})}(hsAvailable only with debug option. The identifier used by hardware for the control group. On x86 this is the CLOSID.h]hsAvailable only with debug option. The identifier used by hardware for the control group. On x86 this is the CLOSID.}(hjDhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMkhjAubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhhhMlhjhhubeh}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj})}(hhjhhhhhMubeh}(h]resource-allocation-rulesah ]h"]resource allocation rulesah$]h&]uh1jGhjhhhhhMubjH)}(hhh](jM)}(hResource monitoring rulesh]hResource monitoring rules}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMubj?)}(hhh](j)}(hIf a task is a member of a MON group, or non-default CTRL_MON group then RDT events for the task will be reported in that group. h]j})}(hIf a task is a member of a MON group, or non-default CTRL_MON group then RDT events for the task will be reported in that group.h]hIf a task is a member of a MON group, or non-default CTRL_MON group then RDT events for the task will be reported in that group.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hIf a task is a member of the default CTRL_MON group, but is running on a CPU that is assigned to some specific group, then the RDT events for the task will be reported in that group. h]j})}(hIf a task is a member of the default CTRL_MON group, but is running on a CPU that is assigned to some specific group, then the RDT events for the task will be reported in that group.h]hIf a task is a member of the default CTRL_MON group, but is running on a CPU that is assigned to some specific group, then the RDT events for the task will be reported in that group.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hXOtherwise RDT events for the task will be reported in the root level "mon_data" group. h]j})}(hVOtherwise RDT events for the task will be reported in the root level "mon_data" group.h]hZOtherwise RDT events for the task will be reported in the root level “mon_data” group.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]jjjhjjuh1j>hjhhhhhMubeh}(h]resource-monitoring-rulesah ]h"]resource monitoring rulesah$]h&]uh1jGhjhhhhhMubeh}(h]!resource-alloc-and-monitor-groupsah ]h"]!resource alloc and monitor groupsah$]h&]uh1jGhjIhhhhhMubjH)}(hhh](jM)}(h/Notes on cache occupancy monitoring and controlh]h/Notes on cache occupancy monitoring and control}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMubj})}(hXWhen moving a task from one group to another you should remember that this only affects *new* cache allocations by the task. E.g. you may have a task in a monitor group showing 3 MB of cache occupancy. If you move to a new group and immediately check the occupancy of the old and new groups you will likely see that the old group is still showing 3 MB and the new group zero. When the task accesses locations still in cache from before the move, the h/w does not update any counters. On a busy system you will likely see the occupancy in the old group go down as cache lines are evicted and re-used while the occupancy in the new group rises as the task accesses memory and loads into the cache are counted based on membership in the new group.h](hXWhen moving a task from one group to another you should remember that this only affects }(hj!hhhNhNubhemphasis)}(h*new*h]hnew}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j)hj!ubhX cache allocations by the task. E.g. you may have a task in a monitor group showing 3 MB of cache occupancy. If you move to a new group and immediately check the occupancy of the old and new groups you will likely see that the old group is still showing 3 MB and the new group zero. When the task accesses locations still in cache from before the move, the h/w does not update any counters. On a busy system you will likely see the occupancy in the old group go down as cache lines are evicted and re-used while the occupancy in the new group rises as the task accesses memory and loads into the cache are counted based on membership in the new group.}(hj!hhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(hThe same applies to cache allocation control. Moving a task to a group with a smaller cache partition will not evict any cache lines. The process may continue to use them from the old partition.h]hThe same applies to cache allocation control. Moving a task to a group with a smaller cache partition will not evict any cache lines. The process may continue to use them from the old partition.}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(hXHardware uses CLOSid(Class of service ID) and an RMID(Resource monitoring ID) to identify a control group and a monitoring group respectively. Each of the resource groups are mapped to these IDs based on the kind of group. The number of CLOSid and RMID are limited by the hardware and hence the creation of a "CTRL_MON" directory may fail if we run out of either CLOSID or RMID and creation of "MON" group may fail if we run out of RMIDs.h]hXHardware uses CLOSid(Class of service ID) and an RMID(Resource monitoring ID) to identify a control group and a monitoring group respectively. Each of the resource groups are mapped to these IDs based on the kind of group. The number of CLOSid and RMID are limited by the hardware and hence the creation of a “CTRL_MON” directory may fail if we run out of either CLOSID or RMID and creation of “MON” group may fail if we run out of RMIDs.}(hjQhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubjH)}(hhh](jM)}(h*max_threshold_occupancy - generic conceptsh]h*max_threshold_occupancy - generic concepts}(hjbhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj_hhhhhMubj})}(hXqNote that an RMID once freed may not be immediately available for use as the RMID is still tagged the cache lines of the previous user of RMID. Hence such RMIDs are placed on limbo list and checked back if the cache occupancy has gone down. If there is a time when system has a lot of limbo RMIDs but which are not ready to be used, user may see an -EBUSY during mkdir.h]hXqNote that an RMID once freed may not be immediately available for use as the RMID is still tagged the cache lines of the previous user of RMID. Hence such RMIDs are placed on limbo list and checked back if the cache occupancy has gone down. If there is a time when system has a lot of limbo RMIDs but which are not ready to be used, user may see an -EBUSY during mkdir.}(hjphhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj_hhubj})}(hnmax_threshold_occupancy is a user configurable value to determine the occupancy at which an RMID can be freed.h]hnmax_threshold_occupancy is a user configurable value to determine the occupancy at which an RMID can be freed.}(hj~hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj_hhubj})}(hXlThe mon_llc_occupancy_limbo tracepoint gives the precise occupancy in bytes for a subset of RMID that are not immediately available for allocation. This can't be relied on to produce output every second, it may be necessary to attempt to create an empty monitor group to force an update. Output may only be produced if creation of a control or monitor group fails.h]hXnThe mon_llc_occupancy_limbo tracepoint gives the precise occupancy in bytes for a subset of RMID that are not immediately available for allocation. This can’t be relied on to produce output every second, it may be necessary to attempt to create an empty monitor group to force an update. Output may only be produced if creation of a control or monitor group fails.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj_hhubeh}(h](max-threshold-occupancy-generic-conceptsah ]h"]*max_threshold_occupancy - generic conceptsah$]h&]uh1jGhjhhhhhMubjH)}(hhh](jM)}(h!Schemata files - general conceptsh]h!Schemata files - general concepts}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMubj})}(hEach line in the file describes one resource. The line starts with the name of the resource, followed by specific values to be applied in each of the instances of that resource on the system.h]hEach line in the file describes one resource. The line starts with the name of the resource, followed by specific values to be applied in each of the instances of that resource on the system.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubeh}(h]schemata-files-general-conceptsah ]h"]!schemata files - general conceptsah$]h&]uh1jGhjhhhhhMubjH)}(hhh](jM)}(h Cache IDsh]h Cache IDs}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMubj})}(hXrOn current generation systems there is one L3 cache per socket and L2 caches are generally just shared by the hyperthreads on a core, but this isn't an architectural requirement. We could have multiple separate L3 caches on a socket, multiple cores could share an L2 cache. So instead of using "socket" or "core" to define the set of logical cpus sharing a resource we use a "Cache ID". At a given cache level this will be a unique number across the whole system (but it isn't guaranteed to be a contiguous sequence, there may be gaps). To find the ID for each logical CPU look in /sys/devices/system/cpu/cpu*/cache/index*/idh]hXOn current generation systems there is one L3 cache per socket and L2 caches are generally just shared by the hyperthreads on a core, but this isn’t an architectural requirement. We could have multiple separate L3 caches on a socket, multiple cores could share an L2 cache. So instead of using “socket” or “core” to define the set of logical cpus sharing a resource we use a “Cache ID”. At a given cache level this will be a unique number across the whole system (but it isn’t guaranteed to be a contiguous sequence, there may be gaps). To find the ID for each logical CPU look in /sys/devices/system/cpu/cpu*/cache/index*/id}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubeh}(h] cache-idsah ]h"] cache idsah$]h&]uh1jGhjhhhhhMubjH)}(hhh](jM)}(hCache Bit Masks (CBM)h]hCache Bit Masks (CBM)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMubj})}(hXFor cache resources we describe the portion of the cache that is available for allocation using a bitmask. The maximum value of the mask is defined by each cpu model (and may be different for different cache levels). It is found using CPUID, but is also provided in the "info" directory of the resctrl file system in "info/{resource}/cbm_mask". Some Intel hardware requires that these masks have all the '1' bits in a contiguous block. So 0x3, 0x6 and 0xC are legal 4-bit masks with two bits set, but 0x5, 0x9 and 0xA are not. Check /sys/fs/resctrl/info/{resource}/sparse_masks if non-contiguous 1s value is supported. On a system with a 20-bit mask each bit represents 5% of the capacity of the cache. You could partition the cache into four equal parts with masks: 0x1f, 0x3e0, 0x7c00, 0xf8000.h]hX(For cache resources we describe the portion of the cache that is available for allocation using a bitmask. The maximum value of the mask is defined by each cpu model (and may be different for different cache levels). It is found using CPUID, but is also provided in the “info” directory of the resctrl file system in “info/{resource}/cbm_mask”. Some Intel hardware requires that these masks have all the ‘1’ bits in a contiguous block. So 0x3, 0x6 and 0xC are legal 4-bit masks with two bits set, but 0x5, 0x9 and 0xA are not. Check /sys/fs/resctrl/info/{resource}/sparse_masks if non-contiguous 1s value is supported. On a system with a 20-bit mask each bit represents 5% of the capacity of the cache. You could partition the cache into four equal parts with masks: 0x1f, 0x3e0, 0x7c00, 0xf8000.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubeh}(h]cache-bit-masks-cbmah ]h"]cache bit masks (cbm)ah$]h&]uh1jGhjhhhhhMubeh}(h]/notes-on-cache-occupancy-monitoring-and-controlah ]h"]/notes on cache occupancy monitoring and controlah$]h&]uh1jGhjIhhhhhMubjH)}(hhh](jM)}(hNotes on Sub-NUMA Cluster modeh]hNotes on Sub-NUMA Cluster mode}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMubj})}(hX0When SNC mode is enabled, Linux may load balance tasks between Sub-NUMA nodes much more readily than between regular NUMA nodes since the CPUs on Sub-NUMA nodes share the same L3 cache and the system may report the NUMA distance between Sub-NUMA nodes with a lower value than used for regular NUMA nodes.h]hX0When SNC mode is enabled, Linux may load balance tasks between Sub-NUMA nodes much more readily than between regular NUMA nodes since the CPUs on Sub-NUMA nodes share the same L3 cache and the system may report the NUMA distance between Sub-NUMA nodes with a lower value than used for regular NUMA nodes.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(hXFThe top-level monitoring files in each "mon_L3_XX" directory provide the sum of data across all SNC nodes sharing an L3 cache instance. Users who bind tasks to the CPUs of a specific Sub-NUMA node can read the "llc_occupancy", "mbm_total_bytes", and "mbm_local_bytes" in the "mon_sub_L3_YY" directories to get node local data.h]hXZThe top-level monitoring files in each “mon_L3_XX” directory provide the sum of data across all SNC nodes sharing an L3 cache instance. Users who bind tasks to the CPUs of a specific Sub-NUMA node can read the “llc_occupancy”, “mbm_total_bytes”, and “mbm_local_bytes” in the “mon_sub_L3_YY” directories to get node local data.}(hj>hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(h|Memory bandwidth allocation is still performed at the L3 cache level. I.e. throttling controls are applied to all SNC nodes.h]h|Memory bandwidth allocation is still performed at the L3 cache level. I.e. throttling controls are applied to all SNC nodes.}(hjLhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(hXbL3 cache allocation bitmaps also apply to all SNC nodes. But note that the amount of L3 cache represented by each bit is divided by the number of SNC nodes per L3 cache. E.g. with a 100MB cache on a system with 10-bit allocation masks each bit normally represents 10MB. With SNC mode enabled with two SNC nodes per L3 cache, each bit only represents 5MB.h]hXbL3 cache allocation bitmaps also apply to all SNC nodes. But note that the amount of L3 cache represented by each bit is divided by the number of SNC nodes per L3 cache. E.g. with a 100MB cache on a system with 10-bit allocation masks each bit normally represents 10MB. With SNC mode enabled with two SNC nodes per L3 cache, each bit only represents 5MB.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubeh}(h]notes-on-sub-numa-cluster-modeah ]h"]notes on sub-numa cluster modeah$]h&]uh1jGhjIhhhhhMubjH)}(hhh](jM)}(h*Memory bandwidth Allocation and monitoringh]h*Memory bandwidth Allocation and monitoring}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjphhhhhM ubj})}(hFor Memory bandwidth resource, by default the user controls the resource by indicating the percentage of total memory bandwidth.h]hFor Memory bandwidth resource, by default the user controls the resource by indicating the percentage of total memory bandwidth.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjphhubj})}(hXThe minimum bandwidth percentage value for each cpu model is predefined and can be looked up through "info/MB/min_bandwidth". The bandwidth granularity that is allocated is also dependent on the cpu model and can be looked up at "info/MB/bandwidth_gran". The available bandwidth control steps are: min_bw + N * bw_gran. Intermediate values are rounded to the next control step available on the hardware.h]hXThe minimum bandwidth percentage value for each cpu model is predefined and can be looked up through “info/MB/min_bandwidth”. The bandwidth granularity that is allocated is also dependent on the cpu model and can be looked up at “info/MB/bandwidth_gran”. The available bandwidth control steps are: min_bw + N * bw_gran. Intermediate values are rounded to the next control step available on the hardware.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjphhubj})}(hThe bandwidth throttling is a core specific mechanism on some of Intel SKUs. Using a high bandwidth and a low bandwidth setting on two threads sharing a core may result in both threads being throttled to use the low bandwidth (see "thread_throttle_mode").h]hXThe bandwidth throttling is a core specific mechanism on some of Intel SKUs. Using a high bandwidth and a low bandwidth setting on two threads sharing a core may result in both threads being throttled to use the low bandwidth (see “thread_throttle_mode”).}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjphhubj})}(hX7The fact that Memory bandwidth allocation(MBA) may be a core specific mechanism where as memory bandwidth monitoring(MBM) is done at the package level may lead to confusion when users try to apply control via the MBA and then monitor the bandwidth to see if the controls are effective. Below are such scenarios:h]hX7The fact that Memory bandwidth allocation(MBA) may be a core specific mechanism where as memory bandwidth monitoring(MBM) is done at the package level may lead to confusion when users try to apply control via the MBA and then monitor the bandwidth to see if the controls are effective. Below are such scenarios:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjphhubj?)}(hhh]j)}(hVUser may *not* see increase in actual bandwidth when percentage values are increased: h]j})}(hUUser may *not* see increase in actual bandwidth when percentage values are increased:h](h User may }(hjhhhNhNubj*)}(h*not*h]hnot}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j)hjubhG see increase in actual bandwidth when percentage values are increased:}(hjhhhNhNubeh}(h]h ]h"]h$]h&]uh1j|hhhM$hjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubah}(h]h ]h"]h$]h&]jjjhj.uh1j>hjphhhhhM$ubj})}(hXThis can occur when aggregate L2 external bandwidth is more than L3 external bandwidth. Consider an SKL SKU with 24 cores on a package and where L2 external is 10GBps (hence aggregate L2 external bandwidth is 240GBps) and L3 external bandwidth is 100GBps. Now a workload with '20 threads, having 50% bandwidth, each consuming 5GBps' consumes the max L3 bandwidth of 100GBps although the percentage value specified is only 50% << 100%. Hence increasing the bandwidth percentage will not yield any more bandwidth. This is because although the L2 external bandwidth still has capacity, the L3 external bandwidth is fully used. Also note that this would be dependent on number of cores the benchmark is run on.h]hXThis can occur when aggregate L2 external bandwidth is more than L3 external bandwidth. Consider an SKL SKU with 24 cores on a package and where L2 external is 10GBps (hence aggregate L2 external bandwidth is 240GBps) and L3 external bandwidth is 100GBps. Now a workload with ‘20 threads, having 50% bandwidth, each consuming 5GBps’ consumes the max L3 bandwidth of 100GBps although the percentage value specified is only 50% << 100%. Hence increasing the bandwidth percentage will not yield any more bandwidth. This is because although the L2 external bandwidth still has capacity, the L3 external bandwidth is fully used. Also note that this would be dependent on number of cores the benchmark is run on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM'hjphhubj?)}(hhh]j)}(hYSame bandwidth percentage may mean different actual bandwidth depending on # of threads: h]j})}(hXSame bandwidth percentage may mean different actual bandwidth depending on # of threads:h]hXSame bandwidth percentage may mean different actual bandwidth depending on # of threads:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM2hjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubah}(h]h ]h"]h$]h&]jjjhjjstartKuh1j>hjphhhhhM2ubj})}(hXaFor the same SKU in #1, a 'single thread, with 10% bandwidth' and '4 thread, with 10% bandwidth' can consume upto 10GBps and 40GBps although they have same percentage bandwidth of 10%. This is simply because as threads start using more cores in an rdtgroup, the actual bandwidth may increase or vary although user specified bandwidth percentage is same.h]hXiFor the same SKU in #1, a ‘single thread, with 10% bandwidth’ and ‘4 thread, with 10% bandwidth’ can consume upto 10GBps and 40GBps although they have same percentage bandwidth of 10%. This is simply because as threads start using more cores in an rdtgroup, the actual bandwidth may increase or vary although user specified bandwidth percentage is same.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM5hjphhubj})}(hXWIn order to mitigate this and make the interface more user friendly, resctrl added support for specifying the bandwidth in MiBps as well. The kernel underneath would use a software feedback mechanism or a "Software Controller(mba_sc)" which reads the actual bandwidth using MBM counters and adjust the memory bandwidth percentages to ensure::h]hXZIn order to mitigate this and make the interface more user friendly, resctrl added support for specifying the bandwidth in MiBps as well. The kernel underneath would use a software feedback mechanism or a “Software Controller(mba_sc)” which reads the actual bandwidth using MBM counters and adjust the memory bandwidth percentages to ensure:}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM;hjphhubj)}(h."actual bandwidth < user specified bandwidth".h]h."actual bandwidth < user specified bandwidth".}hj9sbah}(h]h ]h"]h$]h&]hhuh1jhhhMAhjphhubj})}(hBy default, the schemata would take the bandwidth percentage values where as user can switch to the "MBA software controller" mode using a mount option 'mba_MBps'. The schemata format is specified in the below sections.h]hBy default, the schemata would take the bandwidth percentage values where as user can switch to the “MBA software controller” mode using a mount option ‘mba_MBps’. The schemata format is specified in the below sections.}(hjGhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMChjphhubjH)}(hhh](jM)}(h@L3 schemata file details (code and data prioritization disabled)h]h@L3 schemata file details (code and data prioritization disabled)}(hjXhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjUhhhhhMIubj})}(h-With CDP disabled the L3 schemata format is::h]h,With CDP disabled the L3 schemata format is:}(hjfhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMJhjUhhubj)}(h*L3:=;=;...h]h*L3:=;=;...}hjtsbah}(h]h ]h"]h$]h&]hhuh1jhhhMLhjUhhubeh}(h]>l3-schemata-file-details-code-and-data-prioritization-disabledah ]h"]@l3 schemata file details (code and data prioritization disabled)ah$]h&]uh1jGhjphhhhhMIubjH)}(hhh](jM)}(hBL3 schemata file details (CDP enabled via mount option to resctrl)h]hBL3 schemata file details (CDP enabled via mount option to resctrl)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMOubj})}(hWhen CDP is enabled L3 control is split into two separate resources so you can specify independent masks for code and data like this::h]hWhen CDP is enabled L3 control is split into two separate resources so you can specify independent masks for code and data like this:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMPhjhhubj)}(h]L3DATA:=;=;... L3CODE:=;=;...h]h]L3DATA:=;=;... L3CODE:=;=;...}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMShjhhubeh}(h]@l3-schemata-file-details-cdp-enabled-via-mount-option-to-resctrlah ]h"]Bl3 schemata file details (cdp enabled via mount option to resctrl)ah$]h&]uh1jGhjphhhhhMOubjH)}(hhh](jM)}(hL2 schemata file detailsh]hL2 schemata file details}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMWubj})}(hVCDP is supported at L2 using the 'cdpl2' mount option. The schemata format is either::h]hYCDP is supported at L2 using the ‘cdpl2’ mount option. The schemata format is either:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMXhjhhubj)}(h*L2:=;=;...h]h*L2:=;=;...}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhM[hjhhubj})}(horh]hor}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM]hjhhubj )}(h_L2DATA:=;=;... L2CODE:=;=;... h]j})}(h]L2DATA:=;=;... L2CODE:=;=;...h]h]L2DATA:=;=;... L2CODE:=;=;...}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM_hjubah}(h]h ]h"]h$]h&]uh1j hhhM_hjhhubeh}(h]l2-schemata-file-detailsah ]h"]l2 schemata file detailsah$]h&]uh1jGhjphhhhhMWubjH)}(hhh](jM)}(h*Memory bandwidth Allocation (default mode)h]h*Memory bandwidth Allocation (default mode)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMdubj})}(h!Memory b/w domain is L3 cache. ::h]hMemory b/w domain is L3 cache.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMfhjhhubj)}(h4MB:=bandwidth0;=bandwidth1;...h]h4MB:=bandwidth0;=bandwidth1;...}hj9sbah}(h]h ]h"]h$]h&]hhuh1jhhhMihjhhubeh}(h](memory-bandwidth-allocation-default-modeah ]h"]*memory bandwidth allocation (default mode)ah$]h&]uh1jGhjphhhhhMdubjH)}(hhh](jM)}(h.Memory bandwidth Allocation specified in MiBpsh]h.Memory bandwidth Allocation specified in MiBps}(hjRhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjOhhhhhMlubj})}(h'Memory bandwidth domain is L3 cache. ::h]h$Memory bandwidth domain is L3 cache.}(hj`hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMnhjOhhubj)}(h2MB:=bw_MiBps0;=bw_MiBps1;...h]h2MB:=bw_MiBps0;=bw_MiBps1;...}hjnsbah}(h]h ]h"]h$]h&]hhuh1jhhhMqhjOhhubeh}(h].memory-bandwidth-allocation-specified-in-mibpsah ]h"].memory bandwidth allocation specified in mibpsah$]h&]uh1jGhjphhhhhMlubjH)}(hhh](jM)}(h'Slow Memory Bandwidth Allocation (SMBA)h]h'Slow Memory Bandwidth Allocation (SMBA)}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMtubj})}(hXkAMD hardware supports Slow Memory Bandwidth Allocation (SMBA). CXL.memory is the only supported "slow" memory device. With the support of SMBA, the hardware enables bandwidth allocation on the slow memory devices. If there are multiple such devices in the system, the throttling logic groups all the slow sources together and applies the limit on them as a whole.h]hXoAMD hardware supports Slow Memory Bandwidth Allocation (SMBA). CXL.memory is the only supported “slow” memory device. With the support of SMBA, the hardware enables bandwidth allocation on the slow memory devices. If there are multiple such devices in the system, the throttling logic groups all the slow sources together and applies the limit on them as a whole.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMuhjhhubj})}(hThe presence of SMBA (with CXL.memory) is independent of slow memory devices presence. If there are no such devices on the system, then configuring SMBA will have no impact on the performance of the system.h]hThe presence of SMBA (with CXL.memory) is independent of slow memory devices presence. If there are no such devices on the system, then configuring SMBA will have no impact on the performance of the system.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM|hjhhubj})}(hWThe bandwidth domain for slow memory is L3 cache. Its schemata file is formatted as: ::h]hTThe bandwidth domain for slow memory is L3 cache. Its schemata file is formatted as:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h6SMBA:=bandwidth0;=bandwidth1;...h]h6SMBA:=bandwidth0;=bandwidth1;...}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubeh}(h]%slow-memory-bandwidth-allocation-smbaah ]h"]'slow memory bandwidth allocation (smba)ah$]h&]uh1jGhjphhhhhMtubjH)}(hhh](jM)}(h!Reading/writing the schemata fileh]h!Reading/writing the schemata file}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMubj})}(hReading the schemata file will show the state of all resources on all domains. When writing you only need to specify those values which you wish to change. E.g. ::h]hReading the schemata file will show the state of all resources on all domains. When writing you only need to specify those values which you wish to change. E.g.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h# cat schemata L3DATA:0=fffff;1=fffff;2=fffff;3=fffff L3CODE:0=fffff;1=fffff;2=fffff;3=fffff # echo "L3DATA:2=3c0;" > schemata # cat schemata L3DATA:0=fffff;1=fffff;2=3c0;3=fffff L3CODE:0=fffff;1=fffff;2=fffff;3=fffffh]h# cat schemata L3DATA:0=fffff;1=fffff;2=fffff;3=fffff L3CODE:0=fffff;1=fffff;2=fffff;3=fffff # echo "L3DATA:2=3c0;" > schemata # cat schemata L3DATA:0=fffff;1=fffff;2=3c0;3=fffff L3CODE:0=fffff;1=fffff;2=fffff;3=fffff}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubeh}(h]!reading-writing-the-schemata-fileah ]h"]!reading/writing the schemata fileah$]h&]uh1jGhjphhhhhMubjH)}(hhh](jM)}(h2Reading/writing the schemata file (on AMD systems)h]h2Reading/writing the schemata file (on AMD systems)}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hhhhhMubj})}(hReading the schemata file will show the current bandwidth limit on all domains. The allocated resources are in multiples of one eighth GB/s. When writing to the file, you need to specify what cache id you wish to configure the bandwidth limit.h]hReading the schemata file will show the current bandwidth limit on all domains. The allocated resources are in multiples of one eighth GB/s. When writing to the file, you need to specify what cache id you wish to configure the bandwidth limit.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj hhubj})}(h;For example, to allocate 2GB/s limit on the first cache id:h]h;For example, to allocate 2GB/s limit on the first cache id:}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj hhubj)}(h# cat schemata MB:0=2048;1=2048;2=2048;3=2048 L3:0=ffff;1=ffff;2=ffff;3=ffff # echo "MB:1=16" > schemata # cat schemata MB:0=2048;1= 16;2=2048;3=2048 L3:0=ffff;1=ffff;2=ffff;3=ffffh]h# cat schemata MB:0=2048;1=2048;2=2048;3=2048 L3:0=ffff;1=ffff;2=ffff;3=ffff # echo "MB:1=16" > schemata # cat schemata MB:0=2048;1= 16;2=2048;3=2048 L3:0=ffff;1=ffff;2=ffff;3=ffff}hj7sbah}(h]h ]h"]h$]h&]hhuh1jhhhMhj hhubeh}(h]0reading-writing-the-schemata-file-on-amd-systemsah ]h"]2reading/writing the schemata file (on amd systems)ah$]h&]uh1jGhjphhhhhMubjH)}(hhh](jM)}(hDReading/writing the schemata file (on AMD systems) with SMBA featureh]hDReading/writing the schemata file (on AMD systems) with SMBA feature}(hjPhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjMhhhhhMubj})}(hSReading and writing the schemata file is the same as without SMBA in above section.h]hSReading and writing the schemata file is the same as without SMBA in above section.}(hj^hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjMhhubj})}(h;For example, to allocate 8GB/s limit on the first cache id:h]h;For example, to allocate 8GB/s limit on the first cache id:}(hjlhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjMhhubj)}(hX# cat schemata SMBA:0=2048;1=2048;2=2048;3=2048 MB:0=2048;1=2048;2=2048;3=2048 L3:0=ffff;1=ffff;2=ffff;3=ffff # echo "SMBA:1=64" > schemata # cat schemata SMBA:0=2048;1= 64;2=2048;3=2048 MB:0=2048;1=2048;2=2048;3=2048 L3:0=ffff;1=ffff;2=ffff;3=ffffh]hX# cat schemata SMBA:0=2048;1=2048;2=2048;3=2048 MB:0=2048;1=2048;2=2048;3=2048 L3:0=ffff;1=ffff;2=ffff;3=ffff # echo "SMBA:1=64" > schemata # cat schemata SMBA:0=2048;1= 64;2=2048;3=2048 MB:0=2048;1=2048;2=2048;3=2048 L3:0=ffff;1=ffff;2=ffff;3=ffff}hjzsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjMhhubeh}(h]Breading-writing-the-schemata-file-on-amd-systems-with-smba-featureah ]h"]Dreading/writing the schemata file (on amd systems) with smba featureah$]h&]uh1jGhjphhhhhMubeh}(h]*memory-bandwidth-allocation-and-monitoringah ]h"]*memory bandwidth allocation and monitoringah$]h&]uh1jGhjIhhhhhM ubjH)}(hhh](jM)}(hCache Pseudo-Lockingh]hCache Pseudo-Locking}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMubj})}(hXMCAT enables a user to specify the amount of cache space that an application can fill. Cache pseudo-locking builds on the fact that a CPU can still read and write data pre-allocated outside its current allocated area on a cache hit. With cache pseudo-locking, data can be preloaded into a reserved portion of cache that no application can fill, and from that point on will only serve cache hits. The cache pseudo-locked memory is made accessible to user space where an application can map it into its virtual address space and thus have a region of memory with reduced average read latency.h]hXMCAT enables a user to specify the amount of cache space that an application can fill. Cache pseudo-locking builds on the fact that a CPU can still read and write data pre-allocated outside its current allocated area on a cache hit. With cache pseudo-locking, data can be preloaded into a reserved portion of cache that no application can fill, and from that point on will only serve cache hits. The cache pseudo-locked memory is made accessible to user space where an application can map it into its virtual address space and thus have a region of memory with reduced average read latency.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(hThe creation of a cache pseudo-locked region is triggered by a request from the user to do so that is accompanied by a schemata of the region to be pseudo-locked. The cache pseudo-locked region is created as follows:h]hThe creation of a cache pseudo-locked region is triggered by a request from the user to do so that is accompanied by a schemata of the region to be pseudo-locked. The cache pseudo-locked region is created as follows:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(hhh](j)}(hX=Create a CAT allocation CLOSNEW with a CBM matching the schemata from the user of the cache region that will contain the pseudo-locked memory. This region must not overlap with any current CAT allocation/CLOS on the system and no future overlap with this cache region is allowed while the pseudo-locked region exists.h]j})}(hX=Create a CAT allocation CLOSNEW with a CBM matching the schemata from the user of the cache region that will contain the pseudo-locked memory. This region must not overlap with any current CAT allocation/CLOS on the system and no future overlap with this cache region is allowed while the pseudo-locked region exists.h]hX=Create a CAT allocation CLOSNEW with a CBM matching the schemata from the user of the cache region that will contain the pseudo-locked memory. This region must not overlap with any current CAT allocation/CLOS on the system and no future overlap with this cache region is allowed while the pseudo-locked region exists.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hJCreate a contiguous region of memory of the same size as the cache region.h]j})}(hJCreate a contiguous region of memory of the same size as the cache region.h]hJCreate a contiguous region of memory of the same size as the cache region.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hBFlush the cache, disable hardware prefetchers, disable preemption.h]j})}(hjh]hBFlush the cache, disable hardware prefetchers, disable preemption.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hVMake CLOSNEW the active CLOS and touch the allocated memory to load it into the cache.h]j})}(hVMake CLOSNEW the active CLOS and touch the allocated memory to load it into the cache.h]hVMake CLOSNEW the active CLOS and touch the allocated memory to load it into the cache.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(h Set the previous CLOS as active.h]j})}(hj)h]h Set the previous CLOS as active.}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj'ubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hXAt this point the closid CLOSNEW can be released - the cache pseudo-locked region is protected as long as its CBM does not appear in any CAT allocation. Even though the cache pseudo-locked region will from this point on not appear in any CBM of any CLOS an application running with any CLOS will be able to access the memory in the pseudo-locked region since the region continues to serve cache hits.h]j})}(hXAt this point the closid CLOSNEW can be released - the cache pseudo-locked region is protected as long as its CBM does not appear in any CAT allocation. Even though the cache pseudo-locked region will from this point on not appear in any CBM of any CLOS an application running with any CLOS will be able to access the memory in the pseudo-locked region since the region continues to serve cache hits.h]hXAt this point the closid CLOSNEW can be released - the cache pseudo-locked region is protected as long as its CBM does not appear in any CAT allocation. Even though the cache pseudo-locked region will from this point on not appear in any CBM of any CLOS an application running with any CLOS will be able to access the memory in the pseudo-locked region since the region continues to serve cache hits.}(hjBhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj>ubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hfThe contiguous region of memory loaded into the cache is exposed to user-space as a character device. h]j})}(heThe contiguous region of memory loaded into the cache is exposed to user-space as a character device.h]heThe contiguous region of memory loaded into the cache is exposed to user-space as a character device.}(hjZhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjVubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]jAjBuh1jhhhMhjhhubj})}(hXCache pseudo-locking increases the probability that data will remain in the cache via carefully configuring the CAT feature and controlling application behavior. There is no guarantee that data is placed in cache. Instructions like INVD, WBINVD, CLFLUSH, etc. can still evict “locked” data from cache. Power management C-states may shrink or power off cache. Deeper C-states will automatically be restricted on pseudo-locked region creation.h]hXCache pseudo-locking increases the probability that data will remain in the cache via carefully configuring the CAT feature and controlling application behavior. There is no guarantee that data is placed in cache. Instructions like INVD, WBINVD, CLFLUSH, etc. can still evict “locked” data from cache. Power management C-states may shrink or power off cache. Deeper C-states will automatically be restricted on pseudo-locked region creation.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(hX9It is required that an application using a pseudo-locked region runs with affinity to the cores (or a subset of the cores) associated with the cache on which the pseudo-locked region resides. A sanity check within the code will not allow an application to map pseudo-locked memory unless it runs with affinity to cores associated with the cache on which the pseudo-locked region resides. The sanity check is only done during the initial mmap() handling, there is no enforcement afterwards and the application self needs to ensure it remains affine to the correct cores.h]hX9It is required that an application using a pseudo-locked region runs with affinity to the cores (or a subset of the cores) associated with the cache on which the pseudo-locked region resides. A sanity check within the code will not allow an application to map pseudo-locked memory unless it runs with affinity to cores associated with the cache on which the pseudo-locked region resides. The sanity check is only done during the initial mmap() handling, there is no enforcement afterwards and the application self needs to ensure it remains affine to the correct cores.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(h-Pseudo-locking is accomplished in two stages:h]h-Pseudo-locking is accomplished in two stages:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj?)}(hhh](j)}(hDuring the first stage the system administrator allocates a portion of cache that should be dedicated to pseudo-locking. At this time an equivalent portion of memory is allocated, loaded into allocated cache portion, and exposed as a character device.h]j})}(hDuring the first stage the system administrator allocates a portion of cache that should be dedicated to pseudo-locking. At this time an equivalent portion of memory is allocated, loaded into allocated cache portion, and exposed as a character device.h]hDuring the first stage the system administrator allocates a portion of cache that should be dedicated to pseudo-locking. At this time an equivalent portion of memory is allocated, loaded into allocated cache portion, and exposed as a character device.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hpDuring the second stage a user-space application maps (mmap()) the pseudo-locked memory into its address space. h]j})}(hoDuring the second stage a user-space application maps (mmap()) the pseudo-locked memory into its address space.h]hoDuring the second stage a user-space application maps (mmap()) the pseudo-locked memory into its address space.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]jjjhjjuh1j>hjhhhhhMubjH)}(hhh](jM)}(hCache Pseudo-Locking Interfaceh]hCache Pseudo-Locking Interface}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMubj})}(hIA pseudo-locked region is created using the resctrl interface as follows:h]hIA pseudo-locked region is created using the resctrl interface as follows:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj?)}(hhh](j)}(hKCreate a new resource group by creating a new directory in /sys/fs/resctrl.h]j})}(hjh]hKCreate a new resource group by creating a new directory in /sys/fs/resctrl.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hlChange the new resource group's mode to "pseudo-locksetup" by writing "pseudo-locksetup" to the "mode" file.h]j})}(hlChange the new resource group's mode to "pseudo-locksetup" by writing "pseudo-locksetup" to the "mode" file.h]hzChange the new resource group’s mode to “pseudo-locksetup” by writing “pseudo-locksetup” to the “mode” file.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hWrite the schemata of the pseudo-locked region to the "schemata" file. All bits within the schemata should be "unused" according to the "bit_usage" file. h]j})}(hWrite the schemata of the pseudo-locked region to the "schemata" file. All bits within the schemata should be "unused" according to the "bit_usage" file.h]hWrite the schemata of the pseudo-locked region to the “schemata” file. All bits within the schemata should be “unused” according to the “bit_usage” file.}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj(ubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]jjjhjjuh1j>hjhhhhhMubj})}(hX/On successful pseudo-locked region creation the "mode" file will contain "pseudo-locked" and a new character device with the same name as the resource group will exist in /dev/pseudo_lock. This character device can be mmap()'ed by user space in order to obtain access to the pseudo-locked memory region.h]hX9On successful pseudo-locked region creation the “mode” file will contain “pseudo-locked” and a new character device with the same name as the resource group will exist in /dev/pseudo_lock. This character device can be mmap()’ed by user space in order to obtain access to the pseudo-locked memory region.}(hjFhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(hOAn example of cache pseudo-locked region creation and usage can be found below.h]hOAn example of cache pseudo-locked region creation and usage can be found below.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM hjhhubeh}(h]cache-pseudo-locking-interfaceah ]h"]cache pseudo-locking interfaceah$]h&]uh1jGhjhhhhhMubjH)}(hhh](jM)}(h(Cache Pseudo-Locking Debugging Interfaceh]h(Cache Pseudo-Locking Debugging Interface}(hjmhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjjhhhhhMubj})}(hThe pseudo-locking debugging interface is enabled by default (if CONFIG_DEBUG_FS is enabled) and can be found in /sys/kernel/debug/resctrl.h]hThe pseudo-locking debugging interface is enabled by default (if CONFIG_DEBUG_FS is enabled) and can be found in /sys/kernel/debug/resctrl.}(hj{hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjjhhubj})}(hThere is no explicit way for the kernel to test if a provided memory location is present in the cache. The pseudo-locking debugging interface uses the tracing infrastructure to provide two ways to measure cache residency of the pseudo-locked region:h]hThere is no explicit way for the kernel to test if a provided memory location is present in the cache. The pseudo-locking debugging interface uses the tracing infrastructure to provide two ways to measure cache residency of the pseudo-locked region:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjjhhubj?)}(hhh](j)}(hXiMemory access latency using the pseudo_lock_mem_latency tracepoint. Data from these measurements are best visualized using a hist trigger (see example below). In this test the pseudo-locked region is traversed at a stride of 32 bytes while hardware prefetchers and preemption are disabled. This also provides a substitute visualization of cache hits and misses.h]j})}(hXiMemory access latency using the pseudo_lock_mem_latency tracepoint. Data from these measurements are best visualized using a hist trigger (see example below). In this test the pseudo-locked region is traversed at a stride of 32 bytes while hardware prefetchers and preemption are disabled. This also provides a substitute visualization of cache hits and misses.h]hXiMemory access latency using the pseudo_lock_mem_latency tracepoint. Data from these measurements are best visualized using a hist trigger (see example below). In this test the pseudo-locked region is traversed at a stride of 32 bytes while hardware prefetchers and preemption are disabled. This also provides a substitute visualization of cache hits and misses.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubj)}(hCache hit and miss measurements using model specific precision counters if available. Depending on the levels of cache on the system the pseudo_lock_l2 and pseudo_lock_l3 tracepoints are available. h]j})}(hCache hit and miss measurements using model specific precision counters if available. Depending on the levels of cache on the system the pseudo_lock_l2 and pseudo_lock_l3 tracepoints are available.h]hCache hit and miss measurements using model specific precision counters if available. Depending on the levels of cache on the system the pseudo_lock_l2 and pseudo_lock_l3 tracepoints are available.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubeh}(h]h ]h"]h$]h&]jjjhjjuh1j>hjjhhhhhMubj})}(hX/When a pseudo-locked region is created a new debugfs directory is created for it in debugfs as /sys/kernel/debug/resctrl/. A single write-only file, pseudo_lock_measure, is present in this directory. The measurement of the pseudo-locked region depends on the number written to this debugfs file:h]hX/When a pseudo-locked region is created a new debugfs directory is created for it in debugfs as /sys/kernel/debug/resctrl/. A single write-only file, pseudo_lock_measure, is present in this directory. The measurement of the pseudo-locked region depends on the number written to this debugfs file:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM!hjjhhubj)}(hhh](j)}(h1: writing "1" to the pseudo_lock_measure file will trigger the latency measurement captured in the pseudo_lock_mem_latency tracepoint. See example below.h](j)}(h1:h]h1:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM)hjubj)}(hhh]j})}(hwriting "1" to the pseudo_lock_measure file will trigger the latency measurement captured in the pseudo_lock_mem_latency tracepoint. See example below.h]hwriting “1” to the pseudo_lock_measure file will trigger the latency measurement captured in the pseudo_lock_mem_latency tracepoint. See example below.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM(hjubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM)hjubj)}(h2: writing "2" to the pseudo_lock_measure file will trigger the L2 cache residency (cache hits and misses) measurement captured in the pseudo_lock_l2 tracepoint. See example below.h](j)}(h2:h]h2:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM-hjubj)}(hhh]j})}(hwriting "2" to the pseudo_lock_measure file will trigger the L2 cache residency (cache hits and misses) measurement captured in the pseudo_lock_l2 tracepoint. See example below.h]hwriting “2” to the pseudo_lock_measure file will trigger the L2 cache residency (cache hits and misses) measurement captured in the pseudo_lock_l2 tracepoint. See example below.}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM,hj"ubah}(h]h ]h"]h$]h&]uh1jhjubeh}(h]h ]h"]h$]h&]uh1jhhhM-hjhhubj)}(h3: writing "3" to the pseudo_lock_measure file will trigger the L3 cache residency (cache hits and misses) measurement captured in the pseudo_lock_l3 tracepoint. h](j)}(h3:h]h3:}(hjChhhNhNubah}(h]h ]h"]h$]h&]uh1jhhhM2hj?ubj)}(hhh]j})}(hwriting "3" to the pseudo_lock_measure file will trigger the L3 cache residency (cache hits and misses) measurement captured in the pseudo_lock_l3 tracepoint.h]hwriting “3” to the pseudo_lock_measure file will trigger the L3 cache residency (cache hits and misses) measurement captured in the pseudo_lock_l3 tracepoint.}(hjThhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM0hjQubah}(h]h ]h"]h$]h&]uh1jhj?ubeh}(h]h ]h"]h$]h&]uh1jhhhM2hjhhubeh}(h]h ]h"]h$]h&]uh1jhjjhhhhhNubj})}(hAll measurements are recorded with the tracing infrastructure. This requires the relevant tracepoints to be enabled before the measurement is triggered.h]hAll measurements are recorded with the tracing infrastructure. This requires the relevant tracepoints to be enabled before the measurement is triggered.}(hjthhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM4hjjhhubjH)}(hhh](jM)}(h&Example of latency debugging interfaceh]h&Example of latency debugging interface}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhM8ubj})}(hIn this example a pseudo-locked region named "newlock" was created. Here is how we can measure the latency in cycles of reading from this region and visualize this data with a histogram that is available if CONFIG_HIST_TRIGGERS is set::h]hIn this example a pseudo-locked region named “newlock” was created. Here is how we can measure the latency in cycles of reading from this region and visualize this data with a histogram that is available if CONFIG_HIST_TRIGGERS is set:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM9hjhhubj)}(hX# :> /sys/kernel/tracing/trace # echo 'hist:keys=latency' > /sys/kernel/tracing/events/resctrl/pseudo_lock_mem_latency/trigger # echo 1 > /sys/kernel/tracing/events/resctrl/pseudo_lock_mem_latency/enable # echo 1 > /sys/kernel/debug/resctrl/newlock/pseudo_lock_measure # echo 0 > /sys/kernel/tracing/events/resctrl/pseudo_lock_mem_latency/enable # cat /sys/kernel/tracing/events/resctrl/pseudo_lock_mem_latency/hist # event histogram # # trigger info: hist:keys=latency:vals=hitcount:sort=hitcount:size=2048 [active] # { latency: 456 } hitcount: 1 { latency: 50 } hitcount: 83 { latency: 36 } hitcount: 96 { latency: 44 } hitcount: 174 { latency: 48 } hitcount: 195 { latency: 46 } hitcount: 262 { latency: 42 } hitcount: 693 { latency: 40 } hitcount: 3204 { latency: 38 } hitcount: 3484 Totals: Hits: 8192 Entries: 9 Dropped: 0h]hX# :> /sys/kernel/tracing/trace # echo 'hist:keys=latency' > /sys/kernel/tracing/events/resctrl/pseudo_lock_mem_latency/trigger # echo 1 > /sys/kernel/tracing/events/resctrl/pseudo_lock_mem_latency/enable # echo 1 > /sys/kernel/debug/resctrl/newlock/pseudo_lock_measure # echo 0 > /sys/kernel/tracing/events/resctrl/pseudo_lock_mem_latency/enable # cat /sys/kernel/tracing/events/resctrl/pseudo_lock_mem_latency/hist # event histogram # # trigger info: hist:keys=latency:vals=hitcount:sort=hitcount:size=2048 [active] # { latency: 456 } hitcount: 1 { latency: 50 } hitcount: 83 { latency: 36 } hitcount: 96 { latency: 44 } hitcount: 174 { latency: 48 } hitcount: 195 { latency: 46 } hitcount: 262 { latency: 42 } hitcount: 693 { latency: 40 } hitcount: 3204 { latency: 38 } hitcount: 3484 Totals: Hits: 8192 Entries: 9 Dropped: 0}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhM>hjhhubeh}(h]&example-of-latency-debugging-interfaceah ]h"]&example of latency debugging interfaceah$]h&]uh1jGhjjhhhhhM8ubjH)}(hhh](jM)}(h&Example of cache hits/misses debuggingh]h&Example of cache hits/misses debugging}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMZubj})}(hIn this example a pseudo-locked region named "newlock" was created on the L2 cache of a platform. Here is how we can obtain details of the cache hits and misses using the platform's precision counters. ::h]hIn this example a pseudo-locked region named “newlock” was created on the L2 cache of a platform. Here is how we can obtain details of the cache hits and misses using the platform’s precision counters.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM[hjhhubj)}(hX# :> /sys/kernel/tracing/trace # echo 1 > /sys/kernel/tracing/events/resctrl/pseudo_lock_l2/enable # echo 2 > /sys/kernel/debug/resctrl/newlock/pseudo_lock_measure # echo 0 > /sys/kernel/tracing/events/resctrl/pseudo_lock_l2/enable # cat /sys/kernel/tracing/trace # tracer: nop # # _-----=> irqs-off # / _----=> need-resched # | / _---=> hardirq/softirq # || / _--=> preempt-depth # ||| / delay # TASK-PID CPU# |||| TIMESTAMP FUNCTION # | | | |||| | | pseudo_lock_mea-1672 [002] .... 3132.860500: pseudo_lock_l2: hits=4097 miss=0h]hX# :> /sys/kernel/tracing/trace # echo 1 > /sys/kernel/tracing/events/resctrl/pseudo_lock_l2/enable # echo 2 > /sys/kernel/debug/resctrl/newlock/pseudo_lock_measure # echo 0 > /sys/kernel/tracing/events/resctrl/pseudo_lock_l2/enable # cat /sys/kernel/tracing/trace # tracer: nop # # _-----=> irqs-off # / _----=> need-resched # | / _---=> hardirq/softirq # || / _--=> preempt-depth # ||| / delay # TASK-PID CPU# |||| TIMESTAMP FUNCTION # | | | |||| | | pseudo_lock_mea-1672 [002] .... 3132.860500: pseudo_lock_l2: hits=4097 miss=0}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhM`hjhhubeh}(h]&example-of-cache-hits-misses-debuggingah ]h"]&example of cache hits/misses debuggingah$]h&]uh1jGhjjhhhhhMZubjH)}(hhh](jM)}(h!Examples for RDT allocation usageh]h!Examples for RDT allocation usage}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjhhhhhMsubj?)}(hhh]j)}(h Example 1 h]j})}(h Example 1h]h Example 1}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMuhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubah}(h]h ]h"]h$]h&]jjjhjjuh1j>hjhhhhhMuubj})}(hOn a two socket machine (one L3 cache per socket) with just four bits for cache bit masks, minimum b/w of 10% with a memory bandwidth granularity of 10%. ::h]hOn a two socket machine (one L3 cache per socket) with just four bits for cache bit masks, minimum b/w of 10% with a memory bandwidth granularity of 10%.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMwhjhhubj)}(h# mount -t resctrl resctrl /sys/fs/resctrl # cd /sys/fs/resctrl # mkdir p0 p1 # echo "L3:0=3;1=c\nMB:0=50;1=50" > /sys/fs/resctrl/p0/schemata # echo "L3:0=3;1=3\nMB:0=50;1=50" > /sys/fs/resctrl/p1/schematah]h# mount -t resctrl resctrl /sys/fs/resctrl # cd /sys/fs/resctrl # mkdir p0 p1 # echo "L3:0=3;1=c\nMB:0=50;1=50" > /sys/fs/resctrl/p0/schemata # echo "L3:0=3;1=3\nMB:0=50;1=50" > /sys/fs/resctrl/p1/schemata}hj,sbah}(h]h ]h"]h$]h&]hhuh1jhhhM|hjhhubj})}(h~The default resource group is unmodified, so we have access to all parts of all caches (its schemata file reads "L3:0=f;1=f").h]hThe default resource group is unmodified, so we have access to all parts of all caches (its schemata file reads “L3:0=f;1=f”).}(hj:hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(hTasks that are under the control of group "p0" may only allocate from the "lower" 50% on cache ID 0, and the "upper" 50% of cache ID 1. Tasks in group "p1" use the "lower" 50% of cache on both sockets.h]hTasks that are under the control of group “p0” may only allocate from the “lower” 50% on cache ID 0, and the “upper” 50% of cache ID 1. Tasks in group “p1” use the “lower” 50% of cache on both sockets.}(hjHhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(hXSimilarly, tasks that are under the control of group "p0" may use a maximum memory b/w of 50% on socket0 and 50% on socket 1. Tasks in group "p1" may also use 50% memory b/w on both sockets. Note that unlike cache masks, memory b/w cannot specify whether these allocations can overlap or not. The allocations specifies the maximum b/w that the group may be able to use and the system admin can configure the b/w accordingly.h]hXSimilarly, tasks that are under the control of group “p0” may use a maximum memory b/w of 50% on socket0 and 50% on socket 1. Tasks in group “p1” may also use 50% memory b/w on both sockets. Note that unlike cache masks, memory b/w cannot specify whether these allocations can overlap or not. The allocations specifies the maximum b/w that the group may be able to use and the system admin can configure the b/w accordingly.}(hjVhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(hIf resctrl is using the software controller (mba_sc) then user can enter the max b/w in MB rather than the percentage values. ::h]h}If resctrl is using the software controller (mba_sc) then user can enter the max b/w in MB rather than the percentage values.}(hjdhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h# echo "L3:0=3;1=c\nMB:0=1024;1=500" > /sys/fs/resctrl/p0/schemata # echo "L3:0=3;1=3\nMB:0=1024;1=500" > /sys/fs/resctrl/p1/schematah]h# echo "L3:0=3;1=c\nMB:0=1024;1=500" > /sys/fs/resctrl/p0/schemata # echo "L3:0=3;1=3\nMB:0=1024;1=500" > /sys/fs/resctrl/p1/schemata}hjrsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubj})}(hIn the above example the tasks in "p1" and "p0" on socket 0 would use a max b/w of 1024MB where as on socket 1 they would use 500MB.h]hIn the above example the tasks in “p1” and “p0” on socket 0 would use a max b/w of 1024MB where as on socket 1 they would use 500MB.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj?)}(hhh]j)}(h Example 2 h]j})}(h Example 2h]h Example 2}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubah}(h]h ]h"]h$]h&]jjjhjjjKuh1j>hjhhhhhMubj})}(hCAgain two sockets, but this time with a more realistic 20-bit mask.h]hCAgain two sockets, but this time with a more realistic 20-bit mask.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(hTwo real time tasks pid=1234 running on processor 0 and pid=5678 running on processor 1 on socket 0 on a 2-socket and dual core machine. To avoid noisy neighbors, each of the two real-time tasks exclusively occupies one quarter of L3 cache on socket 0. ::h]hTwo real time tasks pid=1234 running on processor 0 and pid=5678 running on processor 1 on socket 0 on a 2-socket and dual core machine. To avoid noisy neighbors, each of the two real-time tasks exclusively occupies one quarter of L3 cache on socket 0.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h?# mount -t resctrl resctrl /sys/fs/resctrl # cd /sys/fs/resctrlh]h?# mount -t resctrl resctrl /sys/fs/resctrl # cd /sys/fs/resctrl}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubj})}(hFirst we reset the schemata for the default group so that the "upper" 50% of the L3 cache on socket 0 and 50% of memory b/w cannot be used by ordinary tasks::h]hFirst we reset the schemata for the default group so that the “upper” 50% of the L3 cache on socket 0 and 50% of memory b/w cannot be used by ordinary tasks:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h3# echo "L3:0=3ff;1=fffff\nMB:0=50;1=100" > schematah]h3# echo "L3:0=3ff;1=fffff\nMB:0=50;1=100" > schemata}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubj})}(h{Next we make a resource group for our first real time task and give it access to the "top" 25% of the cache on socket 0. ::h]h|Next we make a resource group for our first real time task and give it access to the “top” 25% of the cache on socket 0.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h4# mkdir p0 # echo "L3:0=f8000;1=fffff" > p0/schematah]h4# mkdir p0 # echo "L3:0=f8000;1=fffff" > p0/schemata}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubj})}(hFinally we move our first real time task into this resource group. We also use taskset(1) to ensure the task always runs on a dedicated CPU on socket 0. Most uses of resource groups will also constrain which processors tasks run on. ::h]hFinally we move our first real time task into this resource group. We also use taskset(1) to ensure the task always runs on a dedicated CPU on socket 0. Most uses of resource groups will also constrain which processors tasks run on.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h+# echo 1234 > p0/tasks # taskset -cp 1 1234h]h+# echo 1234 > p0/tasks # taskset -cp 1 1234}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubj})}(hGDitto for the second real time task (with the remaining 25% of cache)::h]hFDitto for the second real time task (with the remaining 25% of cache):}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h_# mkdir p1 # echo "L3:0=7c00;1=fffff" > p1/schemata # echo 5678 > p1/tasks # taskset -cp 2 5678h]h_# mkdir p1 # echo "L3:0=7c00;1=fffff" > p1/schemata # echo 5678 > p1/tasks # taskset -cp 2 5678}hj;sbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubj})}(hFor the same 2 socket system with memory b/w resource and CAT L3 the schemata would look like(Assume min_bandwidth 10 and bandwidth_gran is 10):h]hFor the same 2 socket system with memory b/w resource and CAT L3 the schemata would look like(Assume min_bandwidth 10 and bandwidth_gran is 10):}(hjIhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(hNFor our first real time task this would request 20% memory b/w on socket 0. ::h]hKFor our first real time task this would request 20% memory b/w on socket 0.}(hjWhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h;# echo -e "L3:0=f8000;1=fffff\nMB:0=20;1=100" > p0/schematah]h;# echo -e "L3:0=f8000;1=fffff\nMB:0=20;1=100" > p0/schemata}hjesbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubj})}(hXFor our second real time task this would request an other 20% memory b/w on socket 0. ::h]hUFor our second real time task this would request an other 20% memory b/w on socket 0.}(hjshhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h;# echo -e "L3:0=f8000;1=fffff\nMB:0=20;1=100" > p0/schematah]h;# echo -e "L3:0=f8000;1=fffff\nMB:0=20;1=100" > p0/schemata}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubj?)}(hhh]j)}(h Example 3 h]j})}(h Example 3h]h Example 3}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjubah}(h]h ]h"]h$]h&]uh1jhjhhhhhNubah}(h]h ]h"]h$]h&]jjjhjjjKuh1j>hjhhhhhMubj})}(hX8A single socket system which has real-time tasks running on core 4-7 and non real-time workload assigned to core 0-3. The real-time tasks share text and data, so a per task association is not required and due to interaction with the kernel it's desired that the kernel on these cores shares L3 with the tasks. ::h]hX7A single socket system which has real-time tasks running on core 4-7 and non real-time workload assigned to core 0-3. The real-time tasks share text and data, so a per task association is not required and due to interaction with the kernel it’s desired that the kernel on these cores shares L3 with the tasks.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h?# mount -t resctrl resctrl /sys/fs/resctrl # cd /sys/fs/resctrlh]h?# mount -t resctrl resctrl /sys/fs/resctrl # cd /sys/fs/resctrl}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubj})}(hFirst we reset the schemata for the default group so that the "upper" 50% of the L3 cache on socket 0, and 50% of memory bandwidth on socket 0 cannot be used by ordinary tasks::h]hFirst we reset the schemata for the default group so that the “upper” 50% of the L3 cache on socket 0, and 50% of memory bandwidth on socket 0 cannot be used by ordinary tasks:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h%# echo "L3:0=3ff\nMB:0=50" > schematah]h%# echo "L3:0=3ff\nMB:0=50" > schemata}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubj})}(hNext we make a resource group for our real time cores and give it access to the "top" 50% of the cache on socket 0 and 50% of memory bandwidth on socket 0. ::h]hNext we make a resource group for our real time cores and give it access to the “top” 50% of the cache on socket 0 and 50% of memory bandwidth on socket 0.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h5# mkdir p0 # echo "L3:0=ffc00\nMB:0=50" > p0/schematah]h5# mkdir p0 # echo "L3:0=ffc00\nMB:0=50" > p0/schemata}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubj})}(hXFinally we move core 4-7 over to the new group and make sure that the kernel and the tasks running there get 50% of the cache. They should also get 50% of memory bandwidth assuming that the cores 4-7 are SMT siblings and only the real time threads are scheduled on the cores 4-7. ::h]hXFinally we move core 4-7 over to the new group and make sure that the kernel and the tasks running there get 50% of the cache. They should also get 50% of memory bandwidth assuming that the cores 4-7 are SMT siblings and only the real time threads are scheduled on the cores 4-7.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h# echo F0 > p0/cpush]h# echo F0 > p0/cpus}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubj?)}(hhh]j)}(h Example 4 h]j})}(h Example 4h]h Example 4}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj#ubah}(h]h ]h"]h$]h&]uh1jhj hhhhhNubah}(h]h ]h"]h$]h&]jjjhjjjKuh1j>hjhhhhhMubj})}(hXThe resource groups in previous examples were all in the default "shareable" mode allowing sharing of their cache allocations. If one resource group configures a cache allocation then nothing prevents another resource group to overlap with that allocation.h]hXThe resource groups in previous examples were all in the default “shareable” mode allowing sharing of their cache allocations. If one resource group configures a cache allocation then nothing prevents another resource group to overlap with that allocation.}(hjAhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj})}(hIn this example a new exclusive resource group will be created on a L2 CAT system with two L2 cache instances that can be configured with an 8-bit capacity bitmask. The new exclusive resource group will be configured to use 25% of each cache instance. ::h]hIn this example a new exclusive resource group will be created on a L2 CAT system with two L2 cache instances that can be configured with an 8-bit capacity bitmask. The new exclusive resource group will be configured to use 25% of each cache instance.}(hjOhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h@# mount -t resctrl resctrl /sys/fs/resctrl/ # cd /sys/fs/resctrlh]h@# mount -t resctrl resctrl /sys/fs/resctrl/ # cd /sys/fs/resctrl}hj]sbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubj})}(hTFirst, we observe that the default group is configured to allocate to all L2 cache::h]hSFirst, we observe that the default group is configured to allocate to all L2 cache:}(hjkhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h# cat schemata L2:0=ff;1=ffh]h# cat schemata L2:0=ff;1=ff}hjysbah}(h]h ]h"]h$]h&]hhuh1jhhhM hjhhubj})}(hWe could attempt to create the new resource group at this point, but it will fail because of the overlap with the schemata of the default group::h]hWe could attempt to create the new resource group at this point, but it will fail because of the overlap with the schemata of the default group:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM hjhhubj)}(h# mkdir p0 # echo 'L2:0=0x3;1=0x3' > p0/schemata # cat p0/mode shareable # echo exclusive > p0/mode -sh: echo: write error: Invalid argument # cat info/last_cmd_status schemata overlapsh]h# mkdir p0 # echo 'L2:0=0x3;1=0x3' > p0/schemata # cat p0/mode shareable # echo exclusive > p0/mode -sh: echo: write error: Invalid argument # cat info/last_cmd_status schemata overlaps}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubj})}(hTo ensure that there is no overlap with another resource group the default resource group's schemata has to change, making it possible for the new resource group to become exclusive. ::h]hTo ensure that there is no overlap with another resource group the default resource group’s schemata has to change, making it possible for the new resource group to become exclusive.}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjhhubj)}(h# echo 'L2:0=0xfc;1=0xfc' > schemata # echo exclusive > p0/mode # grep . p0/* p0/cpus:0 p0/mode:exclusive p0/schemata:L2:0=03;1=03 p0/size:L2:0=262144;1=262144h]h# echo 'L2:0=0xfc;1=0xfc' > schemata # echo exclusive > p0/mode # grep . p0/* p0/cpus:0 p0/mode:exclusive p0/schemata:L2:0=03;1=03 p0/size:L2:0=262144;1=262144}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjhhubj})}(hTA new resource group will on creation not overlap with an exclusive resource group::h]hSA new resource group will on creation not overlap with an exclusive resource group:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM%hjhhubj)}(hj# mkdir p1 # grep . p1/* p1/cpus:0 p1/mode:shareable p1/schemata:L2:0=fc;1=fc p1/size:L2:0=786432;1=786432h]hj# mkdir p1 # grep . p1/* p1/cpus:0 p1/mode:shareable p1/schemata:L2:0=fc;1=fc p1/size:L2:0=786432;1=786432}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhM(hjhhubj})}(h2The bit_usage will reflect how the cache is used::h]h1The bit_usage will reflect how the cache is used:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM/hjhhubj)}(h-# cat info/L2/bit_usage 0=SSSSSSEE;1=SSSSSSEEh]h-# cat info/L2/bit_usage 0=SSSSSSEE;1=SSSSSSEE}hjsbah}(h]h ]h"]h$]h&]hhuh1jhhhM1hjhhubj})}(hOA resource group cannot be forced to overlap with an exclusive resource group::h]hNA resource group cannot be forced to overlap with an exclusive resource group:}(hjhhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM4hjhhubj)}(h# echo 'L2:0=0x1;1=0x1' > p1/schemata -sh: echo: write error: Invalid argument # cat info/last_cmd_status overlaps with exclusive grouph]h# echo 'L2:0=0x1;1=0x1' > p1/schemata -sh: echo: write error: Invalid argument # cat info/last_cmd_status overlaps with exclusive group}hj sbah}(h]h ]h"]h$]h&]hhuh1jhhhM6hjhhubeh}(h]!examples-for-rdt-allocation-usageah ]h"]!examples for rdt allocation usageah$]h&]uh1jGhjjhhhhhMsubjH)}(hhh](jM)}(hExample of Cache Pseudo-Lockingh]hExample of Cache Pseudo-Locking}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hhhhhM<ubj})}(hLock portion of L2 cache from cache id 1 using CBM 0x3. Pseudo-locked region is exposed at /dev/pseudo_lock/newlock that can be provided to application for argument to mmap(). ::h]hLock portion of L2 cache from cache id 1 using CBM 0x3. Pseudo-locked region is exposed at /dev/pseudo_lock/newlock that can be provided to application for argument to mmap().}(hj, hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM=hj hhubj)}(h@# mount -t resctrl resctrl /sys/fs/resctrl/ # cd /sys/fs/resctrlh]h@# mount -t resctrl resctrl /sys/fs/resctrl/ # cd /sys/fs/resctrl}hj: sbah}(h]h ]h"]h$]h&]hhuh1jhhhMBhj hhubj})}(hEnsure that there are bits available that can be pseudo-locked, since only unused bits can be pseudo-locked the bits to be pseudo-locked needs to be removed from the default resource group's schemata::h]hEnsure that there are bits available that can be pseudo-locked, since only unused bits can be pseudo-locked the bits to be pseudo-locked needs to be removed from the default resource group’s schemata:}(hjH hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMEhj hhubj)}(hy# cat info/L2/bit_usage 0=SSSSSSSS;1=SSSSSSSS # echo 'L2:1=0xfc' > schemata # cat info/L2/bit_usage 0=SSSSSSSS;1=SSSSSS00h]hy# cat info/L2/bit_usage 0=SSSSSSSS;1=SSSSSSSS # echo 'L2:1=0xfc' > schemata # cat info/L2/bit_usage 0=SSSSSSSS;1=SSSSSS00}hjV sbah}(h]h ]h"]h$]h&]hhuh1jhhhMIhj hhubj})}(hCreate a new resource group that will be associated with the pseudo-locked region, indicate that it will be used for a pseudo-locked region, and configure the requested pseudo-locked region capacity bitmask::h]hCreate a new resource group that will be associated with the pseudo-locked region, indicate that it will be used for a pseudo-locked region, and configure the requested pseudo-locked region capacity bitmask:}(hjd hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMOhj hhubj)}(h[# mkdir newlock # echo pseudo-locksetup > newlock/mode # echo 'L2:1=0x3' > newlock/schematah]h[# mkdir newlock # echo pseudo-locksetup > newlock/mode # echo 'L2:1=0x3' > newlock/schemata}hjr sbah}(h]h ]h"]h$]h&]hhuh1jhhhMShj hhubj})}(hOn success the resource group's mode will change to pseudo-locked, the bit_usage will reflect the pseudo-locked region, and the character device exposing the pseudo-locked region will exist::h]hOn success the resource group’s mode will change to pseudo-locked, the bit_usage will reflect the pseudo-locked region, and the character device exposing the pseudo-locked region will exist:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMWhj hhubj)}(h# cat newlock/mode pseudo-locked # cat info/L2/bit_usage 0=SSSSSSSS;1=SSSSSSPP # ls -l /dev/pseudo_lock/newlock crw------- 1 root root 243, 0 Apr 3 05:01 /dev/pseudo_lock/newlockh]h# cat newlock/mode pseudo-locked # cat info/L2/bit_usage 0=SSSSSSSS;1=SSSSSSPP # ls -l /dev/pseudo_lock/newlock crw------- 1 root root 243, 0 Apr 3 05:01 /dev/pseudo_lock/newlock}hj sbah}(h]h ]h"]h$]h&]hhuh1jhhhM[hj hhubj)}(hX/* * Example code to access one page of pseudo-locked cache region * from user space. */ #define _GNU_SOURCE #include #include #include #include #include #include /* * It is required that the application runs with affinity to only * cores associated with the pseudo-locked region. Here the cpu * is hardcoded for convenience of example. */ static int cpuid = 2; int main(int argc, char *argv[]) { cpu_set_t cpuset; long page_size; void *mapping; int dev_fd; int ret; page_size = sysconf(_SC_PAGESIZE); CPU_ZERO(&cpuset); CPU_SET(cpuid, &cpuset); ret = sched_setaffinity(0, sizeof(cpuset), &cpuset); if (ret < 0) { perror("sched_setaffinity"); exit(EXIT_FAILURE); } dev_fd = open("/dev/pseudo_lock/newlock", O_RDWR); if (dev_fd < 0) { perror("open"); exit(EXIT_FAILURE); } mapping = mmap(0, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, dev_fd, 0); if (mapping == MAP_FAILED) { perror("mmap"); close(dev_fd); exit(EXIT_FAILURE); } /* Application interacts with pseudo-locked memory @mapping */ ret = munmap(mapping, page_size); if (ret < 0) { perror("munmap"); close(dev_fd); exit(EXIT_FAILURE); } close(dev_fd); exit(EXIT_SUCCESS); }h]hX/* * Example code to access one page of pseudo-locked cache region * from user space. */ #define _GNU_SOURCE #include #include #include #include #include #include /* * It is required that the application runs with affinity to only * cores associated with the pseudo-locked region. Here the cpu * is hardcoded for convenience of example. */ static int cpuid = 2; int main(int argc, char *argv[]) { cpu_set_t cpuset; long page_size; void *mapping; int dev_fd; int ret; page_size = sysconf(_SC_PAGESIZE); CPU_ZERO(&cpuset); CPU_SET(cpuid, &cpuset); ret = sched_setaffinity(0, sizeof(cpuset), &cpuset); if (ret < 0) { perror("sched_setaffinity"); exit(EXIT_FAILURE); } dev_fd = open("/dev/pseudo_lock/newlock", O_RDWR); if (dev_fd < 0) { perror("open"); exit(EXIT_FAILURE); } mapping = mmap(0, page_size, PROT_READ | PROT_WRITE, MAP_SHARED, dev_fd, 0); if (mapping == MAP_FAILED) { perror("mmap"); close(dev_fd); exit(EXIT_FAILURE); } /* Application interacts with pseudo-locked memory @mapping */ ret = munmap(mapping, page_size); if (ret < 0) { perror("munmap"); close(dev_fd); exit(EXIT_FAILURE); } close(dev_fd); exit(EXIT_SUCCESS); }}hj sbah}(h]h ]h"]h$]h&]hhuh1jhhhMdhj hhubeh}(h]example-of-cache-pseudo-lockingah ]h"]example of cache pseudo-lockingah$]h&]uh1jGhjjhhhhhM<ubeh}(h](cache-pseudo-locking-debugging-interfaceah ]h"](cache pseudo-locking debugging interfaceah$]h&]uh1jGhjhhhhhMubjH)}(hhh](jM)}(hLocking between applicationsh]hLocking between applications}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj hhhhhMubj})}(hmCertain operations on the resctrl filesystem, composed of read/writes to/from multiple files, must be atomic.h]hmCertain operations on the resctrl filesystem, composed of read/writes to/from multiple files, must be atomic.}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj hhubj})}(hOAs an example, the allocation of an exclusive reservation of L3 cache involves:h]hOAs an example, the allocation of an exclusive reservation of L3 cache involves:}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj hhubj )}(hX1. Read the cbmmasks from each directory or the per-resource "bit_usage" 2. Find a contiguous set of bits in the global CBM bitmask that is clear in any of the directory cbmmasks 3. Create a new directory 4. Set the bits found in step 2 to the new directory "schemata" file h]j?)}(hhh](j)}(hERead the cbmmasks from each directory or the per-resource "bit_usage"h]j})}(hj h]hIRead the cbmmasks from each directory or the per-resource “bit_usage”}(hj hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hfFind a contiguous set of bits in the global CBM bitmask that is clear in any of the directory cbmmasksh]j})}(hfFind a contiguous set of bits in the global CBM bitmask that is clear in any of the directory cbmmasksh]hfFind a contiguous set of bits in the global CBM bitmask that is clear in any of the directory cbmmasks}(hj !hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj!ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hCreate a new directoryh]j})}(hj!h]hCreate a new directory}(hj!!hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj!ubah}(h]h ]h"]h$]h&]uh1jhj ubj)}(hBSet the bits found in step 2 to the new directory "schemata" file h]j})}(hASet the bits found in step 2 to the new directory "schemata" fileh]hESet the bits found in step 2 to the new directory “schemata” file}(hj8!hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj4!ubah}(h]h ]h"]h$]h&]uh1jhj ubeh}(h]h ]h"]h$]h&]jjjhjjuh1j>hj ubah}(h]h ]h"]h$]h&]uh1j hhhMhj hhubj})}(hIf two applications attempt to allocate space concurrently then they can end up allocating the same bits so the reservations are shared instead of exclusive.h]hIf two applications attempt to allocate space concurrently then they can end up allocating the same bits so the reservations are shared instead of exclusive.}(hjX!hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj hhubj})}(hTo coordinate atomic operations on the resctrlfs and to avoid the problem above, the following locking procedure is recommended:h]hTo coordinate atomic operations on the resctrlfs and to avoid the problem above, the following locking procedure is recommended:}(hjf!hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj hhubj})}(hXLocking is based on flock, which is available in libc and also as a shell script commandh]hXLocking is based on flock, which is available in libc and also as a shell script command}(hjt!hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj hhubj})}(h Write lock:h]h Write lock:}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj hhubj )}(h\A) Take flock(LOCK_EX) on /sys/fs/resctrl B) Read/write the directory structure. C) funlock h]j?)}(hhh](j)}(h&Take flock(LOCK_EX) on /sys/fs/resctrlh]j})}(hj!h]h&Take flock(LOCK_EX) on /sys/fs/resctrl}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubj)}(h#Read/write the directory structure.h]j})}(hj!h]h#Read/write the directory structure.}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubj)}(hfunlock h]j})}(hfunlockh]hfunlock}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]j upperalphajhjjuh1j>hj!ubah}(h]h ]h"]h$]h&]uh1j hhhMhj hhubj})}(h Read lock:h]h Read lock:}(hj!hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj hhubj )}(haA) Take flock(LOCK_SH) on /sys/fs/resctrl B) If success read the directory structure. C) funlock h]j?)}(hhh](j)}(h&Take flock(LOCK_SH) on /sys/fs/resctrlh]j})}(hj"h]h&Take flock(LOCK_SH) on /sys/fs/resctrl}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj!ubah}(h]h ]h"]h$]h&]uh1jhj!ubj)}(h(If success read the directory structure.h]j})}(hj"h]h(If success read the directory structure.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj"ubah}(h]h ]h"]h$]h&]uh1jhj!ubj)}(hfunlock h]j})}(hfunlockh]hfunlock}(hj1"hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj-"ubah}(h]h ]h"]h$]h&]uh1jhj!ubeh}(h]h ]h"]h$]h&]jj!jhjjuh1j>hj!ubah}(h]h ]h"]h$]h&]uh1j hhhMhj hhubj})}(hExample with bash::h]hExample with bash:}(hjQ"hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj hhubj)}(hXX# Atomically read directory structure $ flock -s /sys/fs/resctrl/ find /sys/fs/resctrl # Read directory contents and create new subdirectory $ cat create-dir.sh find /sys/fs/resctrl/ > output.txt mask = function-of(output.txt) mkdir /sys/fs/resctrl/newres/ echo mask > /sys/fs/resctrl/newres/schemata $ flock /sys/fs/resctrl/ ./create-dir.shh]hXX# Atomically read directory structure $ flock -s /sys/fs/resctrl/ find /sys/fs/resctrl # Read directory contents and create new subdirectory $ cat create-dir.sh find /sys/fs/resctrl/ > output.txt mask = function-of(output.txt) mkdir /sys/fs/resctrl/newres/ echo mask > /sys/fs/resctrl/newres/schemata $ flock /sys/fs/resctrl/ ./create-dir.sh}hj_"sbah}(h]h ]h"]h$]h&]hhuh1jhhhMhj hhubj})}(hExample with C::h]hExample with C:}(hjm"hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj hhubj)}(hX/* * Example code do take advisory locks * before accessing resctrl filesystem */ #include #include void resctrl_take_shared_lock(int fd) { int ret; /* take shared lock on resctrl filesystem */ ret = flock(fd, LOCK_SH); if (ret) { perror("flock"); exit(-1); } } void resctrl_take_exclusive_lock(int fd) { int ret; /* release lock on resctrl filesystem */ ret = flock(fd, LOCK_EX); if (ret) { perror("flock"); exit(-1); } } void resctrl_release_lock(int fd) { int ret; /* take shared lock on resctrl filesystem */ ret = flock(fd, LOCK_UN); if (ret) { perror("flock"); exit(-1); } } void main(void) { int fd, ret; fd = open("/sys/fs/resctrl", O_DIRECTORY); if (fd == -1) { perror("open"); exit(-1); } resctrl_take_shared_lock(fd); /* code to read directory contents */ resctrl_release_lock(fd); resctrl_take_exclusive_lock(fd); /* code to read and write directory contents */ resctrl_release_lock(fd); }h]hX/* * Example code do take advisory locks * before accessing resctrl filesystem */ #include #include void resctrl_take_shared_lock(int fd) { int ret; /* take shared lock on resctrl filesystem */ ret = flock(fd, LOCK_SH); if (ret) { perror("flock"); exit(-1); } } void resctrl_take_exclusive_lock(int fd) { int ret; /* release lock on resctrl filesystem */ ret = flock(fd, LOCK_EX); if (ret) { perror("flock"); exit(-1); } } void resctrl_release_lock(int fd) { int ret; /* take shared lock on resctrl filesystem */ ret = flock(fd, LOCK_UN); if (ret) { perror("flock"); exit(-1); } } void main(void) { int fd, ret; fd = open("/sys/fs/resctrl", O_DIRECTORY); if (fd == -1) { perror("open"); exit(-1); } resctrl_take_shared_lock(fd); /* code to read directory contents */ resctrl_release_lock(fd); resctrl_take_exclusive_lock(fd); /* code to read and write directory contents */ resctrl_release_lock(fd); }}hj{"sbah}(h]h ]h"]h$]h&]hhuh1jhhhMhj hhubeh}(h]locking-between-applicationsah ]h"]locking between applicationsah$]h&]uh1jGhjhhhhhMubeh}(h]cache-pseudo-lockingah ]h"]cache pseudo-lockingah$]h&]uh1jGhjIhhhhhMubjH)}(hhh](jM)}(h7Examples for RDT Monitoring along with allocation usageh]h7Examples for RDT Monitoring along with allocation usage}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj"hhhhhMubjH)}(hhh](jM)}(hReading monitored datah]hReading monitored data}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj"hhhhhMubj})}(hReading an event file (for ex: mon_data/mon_L3_00/llc_occupancy) would show the current snapshot of LLC occupancy of the corresponding MON group or CTRL_MON group.h]hReading an event file (for ex: mon_data/mon_L3_00/llc_occupancy) would show the current snapshot of LLC occupancy of the corresponding MON group or CTRL_MON group.}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj"hhubeh}(h]reading-monitored-dataah ]h"]reading monitored dataah$]h&]uh1jGhj"hhhhhMubjH)}(hhh](jM)}(hHExample 1 (Monitor CTRL_MON group and subset of tasks in CTRL_MON group)h]hHExample 1 (Monitor CTRL_MON group and subset of tasks in CTRL_MON group)}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj"hhhhhM!ubj})}(h[On a two socket machine (one L3 cache per socket) with just four bits for cache bit masks::h]hZOn a two socket machine (one L3 cache per socket) with just four bits for cache bit masks:}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM"hj"hhubj)}(h# mount -t resctrl resctrl /sys/fs/resctrl # cd /sys/fs/resctrl # mkdir p0 p1 # echo "L3:0=3;1=c" > /sys/fs/resctrl/p0/schemata # echo "L3:0=3;1=3" > /sys/fs/resctrl/p1/schemata # echo 5678 > p1/tasks # echo 5679 > p1/tasksh]h# mount -t resctrl resctrl /sys/fs/resctrl # cd /sys/fs/resctrl # mkdir p0 p1 # echo "L3:0=3;1=c" > /sys/fs/resctrl/p0/schemata # echo "L3:0=3;1=3" > /sys/fs/resctrl/p1/schemata # echo 5678 > p1/tasks # echo 5679 > p1/tasks}hj"sbah}(h]h ]h"]h$]h&]hhuh1jhhhM%hj"hhubj})}(h~The default resource group is unmodified, so we have access to all parts of all caches (its schemata file reads "L3:0=f;1=f").h]hThe default resource group is unmodified, so we have access to all parts of all caches (its schemata file reads “L3:0=f;1=f”).}(hj"hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM-hj"hhubj})}(hTasks that are under the control of group "p0" may only allocate from the "lower" 50% on cache ID 0, and the "upper" 50% of cache ID 1. Tasks in group "p1" use the "lower" 50% of cache on both sockets.h]hTasks that are under the control of group “p0” may only allocate from the “lower” 50% on cache ID 0, and the “upper” 50% of cache ID 1. Tasks in group “p1” use the “lower” 50% of cache on both sockets.}(hj #hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM0hj"hhubj})}(hLCreate monitor groups and assign a subset of tasks to each monitor group. ::h]hICreate monitor groups and assign a subset of tasks to each monitor group.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM4hj"hhubj)}(hb# cd /sys/fs/resctrl/p1/mon_groups # mkdir m11 m12 # echo 5678 > m11/tasks # echo 5679 > m12/tasksh]hb# cd /sys/fs/resctrl/p1/mon_groups # mkdir m11 m12 # echo 5678 > m11/tasks # echo 5679 > m12/tasks}hj(#sbah}(h]h ]h"]h$]h&]hhuh1jhhhM7hj"hhubj})}(h#fetch data (data shown in bytes) ::h]h fetch data (data shown in bytes)}(hj6#hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM<hj"hhubj)}(h# cat m11/mon_data/mon_L3_00/llc_occupancy 16234000 # cat m11/mon_data/mon_L3_01/llc_occupancy 14789000 # cat m12/mon_data/mon_L3_00/llc_occupancy 16789000h]h# cat m11/mon_data/mon_L3_00/llc_occupancy 16234000 # cat m11/mon_data/mon_L3_01/llc_occupancy 14789000 # cat m12/mon_data/mon_L3_00/llc_occupancy 16789000}hjD#sbah}(h]h ]h"]h$]h&]hhuh1jhhhM?hj"hhubj})}(h7The parent ctrl_mon group shows the aggregated data. ::h]h4The parent ctrl_mon group shows the aggregated data.}(hjR#hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMFhj"hhubj)}(hB# cat /sys/fs/resctrl/p1/mon_data/mon_l3_00/llc_occupancy 31234000h]hB# cat /sys/fs/resctrl/p1/mon_data/mon_l3_00/llc_occupancy 31234000}hj`#sbah}(h]h ]h"]h$]h&]hhuh1jhhhMIhj"hhubeh}(h]Fexample-1-monitor-ctrl-mon-group-and-subset-of-tasks-in-ctrl-mon-groupah ]h"]Hexample 1 (monitor ctrl_mon group and subset of tasks in ctrl_mon group)ah$]h&]uh1jGhj"hhhhhM!ubjH)}(hhh](jM)}(h,Example 2 (Monitor a task from its creation)h]h,Example 2 (Monitor a task from its creation)}(hjy#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjv#hhhhhMMubj})}(h3On a two socket machine (one L3 cache per socket)::h]h2On a two socket machine (one L3 cache per socket):}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMNhjv#hhubj)}(hM# mount -t resctrl resctrl /sys/fs/resctrl # cd /sys/fs/resctrl # mkdir p0 p1h]hM# mount -t resctrl resctrl /sys/fs/resctrl # cd /sys/fs/resctrl # mkdir p0 p1}hj#sbah}(h]h ]h"]h$]h&]hhuh1jhhhMPhjv#hhubj})}(hoAn RMID is allocated to the group once its created and hence the below is monitored from its creation. ::h]hlAn RMID is allocated to the group once its created and hence the below is monitored from its creation.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMThjv#hhubj)}(h,# echo $$ > /sys/fs/resctrl/p1/tasks # h]h,# echo $$ > /sys/fs/resctrl/p1/tasks # }hj#sbah}(h]h ]h"]h$]h&]hhuh1jhhhMXhjv#hhubj})}(hFetch the data::h]hFetch the data:}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhM[hjv#hhubj)}(hB# cat /sys/fs/resctrl/p1/mon_data/mon_l3_00/llc_occupancy 31789000h]hB# cat /sys/fs/resctrl/p1/mon_data/mon_l3_00/llc_occupancy 31789000}hj#sbah}(h]h ]h"]h$]h&]hhuh1jhhhM]hjv#hhubeh}(h]*example-2-monitor-a-task-from-its-creationah ]h"],example 2 (monitor a task from its creation)ah$]h&]uh1jGhj"hhhhhMMubjH)}(hhh](jM)}(hEExample 3 (Monitor without CAT support or before creating CAT groups)h]hEExample 3 (Monitor without CAT support or before creating CAT groups)}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj#hhhhhMaubj})}(hXAssume a system like HSW has only CQM and no CAT support. In this case the resctrl will still mount but cannot create CTRL_MON directories. But user can create different MON groups within the root group thereby able to monitor all tasks including kernel threads.h]hXAssume a system like HSW has only CQM and no CAT support. In this case the resctrl will still mount but cannot create CTRL_MON directories. But user can create different MON groups within the root group thereby able to monitor all tasks including kernel threads.}(hj#hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMchj#hhubj})}(hThis can also be used to profile jobs cache size footprint before being able to allocate them to different allocation groups. ::h]h}This can also be used to profile jobs cache size footprint before being able to allocate them to different allocation groups.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhhj#hhubj)}(h# mount -t resctrl resctrl /sys/fs/resctrl # cd /sys/fs/resctrl # mkdir mon_groups/m01 # mkdir mon_groups/m02 # echo 3478 > /sys/fs/resctrl/mon_groups/m01/tasks # echo 2467 > /sys/fs/resctrl/mon_groups/m02/tasksh]h# mount -t resctrl resctrl /sys/fs/resctrl # cd /sys/fs/resctrl # mkdir mon_groups/m01 # mkdir mon_groups/m02 # echo 3478 > /sys/fs/resctrl/mon_groups/m01/tasks # echo 2467 > /sys/fs/resctrl/mon_groups/m02/tasks}hj$sbah}(h]h ]h"]h$]h&]hhuh1jhhhMlhj#hhubj})}(hMonitor the groups separately and also get per domain data. From the below its apparent that the tasks are mostly doing work on domain(socket) 0. ::h]hMonitor the groups separately and also get per domain data. From the below its apparent that the tasks are mostly doing work on domain(socket) 0.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMthj#hhubj)}(hX# cat /sys/fs/resctrl/mon_groups/m01/mon_L3_00/llc_occupancy 31234000 # cat /sys/fs/resctrl/mon_groups/m01/mon_L3_01/llc_occupancy 34555 # cat /sys/fs/resctrl/mon_groups/m02/mon_L3_00/llc_occupancy 31234000 # cat /sys/fs/resctrl/mon_groups/m02/mon_L3_01/llc_occupancy 32789h]hX# cat /sys/fs/resctrl/mon_groups/m01/mon_L3_00/llc_occupancy 31234000 # cat /sys/fs/resctrl/mon_groups/m01/mon_L3_01/llc_occupancy 34555 # cat /sys/fs/resctrl/mon_groups/m02/mon_L3_00/llc_occupancy 31234000 # cat /sys/fs/resctrl/mon_groups/m02/mon_L3_01/llc_occupancy 32789}hj,$sbah}(h]h ]h"]h$]h&]hhuh1jhhhMyhj#hhubeh}(h]Cexample-3-monitor-without-cat-support-or-before-creating-cat-groupsah ]h"]Eexample 3 (monitor without cat support or before creating cat groups)ah$]h&]uh1jGhj"hhhhhMaubjH)}(hhh](jM)}(h#Example 4 (Monitor real time tasks)h]h#Example 4 (Monitor real time tasks)}(hjE$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhjB$hhhhhMubj})}(hA single socket system which has real time tasks running on cores 4-7 and non real time tasks on other cpus. We want to monitor the cache occupancy of the real time threads on these cores. ::h]hA single socket system which has real time tasks running on cores 4-7 and non real time tasks on other cpus. We want to monitor the cache occupancy of the real time threads on these cores.}(hjS$hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjB$hhubj)}(hJ# mount -t resctrl resctrl /sys/fs/resctrl # cd /sys/fs/resctrl # mkdir p1h]hJ# mount -t resctrl resctrl /sys/fs/resctrl # cd /sys/fs/resctrl # mkdir p1}hja$sbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjB$hhubj})}(hMove the cpus 4-7 over to p1::h]hMove the cpus 4-7 over to p1:}(hjo$hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjB$hhubj)}(h# echo f0 > p1/cpush]h# echo f0 > p1/cpus}hj}$sbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjB$hhubj})}(h!View the llc occupancy snapshot::h]h View the llc occupancy snapshot:}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjB$hhubj)}(hB# cat /sys/fs/resctrl/p1/mon_data/mon_L3_00/llc_occupancy 11234000h]hB# cat /sys/fs/resctrl/p1/mon_data/mon_L3_00/llc_occupancy 11234000}hj$sbah}(h]h ]h"]h$]h&]hhuh1jhhhMhjB$hhubeh}(h]!example-4-monitor-real-time-tasksah ]h"]#example 4 (monitor real time tasks)ah$]h&]uh1jGhj"hhhhhMubeh}(h]7examples-for-rdt-monitoring-along-with-allocation-usageah ]h"]7examples for rdt monitoring along with allocation usageah$]h&]uh1jGhjIhhhhhMubjH)}(hhh](jM)}(hIntel RDT Erratah]hIntel RDT Errata}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj$hhhhhMubjH)}(hhh](jM)}(hAIntel MBM Counters May Report System Memory Bandwidth Incorrectlyh]hAIntel MBM Counters May Report System Memory Bandwidth Incorrectly}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1jLhj$hhhhhMubj})}(h@Errata SKX99 for Skylake server and BDF102 for Broadwell server.h]h@Errata SKX99 for Skylake server and BDF102 for Broadwell server.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj$hhubj})}(hXProblem: Intel Memory Bandwidth Monitoring (MBM) counters track metrics according to the assigned Resource Monitor ID (RMID) for that logical core. The IA32_QM_CTR register (MSR 0xC8E), used to report these metrics, may report incorrect system bandwidth for certain RMID values.h]hXProblem: Intel Memory Bandwidth Monitoring (MBM) counters track metrics according to the assigned Resource Monitor ID (RMID) for that logical core. The IA32_QM_CTR register (MSR 0xC8E), used to report these metrics, may report incorrect system bandwidth for certain RMID values.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj$hhubj})}(hWImplication: Due to the errata, system memory bandwidth may not match what is reported.h]hWImplication: Due to the errata, system memory bandwidth may not match what is reported.}(hj$hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj$hhubj})}(hjWorkaround: MBM total and local readings are corrected according to the following correction factor table:h]hjWorkaround: MBM total and local readings are corrected according to the following correction factor table:}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj$hhubjr)}(hhh]jw)}(hhh](j|)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j{hj%ubj|)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j{hj%ubj|)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j{hj%ubj|)}(hhh]h}(h]h ]h"]h$]h&]colwidthKuh1j{hj%ubj)}(hhh](j)}(hhh](j)}(hhh]j})}(h core counth]h core count}(hjH%hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjE%ubah}(h]h ]h"]h$]h&]uh1jhjB%ubj)}(hhh]j})}(h rmid counth]h rmid count}(hj_%hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj\%ubah}(h]h ]h"]h$]h&]uh1jhjB%ubj)}(hhh]j})}(hrmid thresholdh]hrmid threshold}(hjv%hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjs%ubah}(h]h ]h"]h$]h&]uh1jhjB%ubj)}(hhh]j})}(hcorrection factorh]hcorrection factor}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj%ubah}(h]h ]h"]h$]h&]uh1jhjB%ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(hjh]h1}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh]j})}(h8h]h8}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh]j})}(hjIh]h0}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubj)}(hhh]j})}(h1.000000h]h1.000000}(hj%hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj%ubah}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(hjh]h2}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj &ubah}(h]h ]h"]h$]h&]uh1jhj &ubj)}(hhh]j})}(h16h]h16}(hj&&hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj#&ubah}(h]h ]h"]h$]h&]uh1jhj &ubj)}(hhh]j})}(hjIh]h0}(hj=&hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj:&ubah}(h]h ]h"]h$]h&]uh1jhj &ubj)}(hhh]j})}(h1.000000h]h1.000000}(hjS&hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjP&ubah}(h]h ]h"]h$]h&]uh1jhj &ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(hjh]h3}(hjs&hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjp&ubah}(h]h ]h"]h$]h&]uh1jhjm&ubj)}(hhh]j})}(h24h]h24}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj&ubah}(h]h ]h"]h$]h&]uh1jhjm&ubj)}(hhh]j})}(h15h]h15}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj&ubah}(h]h ]h"]h$]h&]uh1jhjm&ubj)}(hhh]j})}(h0.969650h]h0.969650}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj&ubah}(h]h ]h"]h$]h&]uh1jhjm&ubeh}(h]h ]h"]5yh$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(hjmh]h4}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubj)}(hhh]j})}(h32h]h32}(hj&hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj&ubah}(h]h ]h"]h$]h&]uh1jhj&ubj)}(hhh]j})}(hjIh]h0}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj'ubah}(h]h ]h"]h$]h&]uh1jhj&ubj)}(hhh]j})}(h1.000000h]h1.000000}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj'ubah}(h]h ]h"]h$]h&]uh1jhj&ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(hjh]h6}(hj:'hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj7'ubah}(h]h ]h"]h$]h&]uh1jhj4'ubj)}(hhh]j})}(h48h]h48}(hjP'hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjM'ubah}(h]h ]h"]h$]h&]uh1jhj4'ubj)}(hhh]j})}(h31h]h31}(hjg'hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjd'ubah}(h]h ]h"]h$]h&]uh1jhj4'ubj)}(hhh]j})}(h0.969650h]h0.969650}(hj~'hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj{'ubah}(h]h ]h"]h$]h&]uh1jhj4'ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h7h]h7}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubj)}(hhh]j})}(h56h]h56}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubj)}(hhh]j})}(h47h]h47}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubj)}(hhh]j})}(h1.142857h]h1.142857}(hj'hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj'ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(hj%h]h8}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj'ubj)}(hhh]j})}(h64h]h64}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj'ubj)}(hhh]j})}(hjIh]h0}(hj0(hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj-(ubah}(h]h ]h"]h$]h&]uh1jhj'ubj)}(hhh]j})}(h1.000000h]h1.000000}(hjF(hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjC(ubah}(h]h ]h"]h$]h&]uh1jhj'ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h9h]h9}(hjf(hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjc(ubah}(h]h ]h"]h$]h&]uh1jhj`(ubj)}(hhh]j})}(h72h]h72}(hj}(hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjz(ubah}(h]h ]h"]h$]h&]uh1jhj`(ubj)}(hhh]j})}(h63h]h63}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj`(ubj)}(hhh]j})}(h1.185115h]h1.185115}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj`(ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h10h]h10}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubj)}(hhh]j})}(h80h]h80}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubj)}(hhh]j})}(h63h]h63}(hj(hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj(ubah}(h]h ]h"]h$]h&]uh1jhj(ubj)}(hhh]j})}(h1.066553h]h1.066553}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj )ubah}(h]h ]h"]h$]h&]uh1jhj(ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h11h]h11}(hj0)hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj-)ubah}(h]h ]h"]h$]h&]uh1jhj*)ubj)}(hhh]j})}(h88h]h88}(hjG)hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjD)ubah}(h]h ]h"]h$]h&]uh1jhj*)ubj)}(hhh]j})}(h79h]h79}(hj^)hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj[)ubah}(h]h ]h"]h$]h&]uh1jhj*)ubj)}(hhh]j})}(h1.454545h]h1.454545}(hju)hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjr)ubah}(h]h ]h"]h$]h&]uh1jhj*)ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h12h]h12}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubj)}(hhh]j})}(h96h]h96}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubj)}(hhh]j})}(hjIh]h0}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubj)}(hhh]j})}(h1.000000h]h1.000000}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h13h]h13}(hj)hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj)ubah}(h]h ]h"]h$]h&]uh1jhj)ubj)}(hhh]j})}(h104h]h104}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj *ubah}(h]h ]h"]h$]h&]uh1jhj)ubj)}(hhh]j})}(h95h]h95}(hj'*hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj$*ubah}(h]h ]h"]h$]h&]uh1jhj)ubj)}(hhh]j})}(h1.230769h]h1.230769}(hj>*hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj;*ubah}(h]h ]h"]h$]h&]uh1jhj)ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h14h]h14}(hj^*hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj[*ubah}(h]h ]h"]h$]h&]uh1jhjX*ubj)}(hhh]j})}(h112h]h112}(hju*hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjr*ubah}(h]h ]h"]h$]h&]uh1jhjX*ubj)}(hhh]j})}(h95h]h95}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj*ubah}(h]h ]h"]h$]h&]uh1jhjX*ubj)}(hhh]j})}(h1.142857h]h1.142857}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj*ubah}(h]h ]h"]h$]h&]uh1jhjX*ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h15h]h15}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubj)}(hhh]j})}(h120h]h120}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubj)}(hhh]j})}(h95h]h95}(hj*hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj*ubah}(h]h ]h"]h$]h&]uh1jhj*ubj)}(hhh]j})}(h1.066667h]h1.066667}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj+ubah}(h]h ]h"]h$]h&]uh1jhj*ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h16h]h16}(hj(+hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj%+ubah}(h]h ]h"]h$]h&]uh1jhj"+ubj)}(hhh]j})}(h128h]h128}(hj?+hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj<+ubah}(h]h ]h"]h$]h&]uh1jhj"+ubj)}(hhh]j})}(hjIh]h0}(hjV+hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjS+ubah}(h]h ]h"]h$]h&]uh1jhj"+ubj)}(hhh]j})}(h1.000000h]h1.000000}(hjl+hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhji+ubah}(h]h ]h"]h$]h&]uh1jhj"+ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h17h]h17}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubj)}(hhh]j})}(h136h]h136}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubj)}(hhh]j})}(h127h]h127}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubj)}(hhh]j})}(h1.254863h]h1.254863}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h18h]h18}(hj+hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj+ubah}(h]h ]h"]h$]h&]uh1jhj+ubj)}(hhh]j})}(h144h]h144}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj,ubah}(h]h ]h"]h$]h&]uh1jhj+ubj)}(hhh]j})}(h127h]h127}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj,ubah}(h]h ]h"]h$]h&]uh1jhj+ubj)}(hhh]j})}(h1.185255h]h1.185255}(hj6,hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj3,ubah}(h]h ]h"]h$]h&]uh1jhj+ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h19h]h19}(hjV,hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjS,ubah}(h]h ]h"]h$]h&]uh1jhjP,ubj)}(hhh]j})}(h152h]h152}(hjm,hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjj,ubah}(h]h ]h"]h$]h&]uh1jhjP,ubj)}(hhh]j})}(hjIh]h0}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj,ubah}(h]h ]h"]h$]h&]uh1jhjP,ubj)}(hhh]j})}(h1.000000h]h1.000000}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj,ubah}(h]h ]h"]h$]h&]uh1jhjP,ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h20h]h20}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubj)}(hhh]j})}(h160h]h160}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubj)}(hhh]j})}(h127h]h127}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubj)}(hhh]j})}(h1.066667h]h1.066667}(hj,hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj,ubah}(h]h ]h"]h$]h&]uh1jhj,ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h21h]h21}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubj)}(hhh]j})}(h168h]h168}(hj6-hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj3-ubah}(h]h ]h"]h$]h&]uh1jhj-ubj)}(hhh]j})}(hjIh]h0}(hjM-hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjJ-ubah}(h]h ]h"]h$]h&]uh1jhj-ubj)}(hhh]j})}(h1.000000h]h1.000000}(hjc-hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj`-ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h22h]h22}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj-ubah}(h]h ]h"]h$]h&]uh1jhj}-ubj)}(hhh]j})}(h176h]h176}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj-ubah}(h]h ]h"]h$]h&]uh1jhj}-ubj)}(hhh]j})}(h159h]h159}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj-ubah}(h]h ]h"]h$]h&]uh1jhj}-ubj)}(hhh]j})}(h1.454334h]h1.454334}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj-ubah}(h]h ]h"]h$]h&]uh1jhj}-ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h23h]h23}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubj)}(hhh]j})}(h184h]h184}(hj-hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj-ubah}(h]h ]h"]h$]h&]uh1jhj-ubj)}(hhh]j})}(hjIh]h0}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj.ubah}(h]h ]h"]h$]h&]uh1jhj-ubj)}(hhh]j})}(h1.000000h]h1.000000}(hj,.hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj).ubah}(h]h ]h"]h$]h&]uh1jhj-ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h24h]h24}(hjL.hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjI.ubah}(h]h ]h"]h$]h&]uh1jhjF.ubj)}(hhh]j})}(h192h]h192}(hjc.hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj`.ubah}(h]h ]h"]h$]h&]uh1jhjF.ubj)}(hhh]j})}(h127h]h127}(hjz.hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjw.ubah}(h]h ]h"]h$]h&]uh1jhjF.ubj)}(hhh]j})}(h0.969744h]h0.969744}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj.ubah}(h]h ]h"]h$]h&]uh1jhjF.ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h25h]h25}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubj)}(hhh]j})}(h200h]h200}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubj)}(hhh]j})}(h191h]h191}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubj)}(hhh]j})}(h1.280246h]h1.280246}(hj.hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj.ubah}(h]h ]h"]h$]h&]uh1jhj.ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h26h]h26}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hhh]j})}(h208h]h208}(hj-/hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj*/ubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hhh]j})}(h191h]h191}(hjD/hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjA/ubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hhh]j})}(h1.230921h]h1.230921}(hj[/hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjX/ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h27h]h27}(hj{/hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhjx/ubah}(h]h ]h"]h$]h&]uh1jhju/ubj)}(hhh]j})}(h216h]h216}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj/ubah}(h]h ]h"]h$]h&]uh1jhju/ubj)}(hhh]j})}(hjIh]h0}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj/ubah}(h]h ]h"]h$]h&]uh1jhju/ubj)}(hhh]j})}(h1.000000h]h1.000000}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj/ubah}(h]h ]h"]h$]h&]uh1jhju/ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubj)}(hhh](j)}(hhh]j})}(h28h]h28}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hhh]j})}(h224h]h224}(hj/hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj/ubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hhh]j})}(h191h]h191}(hj 0hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj 0ubah}(h]h ]h"]h$]h&]uh1jhj/ubj)}(hhh]j})}(h1.143118h]h1.143118}(hj$0hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj!0ubah}(h]h ]h"]h$]h&]uh1jhj/ubeh}(h]h ]h"]h$]h&]uh1jhj?%ubeh}(h]h ]h"]h$]h&]uh1jhj%ubeh}(h]h ]h"]h$]h&]colsKuh1jvhj%ubah}(h]h ]h"]h$]h&]uh1jqhj$hhhhhNubj})}(hcIf rmid > rmid threshold, MBM total and local values should be multiplied by the correction factor.h]hcIf rmid > rmid threshold, MBM total and local values should be multiplied by the correction factor.}(hjQ0hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj$hhubj})}(hSee:h]hSee:}(hj_0hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj$hhubj})}(h1. Erratum SKX99 in Intel Xeon Processor Scalable Family Specification Update: http://web.archive.org/web/20200716124958/https://www.intel.com/content/www/us/en/processors/xeon/scalable/xeon-scalable-spec-update.htmlh](hO1. Erratum SKX99 in Intel Xeon Processor Scalable Family Specification Update: }(hjm0hhhNhNubj)}(hhttp://web.archive.org/web/20200716124958/https://www.intel.com/content/www/us/en/processors/xeon/scalable/xeon-scalable-spec-update.htmlh]hhttp://web.archive.org/web/20200716124958/https://www.intel.com/content/www/us/en/processors/xeon/scalable/xeon-scalable-spec-update.html}(hju0hhhNhNubah}(h]h ]h"]h$]h&]refurijw0uh1jhjm0ubeh}(h]h ]h"]h$]h&]uh1j|hhhMhj$hhubj})}(h2. Erratum BDF102 in Intel Xeon E5-2600 v4 Processor Product Family Specification Update: http://web.archive.org/web/20191125200531/https://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/xeon-e5-v4-spec-update.pdfh](hZ2. Erratum BDF102 in Intel Xeon E5-2600 v4 Processor Product Family Specification Update: }(hj0hhhNhNubj)}(hhttp://web.archive.org/web/20191125200531/https://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/xeon-e5-v4-spec-update.pdfh]hhttp://web.archive.org/web/20191125200531/https://www.intel.com/content/dam/www/public/us/en/documents/specification-updates/xeon-e5-v4-spec-update.pdf}(hj0hhhNhNubah}(h]h ]h"]h$]h&]refurij0uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1j|hhhMhj$hhubj})}(h3. The errata in Intel Resource Director Technology (Intel RDT) on 2nd Generation Intel Xeon Scalable Processors Reference Manual: https://software.intel.com/content/www/us/en/develop/articles/intel-resource-director-technology-rdt-reference-manual.htmlh](h3. The errata in Intel Resource Director Technology (Intel RDT) on 2nd Generation Intel Xeon Scalable Processors Reference Manual: }(hj0hhhNhNubj)}(hzhttps://software.intel.com/content/www/us/en/develop/articles/intel-resource-director-technology-rdt-reference-manual.htmlh]hzhttps://software.intel.com/content/www/us/en/develop/articles/intel-resource-director-technology-rdt-reference-manual.html}(hj0hhhNhNubah}(h]h ]h"]h$]h&]refurij0uh1jhj0ubeh}(h]h ]h"]h$]h&]uh1j|hhhMhj$hhubj})}(hfor further information.h]hfor further information.}(hj0hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hhhMhj$hhubeh}(h]Aintel-mbm-counters-may-report-system-memory-bandwidth-incorrectlyah ]h"]Aintel mbm counters may report system memory bandwidth incorrectlyah$]h&]uh1jGhj$hhhhhMubeh}(h]intel-rdt-errataah ]h"]intel rdt errataah$]h&]uh1jGhjIhhhhhMubeh}(h]+user-interface-for-resource-control-featureah ]h"]+user interface for resource control featureah$]h&]uh1jGhhhhhhhKubeh}(h]h ]h"]h$]h&]sourcehuh1hcurrent_sourceN current_lineNsettingsdocutils.frontendValues)}(jLN generatorN datestampN source_linkN source_urlN toc_backlinksjfootnote_backlinksK sectnum_xformKstrip_commentsNstrip_elements_with_classesN strip_classesN report_levelK halt_levelKexit_status_levelKdebugNwarning_streamN tracebackinput_encoding utf-8-siginput_encoding_error_handlerstrictoutput_encodingutf-8output_encoding_error_handlerj 1error_encodingutf-8error_encoding_error_handlerbackslashreplace language_codeenrecord_dependenciesNconfigN id_prefixhauto_id_prefixid dump_settingsNdump_internalsNdump_transformsNdump_pseudo_xmlNexpose_internalsNstrict_visitorN_disable_configN_sourceh _destinationN _config_files]7/var/lib/git/docbuild/linux/Documentation/docutils.confafile_insertion_enabled raw_enabledKline_length_limitM'pep_referencesN pep_base_urlhttps://peps.python.org/pep_file_url_templatepep-%04drfc_referencesN rfc_base_url&https://datatracker.ietf.org/doc/html/ tab_widthKtrim_footnote_reference_spacesyntax_highlightlong smart_quotessmartquotes_locales]character_level_inline_markupdoctitle_xform docinfo_xformKsectsubtitle_xform image_loadinglinkembed_stylesheetcloak_email_addressessection_self_linkenvNubreporterNindirect_targets]substitution_defs}(hhhhhhj jjjj*jj9j-jHj<jWjKjfjZjujijjxjjjjjjjjjjjjjjjjj jjjj)jj8j,jGj;jVjJjejYjtjhjjwjjjjjjjjjjjjjjjjj jjj j(jj7j+jFj:jUjIjdjXjsjgjjvjjjjjjjjjjjjjjjjj jjj j'jj6j*jEj9jTjHjcjWjrjfjjujjjjjjjjjjjjjjjjjjjj j&jj5j)jDj8usubstitution_names}(amphߌaposhasthbrvbarj bsoljcentj*colonj9commajHcommatjWcopyjfcurrenjudarrjdegjdividejdollarjequalsjexcljfrac12jfrac14jfrac18jfrac34j frac38jfrac58j)frac78j8gtjGhalfjVhorbarjehyphenjtiexcljiquestjlaquojlarrjlcubjldquojlowbarjlparjlsqbjlsquoj ltjmicroj(middotj7nbspjFnotjUnumjdohmjsordfjordmjparajpercntjperiodjplusjplusmnjpoundjquestjquotj raquojrarrj'rcubj6rdquojEregjTrparjcrsqbjrrsquojsectjsemijshyjsoljsungjsup1jsup2jsup3jtimesjtradejuarrj&verbarj5yenjDurefnames}refids}nameids}(j0j0jjj j jjjjjjjjjjjjjjjmjjjjjjjjjjjLjIjj~jjjjjJjGjjj"j"jgjdj j jjjjj j j j j"j"j$j$j"j"js#jp#j#j#j?$j<$j$j$j0j0j0j0u nametypes}(j0jj jjjjjjjjmjjjjjLjjjjJjj"jgj jjj j j"j$j"js#j#j?$j$j0j0uh}(j0jIjj j jjjjjjjjj_jjjjjjjjjjjpjjUjjjjjIjj~jOjjjjjGj jjMj"jjdjj jjjjjjj jj j j"j j$j"j"j"jp#j"j#jv#j<$j#j$jB$j0j$j0j$u footnote_refs} citation_refs} autofootnotes]autofootnote_refs]symbol_footnotes]symbol_footnote_refs] footnotes] citations]autofootnote_startKsymbol_footnote_startK id_counter collectionsCounter}Rparse_messages](hsystem_message)}(hhh]j})}(heUnexpected possible title overline or transition. Treating it as ordinary text because it's so short.h]hgUnexpected possible title overline or transition. Treating it as ordinary text because it’s so short.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hj1ubah}(h]h ]h"]h$]h&]levelKtypeINFOlineKsourcehuh1j1hjubj1)}(hhh]j})}(heUnexpected possible title overline or transition. Treating it as ordinary text because it's so short.h]hgUnexpected possible title overline or transition. Treating it as ordinary text because it’s so short.}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hj1ubah}(h]h ]h"]h$]h&]levelKtypej1lineKsourcehuh1j1hj5ubj1)}(hhh]j})}(h:Enumerated list start value not ordinal-1: "2" (ordinal 2)h]h>Enumerated list start value not ordinal-1: “2” (ordinal 2)}(hj1hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hj1ubah}(h]h ]h"]h$]h&]levelKtypej1sourcehlineKuh1j1hjphhhhhM2ubj1)}(hhh]j})}(hfPossible title underline, too short for the title. Treating it as ordinary text because it's so short.h]hhPossible title underline, too short for the title. Treating it as ordinary text because it’s so short.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hj2ubah}(h]h ]h"]h$]h&]levelKtypej1lineMgsourcehuh1j1hjhhhhhMgubj1)}(hhh]j})}(hfPossible title underline, too short for the title. Treating it as ordinary text because it's so short.h]hhPossible title underline, too short for the title. Treating it as ordinary text because it’s so short.}(hj,2hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hj)2ubah}(h]h ]h"]h$]h&]levelKtypej1lineMosourcehuh1j1hjOhhhhhMoubj1)}(hhh]j})}(h:Enumerated list start value not ordinal-1: "2" (ordinal 2)h]h>Enumerated list start value not ordinal-1: “2” (ordinal 2)}(hjG2hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hjD2ubah}(h]h ]h"]h$]h&]levelKtypej1sourcehlineKuh1j1hjhhhhhMubj1)}(hhh]j})}(hfPossible title underline, too short for the title. Treating it as ordinary text because it's so short.h]hhPossible title underline, too short for the title. Treating it as ordinary text because it’s so short.}(hjb2hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hj_2ubah}(h]h ]h"]h$]h&]levelKtypej1lineMsourcehuh1j1hjhhhhhMubj1)}(hhh]j})}(h:Enumerated list start value not ordinal-1: "3" (ordinal 3)h]h>Enumerated list start value not ordinal-1: “3” (ordinal 3)}(hj}2hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hjz2ubah}(h]h ]h"]h$]h&]levelKtypej1sourcehlineKuh1j1hjhhhhhMubj1)}(hhh]j})}(h:Enumerated list start value not ordinal-1: "4" (ordinal 4)h]h>Enumerated list start value not ordinal-1: “4” (ordinal 4)}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hj2ubah}(h]h ]h"]h$]h&]levelKtypej1sourcehlineKuh1j1hjhhhhhMubj1)}(hhh]j})}(hfPossible title underline, too short for the title. Treating it as ordinary text because it's so short.h]hhPossible title underline, too short for the title. Treating it as ordinary text because it’s so short.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hj2ubah}(h]h ]h"]h$]h&]levelKtypej1lineM5sourcehuh1j1hj"hhhhhM5ubj1)}(hhh]j})}(hfPossible title underline, too short for the title. Treating it as ordinary text because it's so short.h]hhPossible title underline, too short for the title. Treating it as ordinary text because it’s so short.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hj2ubah}(h]h ]h"]h$]h&]levelKtypej1lineM=sourcehuh1j1hj"hhhhhM=ubj1)}(hhh]j})}(hfPossible title underline, too short for the title. Treating it as ordinary text because it's so short.h]hhPossible title underline, too short for the title. Treating it as ordinary text because it’s so short.}(hj2hhhNhNubah}(h]h ]h"]h$]h&]uh1j|hj2ubah}(h]h ]h"]h$]h&]levelKtypej1lineMGsourcehuh1j1hj"hhhhhMGubetransform_messages] transformerN include_log]"Documentation/arch/x86/resctrl.rst(NNNNta decorationNhhub.