1[
2    {
3        "BriefDescription": "C2 residency percent per package",
4        "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC",
5        "MetricGroup": "Power",
6        "MetricName": "C2_Pkg_Residency",
7        "ScaleUnit": "100%"
8    },
9    {
10        "BriefDescription": "C3 residency percent per core",
11        "MetricExpr": "cstate_core@c3\\-residency@ / TSC",
12        "MetricGroup": "Power",
13        "MetricName": "C3_Core_Residency",
14        "ScaleUnit": "100%"
15    },
16    {
17        "BriefDescription": "C3 residency percent per package",
18        "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC",
19        "MetricGroup": "Power",
20        "MetricName": "C3_Pkg_Residency",
21        "ScaleUnit": "100%"
22    },
23    {
24        "BriefDescription": "C6 residency percent per core",
25        "MetricExpr": "cstate_core@c6\\-residency@ / TSC",
26        "MetricGroup": "Power",
27        "MetricName": "C6_Core_Residency",
28        "ScaleUnit": "100%"
29    },
30    {
31        "BriefDescription": "C6 residency percent per package",
32        "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC",
33        "MetricGroup": "Power",
34        "MetricName": "C6_Pkg_Residency",
35        "ScaleUnit": "100%"
36    },
37    {
38        "BriefDescription": "C7 residency percent per core",
39        "MetricExpr": "cstate_core@c7\\-residency@ / TSC",
40        "MetricGroup": "Power",
41        "MetricName": "C7_Core_Residency",
42        "ScaleUnit": "100%"
43    },
44    {
45        "BriefDescription": "C7 residency percent per package",
46        "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC",
47        "MetricGroup": "Power",
48        "MetricName": "C7_Pkg_Residency",
49        "ScaleUnit": "100%"
50    },
51    {
52        "BriefDescription": "Uncore frequency per die [GHZ]",
53        "MetricExpr": "tma_info_socket_clks / #num_dies / duration_time / 1e9",
54        "MetricGroup": "SoC",
55        "MetricName": "UNCORE_FREQ"
56    },
57    {
58        "BriefDescription": "Percentage of cycles spent in System Management Interrupts.",
59        "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)",
60        "MetricGroup": "smi",
61        "MetricName": "smi_cycles",
62        "MetricThreshold": "smi_cycles > 0.1",
63        "ScaleUnit": "100%"
64    },
65    {
66        "BriefDescription": "Number of SMI interrupts.",
67        "MetricExpr": "msr@smi@",
68        "MetricGroup": "smi",
69        "MetricName": "smi_num",
70        "ScaleUnit": "1SMI#"
71    },
72    {
73        "BriefDescription": "This metric estimates how often memory load accesses were aliased by preceding stores (in program order) with a 4K address offset",
74        "MetricExpr": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS / tma_info_clks",
75        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
76        "MetricName": "tma_4k_aliasing",
77        "MetricThreshold": "tma_4k_aliasing > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
78        "PublicDescription": "This metric estimates how often memory load accesses were aliased by preceding stores (in program order) with a 4K address offset. False match is possible; which incur a few cycles load re-issue. However; the short re-issue duration is often hidden by the out-of-order core and HW optimizations; hence a user may safely ignore a high value of this metric unless it manages to propagate up into parent nodes of the hierarchy (e.g. to L1_Bound).",
79        "ScaleUnit": "100%"
80    },
81    {
82        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution ports for ALU operations.",
83        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
84        "MetricExpr": "(UOPS_DISPATCHED_PORT.PORT_0 + UOPS_DISPATCHED_PORT.PORT_1 + UOPS_DISPATCHED_PORT.PORT_5 + UOPS_DISPATCHED_PORT.PORT_6) / tma_info_slots",
85        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
86        "MetricName": "tma_alu_op_utilization",
87        "MetricThreshold": "tma_alu_op_utilization > 0.6",
88        "ScaleUnit": "100%"
89    },
90    {
91        "BriefDescription": "This metric estimates fraction of slots the CPU retired uops delivered by the Microcode_Sequencer as a result of Assists",
92        "MetricExpr": "100 * OTHER_ASSISTS.ANY_WB_ASSIST / tma_info_slots",
93        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
94        "MetricName": "tma_assists",
95        "MetricThreshold": "tma_assists > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
96        "PublicDescription": "This metric estimates fraction of slots the CPU retired uops delivered by the Microcode_Sequencer as a result of Assists. Assists are long sequences of uops that are required in certain corner-cases for operations that cannot be handled natively by the execution pipeline. For example; when working with very small floating point values (so-called Denormals); the FP units are not set up to perform these operations natively. Instead; a sequence of instructions to perform the computation on the Denormals is injected into the pipeline. Since these microcode sequences might be dozens of uops long; Assists can be extremely deleterious to performance and they can be avoided in many cases. Sample with: OTHER_ASSISTS.ANY",
97        "ScaleUnit": "100%"
98    },
99    {
100        "BriefDescription": "This category represents fraction of slots where no uops are being delivered due to a lack of required resources for accepting new uops in the Backend",
101        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
102        "MetricExpr": "1 - (tma_frontend_bound + tma_bad_speculation + tma_retiring)",
103        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
104        "MetricName": "tma_backend_bound",
105        "MetricThreshold": "tma_backend_bound > 0.2",
106        "MetricgroupNoGroup": "TopdownL1",
107        "PublicDescription": "This category represents fraction of slots where no uops are being delivered due to a lack of required resources for accepting new uops in the Backend. Backend is the portion of the processor core where the out-of-order scheduler dispatches ready uops into their respective execution units; and once completed these uops get retired according to program order. For example; stalls due to data-cache misses or stalls due to the divider unit being overloaded are both categorized under Backend Bound. Backend Bound is further divided into two main categories: Memory Bound and Core Bound.",
108        "ScaleUnit": "100%"
109    },
110    {
111        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations",
112        "MetricExpr": "(UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * (INT_MISC.RECOVERY_CYCLES_ANY / 2 if #SMT_on else INT_MISC.RECOVERY_CYCLES)) / tma_info_slots",
113        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
114        "MetricName": "tma_bad_speculation",
115        "MetricThreshold": "tma_bad_speculation > 0.15",
116        "MetricgroupNoGroup": "TopdownL1",
117        "PublicDescription": "This category represents fraction of slots wasted due to incorrect speculations. This include slots used to issue uops that do not eventually get retired and slots for which the issue-pipeline was blocked due to recovery from earlier incorrect speculation. For example; wasted work due to miss-predicted branches are categorized under Bad Speculation category. Incorrect data speculation followed by Memory Ordering Nukes is another example.",
118        "ScaleUnit": "100%"
119    },
120    {
121        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction",
122        "MetricConstraint": "NO_GROUP_EVENTS",
123        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT) * tma_bad_speculation",
124        "MetricGroup": "BadSpec;BrMispredicts;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueBM",
125        "MetricName": "tma_branch_mispredicts",
126        "MetricThreshold": "tma_branch_mispredicts > 0.1 & tma_bad_speculation > 0.15",
127        "MetricgroupNoGroup": "TopdownL2",
128        "PublicDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction.  These slots are either wasted by uops fetched from an incorrectly speculated program path; or stalls when the out-of-order part of the machine needs to recover its state from a speculative path. Sample with: BR_MISP_RETIRED.ALL_BRANCHES. Related metrics: tma_info_branch_misprediction_cost, tma_mispredicts_resteers",
129        "ScaleUnit": "100%"
130    },
131    {
132        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers",
133        "MetricExpr": "12 * (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY) / tma_info_clks",
134        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group",
135        "MetricName": "tma_branch_resteers",
136        "MetricThreshold": "tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
137        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers. Branch Resteers estimates the Frontend delay in fetching operations from corrected path; following all sorts of miss-predicted branches. For example; branchy code with lots of miss-predictions might get categorized under Branch Resteers. Note the value of this node may overlap with its siblings. Sample with: BR_MISP_RETIRED.ALL_BRANCHES",
138        "ScaleUnit": "100%"
139    },
140    {
141        "BriefDescription": "This metric estimates fraction of cycles the CPU retired uops originated from CISC (complex instruction set computer) instruction",
142        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
143        "MetricExpr": "max(0, tma_microcode_sequencer - tma_assists)",
144        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
145        "MetricName": "tma_cisc",
146        "MetricThreshold": "tma_cisc > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
147        "PublicDescription": "This metric estimates fraction of cycles the CPU retired uops originated from CISC (complex instruction set computer) instruction. A CISC instruction has multiple uops that are required to perform the instruction's functionality as in the case of read-modify-write as an example. Since these instructions require multiple uops they may or may not imply sub-optimal use of machine resources.",
148        "ScaleUnit": "100%"
149    },
150    {
151        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses",
152        "MetricConstraint": "NO_GROUP_EVENTS",
153        "MetricExpr": "(60 * (MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_RETIRED.L3_MISS))) + 43 * (MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_RETIRED.L3_MISS)))) / tma_info_clks",
154        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
155        "MetricName": "tma_contested_accesses",
156        "MetricThreshold": "tma_contested_accesses > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
157        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses. Contested accesses occur when data written by one Logical Processor are read by another Logical Processor on a different Physical Core. Examples of contested accesses include synchronizations such as locks; true data sharing such as modified locked variables; and false sharing. Sample with: MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM_PS;MEM_LOAD_L3_HIT_RETIRED.XSNP_MISS_PS. Related metrics: tma_data_sharing, tma_false_sharing, tma_machine_clears, tma_remote_cache",
158        "ScaleUnit": "100%"
159    },
160    {
161        "BriefDescription": "This metric represents fraction of slots where Core non-memory issues were of a bottleneck",
162        "MetricConstraint": "NO_GROUP_EVENTS",
163        "MetricExpr": "tma_backend_bound - tma_memory_bound",
164        "MetricGroup": "Backend;Compute;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
165        "MetricName": "tma_core_bound",
166        "MetricThreshold": "tma_core_bound > 0.1 & tma_backend_bound > 0.2",
167        "MetricgroupNoGroup": "TopdownL2",
168        "PublicDescription": "This metric represents fraction of slots where Core non-memory issues were of a bottleneck.  Shortage in hardware compute resources; or dependencies in software's instructions are both categorized under Core Bound. Hence it may indicate the machine ran out of an out-of-order resource; certain execution units are overloaded or dependencies in program's data- or instruction-flow are limiting the performance (e.g. FP-chained long-latency arithmetic operations).",
169        "ScaleUnit": "100%"
170    },
171    {
172        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses",
173        "MetricConstraint": "NO_GROUP_EVENTS",
174        "MetricExpr": "43 * (MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_RETIRED.L3_MISS))) / tma_info_clks",
175        "MetricGroup": "Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
176        "MetricName": "tma_data_sharing",
177        "MetricThreshold": "tma_data_sharing > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
178        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses. Data shared by multiple Logical Processors (even just read shared) may cause increased access latency due to cache coherency. Excessive data sharing can drastically harm multithreaded performance. Sample with: MEM_LOAD_L3_HIT_RETIRED.XSNP_HIT_PS. Related metrics: tma_contested_accesses, tma_false_sharing, tma_machine_clears, tma_remote_cache",
179        "ScaleUnit": "100%"
180    },
181    {
182        "BriefDescription": "This metric represents fraction of cycles where the Divider unit was active",
183        "MetricExpr": "10 * ARITH.DIVIDER_UOPS / tma_info_core_clks",
184        "MetricGroup": "TopdownL3;tma_L3_group;tma_core_bound_group",
185        "MetricName": "tma_divider",
186        "MetricThreshold": "tma_divider > 0.2 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
187        "PublicDescription": "This metric represents fraction of cycles where the Divider unit was active. Divide and square root instructions are performed by the Divider unit and can take considerably longer latency than integer or Floating Point addition; subtraction; or multiplication. Sample with: ARITH.DIVIDER_UOPS",
188        "ScaleUnit": "100%"
189    },
190    {
191        "BriefDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads",
192        "MetricConstraint": "NO_GROUP_EVENTS_SMT",
193        "MetricExpr": "(1 - MEM_LOAD_UOPS_RETIRED.L3_HIT / (MEM_LOAD_UOPS_RETIRED.L3_HIT + 7 * MEM_LOAD_UOPS_RETIRED.L3_MISS)) * CYCLE_ACTIVITY.STALLS_L2_PENDING / tma_info_clks",
194        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
195        "MetricName": "tma_dram_bound",
196        "MetricThreshold": "tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
197        "PublicDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads. Better caching can improve the latency and increase performance. Sample with: MEM_LOAD_UOPS_RETIRED.L3_MISS_PS",
198        "ScaleUnit": "100%"
199    },
200    {
201        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to DSB (decoded uop cache) fetch pipeline",
202        "MetricExpr": "(IDQ.ALL_DSB_CYCLES_ANY_UOPS - IDQ.ALL_DSB_CYCLES_4_UOPS) / tma_info_core_clks / 2",
203        "MetricGroup": "DSB;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
204        "MetricName": "tma_dsb",
205        "MetricThreshold": "tma_dsb > 0.15 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35)",
206        "PublicDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to DSB (decoded uop cache) fetch pipeline.  For example; inefficient utilization of the DSB cache structure or bank conflict when reading from it; are categorized here.",
207        "ScaleUnit": "100%"
208    },
209    {
210        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines",
211        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / tma_info_clks",
212        "MetricGroup": "DSBmiss;FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
213        "MetricName": "tma_dsb_switches",
214        "MetricThreshold": "tma_dsb_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
215        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines. The DSB (decoded i-cache) is a Uop Cache where the front-end directly delivers Uops (micro operations) avoiding heavy x86 decoding. The DSB pipeline has shorter latency and delivered higher bandwidth than the MITE (legacy instruction decode pipeline). Switching between the two pipelines can cause penalties hence this metric measures the exposed penalty. Related metrics: tma_fetch_bandwidth, tma_info_dsb_coverage, tma_info_iptb, tma_lcp",
216        "ScaleUnit": "100%"
217    },
218    {
219        "BriefDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses",
220        "MetricExpr": "(8 * DTLB_LOAD_MISSES.STLB_HIT + DTLB_LOAD_MISSES.WALK_DURATION) / tma_info_clks",
221        "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_l1_bound_group",
222        "MetricName": "tma_dtlb_load",
223        "MetricThreshold": "tma_dtlb_load > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
224        "PublicDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses. TLBs (Translation Look-aside Buffers) are processor caches for recently used entries out of the Page Tables that are used to map virtual- to physical-addresses by the operating system. This metric approximates the potential delay of demand loads missing the first-level data TLB (assuming worst case scenario with back to back misses to different pages). This includes hitting in the second-level TLB (STLB) as well as performing a hardware page walk on an STLB miss. Sample with: MEM_UOPS_RETIRED.STLB_MISS_LOADS_PS. Related metrics: tma_dtlb_store",
225        "ScaleUnit": "100%"
226    },
227    {
228        "BriefDescription": "This metric roughly estimates the fraction of cycles spent handling first-level data TLB store misses",
229        "MetricExpr": "(8 * DTLB_STORE_MISSES.STLB_HIT + DTLB_STORE_MISSES.WALK_DURATION) / tma_info_clks",
230        "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_store_bound_group",
231        "MetricName": "tma_dtlb_store",
232        "MetricThreshold": "tma_dtlb_store > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
233        "PublicDescription": "This metric roughly estimates the fraction of cycles spent handling first-level data TLB store misses.  As with ordinary data caching; focus on improving data locality and reducing working-set size to reduce DTLB overhead.  Additionally; consider using profile-guided optimization (PGO) to collocate frequently-used data on the same page.  Try using larger page sizes for large amounts of frequently-used data. Sample with: MEM_UOPS_RETIRED.STLB_MISS_STORES_PS. Related metrics: tma_dtlb_load",
234        "ScaleUnit": "100%"
235    },
236    {
237        "BriefDescription": "This metric roughly estimates how often CPU was handling synchronizations due to False Sharing",
238        "MetricExpr": "60 * OFFCORE_RESPONSE.DEMAND_RFO.L3_HIT.HITM_OTHER_CORE / tma_info_clks",
239        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_store_bound_group",
240        "MetricName": "tma_false_sharing",
241        "MetricThreshold": "tma_false_sharing > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
242        "PublicDescription": "This metric roughly estimates how often CPU was handling synchronizations due to False Sharing. False Sharing is a multithreading hiccup; where multiple Logical Processors contend on different data-elements mapped into the same cache line. Sample with: MEM_LOAD_L3_HIT_RETIRED.XSNP_HITM_PS;OFFCORE_RESPONSE.DEMAND_RFO.L3_HIT.SNOOP_HITM. Related metrics: tma_contested_accesses, tma_data_sharing, tma_machine_clears, tma_remote_cache",
243        "ScaleUnit": "100%"
244    },
245    {
246        "BriefDescription": "This metric does a *rough estimation* of how often L1D Fill Buffer unavailability limited additional L1D miss memory access requests to proceed",
247        "MetricConstraint": "NO_GROUP_EVENTS",
248        "MetricExpr": "tma_info_load_miss_real_latency * cpu@L1D_PEND_MISS.REQUEST_FB_FULL\\,cmask\\=1@ / tma_info_clks",
249        "MetricGroup": "MemoryBW;TopdownL4;tma_L4_group;tma_issueBW;tma_issueSL;tma_issueSmSt;tma_l1_bound_group",
250        "MetricName": "tma_fb_full",
251        "MetricThreshold": "tma_fb_full > 0.3",
252        "PublicDescription": "This metric does a *rough estimation* of how often L1D Fill Buffer unavailability limited additional L1D miss memory access requests to proceed. The higher the metric value; the deeper the memory hierarchy level the misses are satisfied from (metric values >1 are valid). Often it hints on approaching bandwidth limits (to L2 cache; L3 cache or external memory). Related metrics: tma_info_dram_bw_use, tma_mem_bandwidth, tma_sq_full, tma_store_latency, tma_streaming_stores",
253        "ScaleUnit": "100%"
254    },
255    {
256        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues",
257        "MetricExpr": "tma_frontend_bound - tma_fetch_latency",
258        "MetricGroup": "FetchBW;Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group;tma_issueFB",
259        "MetricName": "tma_fetch_bandwidth",
260        "MetricThreshold": "tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35",
261        "MetricgroupNoGroup": "TopdownL2",
262        "PublicDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues.  For example; inefficiencies at the instruction decoders; or restrictions for caching in the DSB (decoded uops cache) are categorized under Fetch Bandwidth. In such cases; the Frontend typically delivers suboptimal amount of uops to the Backend. Related metrics: tma_dsb_switches, tma_info_dsb_coverage, tma_info_iptb, tma_lcp",
263        "ScaleUnit": "100%"
264    },
265    {
266        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues",
267        "MetricExpr": "4 * min(CPU_CLK_UNHALTED.THREAD, IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE) / tma_info_slots",
268        "MetricGroup": "Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group",
269        "MetricName": "tma_fetch_latency",
270        "MetricThreshold": "tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15",
271        "MetricgroupNoGroup": "TopdownL2",
272        "PublicDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues.  For example; instruction-cache misses; iTLB misses or fetch stalls after a branch misprediction are categorized under Frontend Latency. In such cases; the Frontend eventually delivers no uops for some period. Sample with: RS_EVENTS.EMPTY_END",
273        "ScaleUnit": "100%"
274    },
275    {
276        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend",
277        "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / tma_info_slots",
278        "MetricGroup": "PGO;TmaL1;TopdownL1;tma_L1_group",
279        "MetricName": "tma_frontend_bound",
280        "MetricThreshold": "tma_frontend_bound > 0.15",
281        "MetricgroupNoGroup": "TopdownL1",
282        "PublicDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend. Frontend denotes the first part of the processor core responsible to fetch operations that are executed later on by the Backend part. Within the Frontend; a branch predictor predicts the next address to fetch; cache-lines are fetched from the memory subsystem; parsed into instructions; and lastly decoded into micro-operations (uops). Ideally the Frontend can issue Pipeline_Width uops every cycle to the Backend. Frontend Bound denotes unutilized issue-slots when there is no Backend stall; i.e. bubbles where Frontend delivered no uops while Backend could have accepted them. For example; stalls due to instruction-cache misses would be categorized under Frontend Bound.",
283        "ScaleUnit": "100%"
284    },
285    {
286        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring heavy-weight operations -- instructions that require two or more uops or micro-coded sequences",
287        "MetricExpr": "tma_microcode_sequencer",
288        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
289        "MetricName": "tma_heavy_operations",
290        "MetricThreshold": "tma_heavy_operations > 0.1",
291        "MetricgroupNoGroup": "TopdownL2",
292        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring heavy-weight operations -- instructions that require two or more uops or micro-coded sequences. This highly-correlates with the uop length of these instructions/sequences.",
293        "ScaleUnit": "100%"
294    },
295    {
296        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to instruction cache misses.",
297        "MetricExpr": "ICACHE.IFDATA_STALL / tma_info_clks",
298        "MetricGroup": "BigFoot;FetchLat;IcMiss;TopdownL3;tma_L3_group;tma_fetch_latency_group",
299        "MetricName": "tma_icache_misses",
300        "MetricThreshold": "tma_icache_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
301        "ScaleUnit": "100%"
302    },
303    {
304        "BriefDescription": "Measured Average Frequency for unhalted processors [GHz]",
305        "MetricExpr": "tma_info_turbo_utilization * TSC / 1e9 / duration_time",
306        "MetricGroup": "Power;Summary",
307        "MetricName": "tma_info_average_frequency"
308    },
309    {
310        "BriefDescription": "Branch instructions per taken branch.",
311        "MetricExpr": "BR_INST_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.NEAR_TAKEN",
312        "MetricGroup": "Branches;Fed;PGO",
313        "MetricName": "tma_info_bptkbranch"
314    },
315    {
316        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
317        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
318        "MetricGroup": "Pipeline",
319        "MetricName": "tma_info_clks"
320    },
321    {
322        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
323        "MetricExpr": "(CPU_CLK_UNHALTED.THREAD / 2 * (1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK) if #core_wide < 1 else (CPU_CLK_UNHALTED.THREAD_ANY / 2 if #SMT_on else tma_info_clks))",
324        "MetricGroup": "SMT",
325        "MetricName": "tma_info_core_clks"
326    },
327    {
328        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
329        "MetricExpr": "INST_RETIRED.ANY / tma_info_core_clks",
330        "MetricGroup": "Ret;SMT;TmaL1;tma_L1_group",
331        "MetricName": "tma_info_coreipc"
332    },
333    {
334        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
335        "MetricExpr": "1 / tma_info_ipc",
336        "MetricGroup": "Mem;Pipeline",
337        "MetricName": "tma_info_cpi"
338    },
339    {
340        "BriefDescription": "Average CPU Utilization",
341        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / TSC",
342        "MetricGroup": "HPC;Summary",
343        "MetricName": "tma_info_cpu_utilization"
344    },
345    {
346        "BriefDescription": "Average Parallel L2 cache miss data reads",
347        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD",
348        "MetricGroup": "Memory_BW;Offcore",
349        "MetricName": "tma_info_data_l2_mlp"
350    },
351    {
352        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
353        "MetricExpr": "64 * (UNC_ARB_TRK_REQUESTS.ALL + UNC_ARB_COH_TRK_REQUESTS.ALL) / 1e6 / duration_time / 1e3",
354        "MetricGroup": "HPC;Mem;MemoryBW;SoC;tma_issueBW",
355        "MetricName": "tma_info_dram_bw_use",
356        "PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_mem_bandwidth, tma_sq_full"
357    },
358    {
359        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
360        "MetricExpr": "IDQ.DSB_UOPS / (IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
361        "MetricGroup": "DSB;Fed;FetchBW;tma_issueFB",
362        "MetricName": "tma_info_dsb_coverage",
363        "MetricThreshold": "tma_info_dsb_coverage < 0.7 & tma_info_ipc / 4 > 0.35",
364        "PublicDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache). Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_iptb, tma_lcp"
365    },
366    {
367        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-core",
368        "MetricExpr": "(UOPS_EXECUTED.CORE / 2 / (cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ / 2 if #SMT_on else cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@) if #SMT_on else UOPS_EXECUTED.CORE / (cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ / 2 if #SMT_on else cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@))",
369        "MetricGroup": "Backend;Cor;Pipeline;PortsUtil",
370        "MetricName": "tma_info_ilp"
371    },
372    {
373        "BriefDescription": "Total number of retired Instructions",
374        "MetricExpr": "INST_RETIRED.ANY",
375        "MetricGroup": "Summary;TmaL1;tma_L1_group",
376        "MetricName": "tma_info_instructions",
377        "PublicDescription": "Total number of retired Instructions. Sample with: INST_RETIRED.PREC_DIST"
378    },
379    {
380        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
381        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
382        "MetricGroup": "Branches;Fed;InsType",
383        "MetricName": "tma_info_ipbranch",
384        "MetricThreshold": "tma_info_ipbranch < 8"
385    },
386    {
387        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
388        "MetricExpr": "INST_RETIRED.ANY / tma_info_clks",
389        "MetricGroup": "Ret;Summary",
390        "MetricName": "tma_info_ipc"
391    },
392    {
393        "BriefDescription": "Instructions per (near) call (lower number means higher occurrence rate)",
394        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
395        "MetricGroup": "Branches;Fed;PGO",
396        "MetricName": "tma_info_ipcall",
397        "MetricThreshold": "tma_info_ipcall < 200"
398    },
399    {
400        "BriefDescription": "Instructions per Far Branch ( Far Branches apply upon transition from application to operating system, handling interrupts, exceptions) [lower number means higher occurrence rate]",
401        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
402        "MetricGroup": "Branches;OS",
403        "MetricName": "tma_info_ipfarbranch",
404        "MetricThreshold": "tma_info_ipfarbranch < 1e6"
405    },
406    {
407        "BriefDescription": "Instructions per Load (lower number means higher occurrence rate)",
408        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_LOADS",
409        "MetricGroup": "InsType",
410        "MetricName": "tma_info_ipload",
411        "MetricThreshold": "tma_info_ipload < 3"
412    },
413    {
414        "BriefDescription": "Instructions per retired mispredicts for indirect CALL or JMP branches (lower number means higher occurrence rate).",
415        "MetricExpr": "tma_info_instructions / (UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * cpu@BR_MISP_EXEC.ALL_BRANCHES\\,umask\\=0xE4@)",
416        "MetricGroup": "Bad;BrMispredicts",
417        "MetricName": "tma_info_ipmisp_indirect",
418        "MetricThreshold": "tma_info_ipmisp_indirect < 1e3"
419    },
420    {
421        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear) (lower number means higher occurrence rate)",
422        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
423        "MetricGroup": "Bad;BadSpec;BrMispredicts",
424        "MetricName": "tma_info_ipmispredict",
425        "MetricThreshold": "tma_info_ipmispredict < 200"
426    },
427    {
428        "BriefDescription": "Instructions per Store (lower number means higher occurrence rate)",
429        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_STORES",
430        "MetricGroup": "InsType",
431        "MetricName": "tma_info_ipstore",
432        "MetricThreshold": "tma_info_ipstore < 8"
433    },
434    {
435        "BriefDescription": "Instruction per taken branch",
436        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
437        "MetricGroup": "Branches;Fed;FetchBW;Frontend;PGO;tma_issueFB",
438        "MetricName": "tma_info_iptb",
439        "MetricThreshold": "tma_info_iptb < 9",
440        "PublicDescription": "Instruction per taken branch. Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_dsb_coverage, tma_lcp"
441    },
442    {
443        "BriefDescription": "Instructions per speculative Unknown Branch Misprediction (BAClear) (lower number means higher occurrence rate)",
444        "MetricExpr": "tma_info_instructions / BACLEARS.ANY",
445        "MetricGroup": "Fed",
446        "MetricName": "tma_info_ipunknown_branch"
447    },
448    {
449        "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode",
450        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k",
451        "MetricGroup": "OS",
452        "MetricName": "tma_info_kernel_cpi"
453    },
454    {
455        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
456        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD",
457        "MetricGroup": "OS",
458        "MetricName": "tma_info_kernel_utilization",
459        "MetricThreshold": "tma_info_kernel_utilization > 0.05"
460    },
461    {
462        "BriefDescription": "Average per-core data fill bandwidth to the L1 data cache [GB / sec]",
463        "MetricExpr": "64 * L1D.REPLACEMENT / 1e9 / duration_time",
464        "MetricGroup": "Mem;MemoryBW",
465        "MetricName": "tma_info_l1d_cache_fill_bw"
466    },
467    {
468        "BriefDescription": "Average per-thread data fill bandwidth to the L1 data cache [GB / sec]",
469        "MetricExpr": "tma_info_l1d_cache_fill_bw",
470        "MetricGroup": "Mem;MemoryBW",
471        "MetricName": "tma_info_l1d_cache_fill_bw_1t"
472    },
473    {
474        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
475        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L1_MISS / INST_RETIRED.ANY",
476        "MetricGroup": "CacheMisses;Mem",
477        "MetricName": "tma_info_l1mpki"
478    },
479    {
480        "BriefDescription": "Average per-core data fill bandwidth to the L2 cache [GB / sec]",
481        "MetricExpr": "64 * L2_LINES_IN.ALL / 1e9 / duration_time",
482        "MetricGroup": "Mem;MemoryBW",
483        "MetricName": "tma_info_l2_cache_fill_bw"
484    },
485    {
486        "BriefDescription": "Average per-thread data fill bandwidth to the L2 cache [GB / sec]",
487        "MetricExpr": "tma_info_l2_cache_fill_bw",
488        "MetricGroup": "Mem;MemoryBW",
489        "MetricName": "tma_info_l2_cache_fill_bw_1t"
490    },
491    {
492        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
493        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L2_MISS / INST_RETIRED.ANY",
494        "MetricGroup": "Backend;CacheMisses;Mem",
495        "MetricName": "tma_info_l2mpki"
496    },
497    {
498        "BriefDescription": "Average per-thread data access bandwidth to the L3 cache [GB / sec]",
499        "MetricExpr": "0",
500        "MetricGroup": "Mem;MemoryBW;Offcore",
501        "MetricName": "tma_info_l3_cache_access_bw_1t"
502    },
503    {
504        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
505        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1e9 / duration_time",
506        "MetricGroup": "Mem;MemoryBW",
507        "MetricName": "tma_info_l3_cache_fill_bw"
508    },
509    {
510        "BriefDescription": "Average per-thread data fill bandwidth to the L3 cache [GB / sec]",
511        "MetricExpr": "tma_info_l3_cache_fill_bw",
512        "MetricGroup": "Mem;MemoryBW",
513        "MetricName": "tma_info_l3_cache_fill_bw_1t"
514    },
515    {
516        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
517        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L3_MISS / INST_RETIRED.ANY",
518        "MetricGroup": "CacheMisses;Mem",
519        "MetricName": "tma_info_l3mpki"
520    },
521    {
522        "BriefDescription": "Average Latency for L2 cache miss demand Loads",
523        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS.DEMAND_DATA_RD",
524        "MetricGroup": "Memory_Lat;Offcore",
525        "MetricName": "tma_info_load_l2_miss_latency"
526    },
527    {
528        "BriefDescription": "Average Parallel L2 cache miss demand Loads",
529        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_DATA_RD",
530        "MetricGroup": "Memory_BW;Offcore",
531        "MetricName": "tma_info_load_l2_mlp"
532    },
533    {
534        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand load operations (in core cycles)",
535        "MetricConstraint": "NO_GROUP_EVENTS",
536        "MetricExpr": "L1D_PEND_MISS.PENDING / (MEM_LOAD_UOPS_RETIRED.L1_MISS + MEM_LOAD_UOPS_RETIRED.HIT_LFB)",
537        "MetricGroup": "Mem;MemoryBound;MemoryLat",
538        "MetricName": "tma_info_load_miss_real_latency"
539    },
540    {
541        "BriefDescription": "Average number of parallel requests to external memory",
542        "MetricExpr": "UNC_ARB_TRK_OCCUPANCY.ALL / UNC_ARB_TRK_OCCUPANCY.CYCLES_WITH_ANY_REQUEST",
543        "MetricGroup": "Mem;SoC",
544        "MetricName": "tma_info_mem_parallel_requests",
545        "PublicDescription": "Average number of parallel requests to external memory. Accounts for all requests"
546    },
547    {
548        "BriefDescription": "Average latency of all requests to external memory (in Uncore cycles)",
549        "MetricExpr": "UNC_ARB_TRK_OCCUPANCY.ALL / UNC_ARB_TRK_REQUESTS.ALL",
550        "MetricGroup": "Mem;SoC",
551        "MetricName": "tma_info_mem_request_latency"
552    },
553    {
554        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss",
555        "MetricConstraint": "NO_GROUP_EVENTS",
556        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
557        "MetricGroup": "Mem;MemoryBW;MemoryBound",
558        "MetricName": "tma_info_mlp",
559        "PublicDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-Logical Processor)"
560    },
561    {
562        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
563        "MetricExpr": "(ITLB_MISSES.WALK_DURATION + DTLB_LOAD_MISSES.WALK_DURATION + DTLB_STORE_MISSES.WALK_DURATION) / tma_info_core_clks",
564        "MetricGroup": "Mem;MemoryTLB",
565        "MetricName": "tma_info_page_walks_utilization",
566        "MetricThreshold": "tma_info_page_walks_utilization > 0.5"
567    },
568    {
569        "BriefDescription": "Average number of Uops retired in cycles where at least one uop has retired.",
570        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / cpu@UOPS_RETIRED.RETIRE_SLOTS\\,cmask\\=1@",
571        "MetricGroup": "Pipeline;Ret",
572        "MetricName": "tma_info_retire"
573    },
574    {
575        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
576        "MetricExpr": "4 * tma_info_core_clks",
577        "MetricGroup": "TmaL1;tma_L1_group",
578        "MetricName": "tma_info_slots"
579    },
580    {
581        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
582        "MetricExpr": "(1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / (CPU_CLK_UNHALTED.REF_XCLK_ANY / 2) if #SMT_on else 0)",
583        "MetricGroup": "SMT",
584        "MetricName": "tma_info_smt_2t_utilization"
585    },
586    {
587        "BriefDescription": "Socket actual clocks when any core is active on that socket",
588        "MetricExpr": "UNC_CLOCK.SOCKET",
589        "MetricGroup": "SoC",
590        "MetricName": "tma_info_socket_clks"
591    },
592    {
593        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
594        "MetricExpr": "tma_info_clks / CPU_CLK_UNHALTED.REF_TSC",
595        "MetricGroup": "Power",
596        "MetricName": "tma_info_turbo_utilization"
597    },
598    {
599        "BriefDescription": "Uops Per Instruction",
600        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
601        "MetricGroup": "Pipeline;Ret;Retire",
602        "MetricName": "tma_info_uoppi",
603        "MetricThreshold": "tma_info_uoppi > 1.05"
604    },
605    {
606        "BriefDescription": "Instruction per taken branch",
607        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / BR_INST_RETIRED.NEAR_TAKEN",
608        "MetricGroup": "Branches;Fed;FetchBW",
609        "MetricName": "tma_info_uptb",
610        "MetricThreshold": "tma_info_uptb < 6"
611    },
612    {
613        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses",
614        "MetricExpr": "(14 * ITLB_MISSES.STLB_HIT + ITLB_MISSES.WALK_DURATION) / tma_info_clks",
615        "MetricGroup": "BigFoot;FetchLat;MemoryTLB;TopdownL3;tma_L3_group;tma_fetch_latency_group",
616        "MetricName": "tma_itlb_misses",
617        "MetricThreshold": "tma_itlb_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
618        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses. Sample with: ITLB_MISSES.WALK_COMPLETED",
619        "ScaleUnit": "100%"
620    },
621    {
622        "BriefDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 data cache",
623        "MetricExpr": "max((min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.STALLS_LDM_PENDING) - CYCLE_ACTIVITY.STALLS_L1D_PENDING) / tma_info_clks, 0)",
624        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_issueL1;tma_issueMC;tma_memory_bound_group",
625        "MetricName": "tma_l1_bound",
626        "MetricThreshold": "tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
627        "PublicDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 data cache.  The L1 data cache typically has the shortest latency.  However; in certain cases like loads blocked on older stores; a load might suffer due to high latency even though it is being satisfied by the L1. Another example is loads who miss in the TLB. These cases are characterized by execution unit stalls; while some non-completed demand load lives in the machine without having that demand load missing the L1 cache. Sample with: MEM_LOAD_UOPS_RETIRED.L1_HIT_PS;MEM_LOAD_UOPS_RETIRED.HIT_LFB_PS. Related metrics: tma_clears_resteers, tma_machine_clears, tma_microcode_sequencer, tma_ms_switches, tma_ports_utilized_1",
628        "ScaleUnit": "100%"
629    },
630    {
631        "BriefDescription": "This metric estimates how often the CPU was stalled due to L2 cache accesses by loads",
632        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_L1D_PENDING - CYCLE_ACTIVITY.STALLS_L2_PENDING) / tma_info_clks",
633        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
634        "MetricName": "tma_l2_bound",
635        "MetricThreshold": "tma_l2_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
636        "PublicDescription": "This metric estimates how often the CPU was stalled due to L2 cache accesses by loads.  Avoiding cache misses (i.e. L1 misses/L2 hits) can improve the latency and increase performance. Sample with: MEM_LOAD_UOPS_RETIRED.L2_HIT_PS",
637        "ScaleUnit": "100%"
638    },
639    {
640        "BriefDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core",
641        "MetricConstraint": "NO_GROUP_EVENTS_SMT",
642        "MetricExpr": "MEM_LOAD_UOPS_RETIRED.L3_HIT / (MEM_LOAD_UOPS_RETIRED.L3_HIT + 7 * MEM_LOAD_UOPS_RETIRED.L3_MISS) * CYCLE_ACTIVITY.STALLS_L2_PENDING / tma_info_clks",
643        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
644        "MetricName": "tma_l3_bound",
645        "MetricThreshold": "tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
646        "PublicDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core.  Avoiding cache misses (i.e. L2 misses/L3 hits) can improve the latency and increase performance. Sample with: MEM_LOAD_UOPS_RETIRED.L3_HIT_PS",
647        "ScaleUnit": "100%"
648    },
649    {
650        "BriefDescription": "This metric represents fraction of cycles with demand load accesses that hit the L3 cache under unloaded scenarios (possibly L3 latency limited)",
651        "MetricConstraint": "NO_GROUP_EVENTS",
652        "MetricExpr": "29 * (MEM_LOAD_UOPS_RETIRED.L3_HIT * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_RETIRED.L3_MISS))) / tma_info_clks",
653        "MetricGroup": "MemoryLat;TopdownL4;tma_L4_group;tma_issueLat;tma_l3_bound_group",
654        "MetricName": "tma_l3_hit_latency",
655        "MetricThreshold": "tma_l3_hit_latency > 0.1 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
656        "PublicDescription": "This metric represents fraction of cycles with demand load accesses that hit the L3 cache under unloaded scenarios (possibly L3 latency limited).  Avoiding private cache misses (i.e. L2 misses/L3 hits) will improve the latency; reduce contention with sibling physical cores and increase performance.  Note the value of this node may overlap with its siblings. Sample with: MEM_LOAD_UOPS_RETIRED.L3_HIT_PS. Related metrics: tma_mem_latency",
657        "ScaleUnit": "100%"
658    },
659    {
660        "BriefDescription": "This metric represents fraction of cycles CPU was stalled due to Length Changing Prefixes (LCPs)",
661        "MetricExpr": "ILD_STALL.LCP / tma_info_clks",
662        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
663        "MetricName": "tma_lcp",
664        "MetricThreshold": "tma_lcp > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
665        "PublicDescription": "This metric represents fraction of cycles CPU was stalled due to Length Changing Prefixes (LCPs). Using proper compiler flags or Intel Compiler by default will certainly avoid this. #Link: Optimization Guide about LCP BKMs. Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_dsb_coverage, tma_info_iptb",
666        "ScaleUnit": "100%"
667    },
668    {
669        "BriefDescription": "This metric represents fraction of slots where the CPU was retiring light-weight operations -- instructions that require no more than one uop (micro-operation)",
670        "MetricExpr": "tma_retiring - tma_heavy_operations",
671        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
672        "MetricName": "tma_light_operations",
673        "MetricThreshold": "tma_light_operations > 0.6",
674        "MetricgroupNoGroup": "TopdownL2",
675        "PublicDescription": "This metric represents fraction of slots where the CPU was retiring light-weight operations -- instructions that require no more than one uop (micro-operation). This correlates with total number of instructions used by the program. A uops-per-instruction (see UopPI metric) ratio of 1 or less should be expected for decently optimized software running on Intel Core/Xeon products. While this often indicates efficient X86 instructions were executed; high value does not necessarily mean better performance cannot be achieved. Sample with: INST_RETIRED.PREC_DIST",
676        "ScaleUnit": "100%"
677    },
678    {
679        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations",
680        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
681        "MetricExpr": "(UOPS_DISPATCHED_PORT.PORT_2 + UOPS_DISPATCHED_PORT.PORT_3 + UOPS_DISPATCHED_PORT.PORT_7 - UOPS_DISPATCHED_PORT.PORT_4) / (2 * tma_info_core_clks)",
682        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
683        "MetricName": "tma_load_op_utilization",
684        "MetricThreshold": "tma_load_op_utilization > 0.6",
685        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations. Sample with: UOPS_DISPATCHED.PORT_2_3",
686        "ScaleUnit": "100%"
687    },
688    {
689        "BriefDescription": "This metric represents fraction of cycles the CPU spent handling cache misses due to lock operations",
690        "MetricConstraint": "NO_GROUP_EVENTS",
691        "MetricExpr": "MEM_UOPS_RETIRED.LOCK_LOADS / MEM_UOPS_RETIRED.ALL_STORES * min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO) / tma_info_clks",
692        "MetricGroup": "Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_l1_bound_group",
693        "MetricName": "tma_lock_latency",
694        "MetricThreshold": "tma_lock_latency > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
695        "PublicDescription": "This metric represents fraction of cycles the CPU spent handling cache misses due to lock operations. Due to the microarchitecture handling of locks; they are classified as L1_Bound regardless of what memory source satisfied them. Sample with: MEM_UOPS_RETIRED.LOCK_LOADS_PS. Related metrics: tma_store_latency",
696        "ScaleUnit": "100%"
697    },
698    {
699        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Machine Clears",
700        "MetricConstraint": "NO_GROUP_EVENTS",
701        "MetricExpr": "tma_bad_speculation - tma_branch_mispredicts",
702        "MetricGroup": "BadSpec;MachineClears;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueMC;tma_issueSyncxn",
703        "MetricName": "tma_machine_clears",
704        "MetricThreshold": "tma_machine_clears > 0.1 & tma_bad_speculation > 0.15",
705        "MetricgroupNoGroup": "TopdownL2",
706        "PublicDescription": "This metric represents fraction of slots the CPU has wasted due to Machine Clears.  These slots are either wasted by uops fetched prior to the clear; or stalls the out-of-order portion of the machine needs to recover its state after the clear. For example; this can happen due to memory ordering Nukes (e.g. Memory Disambiguation) or Self-Modifying-Code (SMC) nukes. Sample with: MACHINE_CLEARS.COUNT. Related metrics: tma_clears_resteers, tma_contested_accesses, tma_data_sharing, tma_false_sharing, tma_l1_bound, tma_microcode_sequencer, tma_ms_switches, tma_remote_cache",
707        "ScaleUnit": "100%"
708    },
709    {
710        "BriefDescription": "This metric estimates fraction of cycles where the core's performance was likely hurt due to approaching bandwidth limits of external memory (DRAM)",
711        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, cpu@OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD\\,cmask\\=6@) / tma_info_clks",
712        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueBW",
713        "MetricName": "tma_mem_bandwidth",
714        "MetricThreshold": "tma_mem_bandwidth > 0.2 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
715        "PublicDescription": "This metric estimates fraction of cycles where the core's performance was likely hurt due to approaching bandwidth limits of external memory (DRAM).  The underlying heuristic assumes that a similar off-core traffic is generated by all IA cores. This metric does not aggregate non-data-read requests by this logical processor; requests from other IA Logical Processors/Physical Cores/sockets; or other non-IA devices like GPU; hence the maximum external memory bandwidth limits may or may not be approached when this metric is flagged (see Uncore counters for that). Related metrics: tma_fb_full, tma_info_dram_bw_use, tma_sq_full",
716        "ScaleUnit": "100%"
717    },
718    {
719        "BriefDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory (DRAM)",
720        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD) / tma_info_clks - tma_mem_bandwidth",
721        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueLat",
722        "MetricName": "tma_mem_latency",
723        "MetricThreshold": "tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
724        "PublicDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory (DRAM).  This metric does not aggregate requests from other Logical Processors/Physical Cores/sockets (see Uncore counters for that). Related metrics: tma_l3_hit_latency",
725        "ScaleUnit": "100%"
726    },
727    {
728        "BriefDescription": "This metric represents fraction of slots the Memory subsystem within the Backend was a bottleneck",
729        "MetricConstraint": "NO_GROUP_EVENTS",
730        "MetricExpr": "((min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.STALLS_LDM_PENDING) + RESOURCE_STALLS.SB) / (min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.CYCLES_NO_EXECUTE) + (cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ - (cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@ if tma_info_ipc > 1.8 else cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@)) / 2 - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB) if #SMT_on else min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.CYCLES_NO_EXECUTE) + cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ - (cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@ if tma_info_ipc > 1.8 else cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@) - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB) * tma_backend_bound",
731        "MetricGroup": "Backend;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
732        "MetricName": "tma_memory_bound",
733        "MetricThreshold": "tma_memory_bound > 0.2 & tma_backend_bound > 0.2",
734        "MetricgroupNoGroup": "TopdownL2",
735        "PublicDescription": "This metric represents fraction of slots the Memory subsystem within the Backend was a bottleneck.  Memory Bound estimates fraction of slots where pipeline is likely stalled due to demand load or store instructions. This accounts mainly for (1) non-completed in-flight memory demand loads which coincides with execution units starvation; in addition to (2) cases where stores could impose backpressure on the pipeline when many of them get buffered at the same time (less common out of the two).",
736        "ScaleUnit": "100%"
737    },
738    {
739        "BriefDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit",
740        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * IDQ.MS_UOPS / tma_info_slots",
741        "MetricGroup": "MicroSeq;TopdownL3;tma_L3_group;tma_heavy_operations_group;tma_issueMC;tma_issueMS",
742        "MetricName": "tma_microcode_sequencer",
743        "MetricThreshold": "tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1",
744        "PublicDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit.  The MS is used for CISC instructions not supported by the default decoders (like repeat move strings; or CPUID); or by microcode assists used to address some operation modes (like in Floating Point assists). These cases can often be avoided. Sample with: IDQ.MS_UOPS. Related metrics: tma_clears_resteers, tma_l1_bound, tma_machine_clears, tma_ms_switches",
745        "ScaleUnit": "100%"
746    },
747    {
748        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to the MITE pipeline (the legacy decode pipeline)",
749        "MetricExpr": "(IDQ.ALL_MITE_CYCLES_ANY_UOPS - IDQ.ALL_MITE_CYCLES_4_UOPS) / tma_info_core_clks / 2",
750        "MetricGroup": "DSBmiss;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
751        "MetricName": "tma_mite",
752        "MetricThreshold": "tma_mite > 0.1 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35)",
753        "PublicDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to the MITE pipeline (the legacy decode pipeline). This pipeline is used for code that was not pre-cached in the DSB or LSD. For example; inefficiencies due to asymmetric decoders; use of long immediate or LCP can manifest as MITE fetch bandwidth bottleneck.",
754        "ScaleUnit": "100%"
755    },
756    {
757        "BriefDescription": "This metric estimates the fraction of cycles when the CPU was stalled due to switches of uop delivery to the Microcode Sequencer (MS)",
758        "MetricExpr": "2 * IDQ.MS_SWITCHES / tma_info_clks",
759        "MetricGroup": "FetchLat;MicroSeq;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueMC;tma_issueMS;tma_issueMV;tma_issueSO",
760        "MetricName": "tma_ms_switches",
761        "MetricThreshold": "tma_ms_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
762        "PublicDescription": "This metric estimates the fraction of cycles when the CPU was stalled due to switches of uop delivery to the Microcode Sequencer (MS). Commonly used instructions are optimized for delivery by the DSB (decoded i-cache) or MITE (legacy instruction decode) pipelines. Certain operations cannot be handled natively by the execution pipeline; and must be performed by microcode (small programs injected into the execution stream). Switching to the MS too often can negatively impact performance. The MS is designated to deliver long uop flows required by CISC instructions like CPUID; or uncommon conditions like Floating Point Assists when dealing with Denormals. Sample with: IDQ.MS_SWITCHES. Related metrics: tma_clears_resteers, tma_l1_bound, tma_machine_clears, tma_microcode_sequencer, tma_mixing_vectors, tma_serializing_operation",
763        "ScaleUnit": "100%"
764    },
765    {
766        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 0 ([SNB+] ALU; [HSW+] ALU and 2nd branch)",
767        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_0 / tma_info_core_clks",
768        "MetricGroup": "Compute;TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
769        "MetricName": "tma_port_0",
770        "MetricThreshold": "tma_port_0 > 0.6",
771        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 0 ([SNB+] ALU; [HSW+] ALU and 2nd branch). Sample with: UOPS_DISPATCHED_PORT.PORT_0. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_512b, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
772        "ScaleUnit": "100%"
773    },
774    {
775        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU)",
776        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_1 / tma_info_core_clks",
777        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
778        "MetricName": "tma_port_1",
779        "MetricThreshold": "tma_port_1 > 0.6",
780        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU). Sample with: UOPS_DISPATCHED_PORT.PORT_1. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_512b, tma_port_0, tma_port_5, tma_port_6, tma_ports_utilized_2",
781        "ScaleUnit": "100%"
782    },
783    {
784        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 2 ([SNB+]Loads and Store-address; [ICL+] Loads)",
785        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_2 / tma_info_core_clks",
786        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
787        "MetricName": "tma_port_2",
788        "MetricThreshold": "tma_port_2 > 0.6",
789        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 2 ([SNB+]Loads and Store-address; [ICL+] Loads). Sample with: UOPS_DISPATCHED_PORT.PORT_2",
790        "ScaleUnit": "100%"
791    },
792    {
793        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 3 ([SNB+]Loads and Store-address; [ICL+] Loads)",
794        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_3 / tma_info_core_clks",
795        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
796        "MetricName": "tma_port_3",
797        "MetricThreshold": "tma_port_3 > 0.6",
798        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 3 ([SNB+]Loads and Store-address; [ICL+] Loads). Sample with: UOPS_DISPATCHED_PORT.PORT_3",
799        "ScaleUnit": "100%"
800    },
801    {
802        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 4 (Store-data)",
803        "MetricExpr": "tma_store_op_utilization",
804        "MetricGroup": "TopdownL6;tma_L6_group;tma_issueSpSt;tma_store_op_utilization_group",
805        "MetricName": "tma_port_4",
806        "MetricThreshold": "tma_port_4 > 0.6",
807        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 4 (Store-data). Sample with: UOPS_DISPATCHED_PORT.PORT_4. Related metrics: tma_split_stores",
808        "ScaleUnit": "100%"
809    },
810    {
811        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 5 ([SNB+] Branches and ALU; [HSW+] ALU)",
812        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_5 / tma_info_core_clks",
813        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
814        "MetricName": "tma_port_5",
815        "MetricThreshold": "tma_port_5 > 0.6",
816        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 5 ([SNB+] Branches and ALU; [HSW+] ALU). Sample with: UOPS_DISPATCHED.PORT_5. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_6, tma_ports_utilized_2",
817        "ScaleUnit": "100%"
818    },
819    {
820        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 6 ([HSW+]Primary Branch and simple ALU)",
821        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_6 / tma_info_core_clks",
822        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
823        "MetricName": "tma_port_6",
824        "MetricThreshold": "tma_port_6 > 0.6",
825        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 6 ([HSW+]Primary Branch and simple ALU). Sample with: UOPS_DISPATCHED_PORT.PORT_6. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_ports_utilized_2",
826        "ScaleUnit": "100%"
827    },
828    {
829        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 7 ([HSW+]simple Store-address)",
830        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_7 / tma_info_core_clks",
831        "MetricGroup": "TopdownL6;tma_L6_group;tma_store_op_utilization_group",
832        "MetricName": "tma_port_7",
833        "MetricThreshold": "tma_port_7 > 0.6",
834        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 7 ([HSW+]simple Store-address). Sample with: UOPS_DISPATCHED_PORT.PORT_7",
835        "ScaleUnit": "100%"
836    },
837    {
838        "BriefDescription": "This metric estimates fraction of cycles the CPU performance was potentially limited due to Core computation issues (non divider-related)",
839        "MetricConstraint": "NO_GROUP_EVENTS",
840        "MetricExpr": "(min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.CYCLES_NO_EXECUTE) + (cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ - (cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@ if tma_info_ipc > 1.8 else cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@)) / 2 - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB if #SMT_on else min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.CYCLES_NO_EXECUTE) + cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ - (cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@ if tma_info_ipc > 1.8 else cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@) - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB - RESOURCE_STALLS.SB - min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.STALLS_LDM_PENDING)) / tma_info_clks",
841        "MetricGroup": "PortsUtil;TopdownL3;tma_L3_group;tma_core_bound_group",
842        "MetricName": "tma_ports_utilization",
843        "MetricThreshold": "tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
844        "PublicDescription": "This metric estimates fraction of cycles the CPU performance was potentially limited due to Core computation issues (non divider-related).  Two distinct categories can be attributed into this metric: (1) heavy data-dependency among contiguous instructions would manifest in this metric - such cases are often referred to as low Instruction Level Parallelism (ILP). (2) Contention on some hardware execution unit other than Divider. For example; when there are too many multiply operations.",
845        "ScaleUnit": "100%"
846    },
847    {
848        "BriefDescription": "This metric represents fraction of cycles CPU executed no uops on any execution port (Logical Processor cycles since ICL, Physical Core cycles otherwise)",
849        "MetricExpr": "(cpu@UOPS_EXECUTED.CORE\\,inv\\,cmask\\=1@ / 2 if #SMT_on else (min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.CYCLES_NO_EXECUTE) - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0)) / tma_info_core_clks)",
850        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
851        "MetricName": "tma_ports_utilized_0",
852        "MetricThreshold": "tma_ports_utilized_0 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
853        "PublicDescription": "This metric represents fraction of cycles CPU executed no uops on any execution port (Logical Processor cycles since ICL, Physical Core cycles otherwise). Long-latency instructions like divides may contribute to this metric.",
854        "ScaleUnit": "100%"
855    },
856    {
857        "BriefDescription": "This metric represents fraction of cycles where the CPU executed total of 1 uop per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise)",
858        "MetricExpr": "((cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ - cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@) / 2 if #SMT_on else (cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ - cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@) / tma_info_core_clks)",
859        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issueL1;tma_ports_utilization_group",
860        "MetricName": "tma_ports_utilized_1",
861        "MetricThreshold": "tma_ports_utilized_1 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
862        "PublicDescription": "This metric represents fraction of cycles where the CPU executed total of 1 uop per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise). This can be due to heavy data-dependency among software instructions; or over oversubscribing a particular hardware resource. In some other cases with high 1_Port_Utilized and L1_Bound; this metric can point to L1 data-cache latency bottleneck that may not necessarily manifest with complete execution starvation (due to the short L1 latency e.g. walking a linked list) - looking at the assembly can be helpful. Related metrics: tma_l1_bound",
863        "ScaleUnit": "100%"
864    },
865    {
866        "BriefDescription": "This metric represents fraction of cycles CPU executed total of 2 uops per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise)",
867        "MetricExpr": "((cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@ - cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@) / 2 if #SMT_on else (cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@ - cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@) / tma_info_core_clks)",
868        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issue2P;tma_ports_utilization_group",
869        "MetricName": "tma_ports_utilized_2",
870        "MetricThreshold": "tma_ports_utilized_2 > 0.15 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
871        "PublicDescription": "This metric represents fraction of cycles CPU executed total of 2 uops per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise).  Loop Vectorization -most compilers feature auto-Vectorization options today- reduces pressure on the execution ports as multiple elements are calculated with same uop. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6",
872        "ScaleUnit": "100%"
873    },
874    {
875        "BriefDescription": "This metric represents fraction of cycles CPU executed total of 3 or more uops per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise).",
876        "MetricExpr": "(cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@ / 2 if #SMT_on else cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@) / tma_info_core_clks",
877        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
878        "MetricName": "tma_ports_utilized_3m",
879        "MetricThreshold": "tma_ports_utilized_3m > 0.7 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
880        "ScaleUnit": "100%"
881    },
882    {
883        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired",
884        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / tma_info_slots",
885        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
886        "MetricName": "tma_retiring",
887        "MetricThreshold": "tma_retiring > 0.7 | tma_heavy_operations > 0.1",
888        "MetricgroupNoGroup": "TopdownL1",
889        "PublicDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired. Ideally; all pipeline slots would be attributed to the Retiring category.  Retiring of 100% would indicate the maximum Pipeline_Width throughput was achieved.  Maximizing Retiring typically increases the Instructions-per-cycle (see IPC metric). Note that a high Retiring value does not necessary mean there is no room for more performance.  For example; Heavy-operations or Microcode Assists are categorized under Retiring. They often indicate suboptimal performance and can often be optimized or avoided. Sample with: UOPS_RETIRED.RETIRE_SLOTS",
890        "ScaleUnit": "100%"
891    },
892    {
893        "BriefDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary",
894        "MetricConstraint": "NO_GROUP_EVENTS",
895        "MetricExpr": "tma_info_load_miss_real_latency * LD_BLOCKS.NO_SR / tma_info_clks",
896        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
897        "MetricName": "tma_split_loads",
898        "MetricThreshold": "tma_split_loads > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
899        "PublicDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary. Sample with: MEM_UOPS_RETIRED.SPLIT_LOADS_PS",
900        "ScaleUnit": "100%"
901    },
902    {
903        "BriefDescription": "This metric represents rate of split store accesses",
904        "MetricExpr": "2 * MEM_UOPS_RETIRED.SPLIT_STORES / tma_info_core_clks",
905        "MetricGroup": "TopdownL4;tma_L4_group;tma_issueSpSt;tma_store_bound_group",
906        "MetricName": "tma_split_stores",
907        "MetricThreshold": "tma_split_stores > 0.2 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
908        "PublicDescription": "This metric represents rate of split store accesses.  Consider aligning your data to the 64-byte cache line granularity. Sample with: MEM_UOPS_RETIRED.SPLIT_STORES_PS. Related metrics: tma_port_4",
909        "ScaleUnit": "100%"
910    },
911    {
912        "BriefDescription": "This metric measures fraction of cycles where the Super Queue (SQ) was full taking into account all request-types and both hardware SMT threads (Logical Processors)",
913        "MetricExpr": "(OFFCORE_REQUESTS_BUFFER.SQ_FULL / 2 if #SMT_on else OFFCORE_REQUESTS_BUFFER.SQ_FULL) / tma_info_core_clks",
914        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_issueBW;tma_l3_bound_group",
915        "MetricName": "tma_sq_full",
916        "MetricThreshold": "tma_sq_full > 0.3 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
917        "PublicDescription": "This metric measures fraction of cycles where the Super Queue (SQ) was full taking into account all request-types and both hardware SMT threads (Logical Processors). Related metrics: tma_fb_full, tma_info_dram_bw_use, tma_mem_bandwidth",
918        "ScaleUnit": "100%"
919    },
920    {
921        "BriefDescription": "This metric estimates how often CPU was stalled  due to RFO store memory accesses; RFO store issue a read-for-ownership request before the write",
922        "MetricExpr": "RESOURCE_STALLS.SB / tma_info_clks",
923        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
924        "MetricName": "tma_store_bound",
925        "MetricThreshold": "tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
926        "PublicDescription": "This metric estimates how often CPU was stalled  due to RFO store memory accesses; RFO store issue a read-for-ownership request before the write. Even though store accesses do not typically stall out-of-order CPUs; there are few cases where stores can lead to actual stalls. This metric will be flagged should RFO stores be a bottleneck. Sample with: MEM_UOPS_RETIRED.ALL_STORES_PS",
927        "ScaleUnit": "100%"
928    },
929    {
930        "BriefDescription": "This metric roughly estimates fraction of cycles when the memory subsystem had loads blocked since they could not forward data from earlier (in program order) overlapping stores",
931        "MetricExpr": "13 * LD_BLOCKS.STORE_FORWARD / tma_info_clks",
932        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
933        "MetricName": "tma_store_fwd_blk",
934        "MetricThreshold": "tma_store_fwd_blk > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
935        "PublicDescription": "This metric roughly estimates fraction of cycles when the memory subsystem had loads blocked since they could not forward data from earlier (in program order) overlapping stores. To streamline memory operations in the pipeline; a load can avoid waiting for memory if a prior in-flight store is writing the data that the load wants to read (store forwarding process). However; in some cases the load may be blocked for a significant time pending the store forward. For example; when the prior store is writing a smaller region than the load is reading.",
936        "ScaleUnit": "100%"
937    },
938    {
939        "BriefDescription": "This metric estimates fraction of cycles the CPU spent handling L1D store misses",
940        "MetricConstraint": "NO_GROUP_EVENTS",
941        "MetricExpr": "(L2_RQSTS.RFO_HIT * 9 * (1 - MEM_UOPS_RETIRED.LOCK_LOADS / MEM_UOPS_RETIRED.ALL_STORES) + (1 - MEM_UOPS_RETIRED.LOCK_LOADS / MEM_UOPS_RETIRED.ALL_STORES) * min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_RFO)) / tma_info_clks",
942        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_issueSL;tma_store_bound_group",
943        "MetricName": "tma_store_latency",
944        "MetricThreshold": "tma_store_latency > 0.1 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
945        "PublicDescription": "This metric estimates fraction of cycles the CPU spent handling L1D store misses. Store accesses usually less impact out-of-order core performance; however; holding resources for longer time can lead into undesired implications (e.g. contention on L1D fill-buffer entries - see FB_Full). Related metrics: tma_fb_full, tma_lock_latency",
946        "ScaleUnit": "100%"
947    },
948    {
949        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Store operations",
950        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_4 / tma_info_core_clks",
951        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
952        "MetricName": "tma_store_op_utilization",
953        "MetricThreshold": "tma_store_op_utilization > 0.6",
954        "ScaleUnit": "100%"
955    },
956    {
957        "BriefDescription": "This metric serves as an approximation of legacy x87 usage",
958        "MetricExpr": "INST_RETIRED.X87 * tma_info_uoppi / UOPS_RETIRED.RETIRE_SLOTS",
959        "MetricGroup": "Compute;TopdownL4;tma_L4_group;tma_fp_arith_group",
960        "MetricName": "tma_x87_use",
961        "MetricThreshold": "tma_x87_use > 0.1",
962        "PublicDescription": "This metric serves as an approximation of legacy x87 usage. It accounts for instructions beyond X87 FP arithmetic operations; hence may be used as a thermometer to avoid X87 high usage and preferably upgrade to modern ISA. See Tip under Tuning Hint.",
963        "ScaleUnit": "100%"
964    }
965]
966