xref: /linux/tools/perf/pmu-events/arch/x86/broadwell/bdw-metrics.json (revision c83b49383b595be50647f0c764a48c78b5f3c4f8)
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        "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.",
107        "ScaleUnit": "100%"
108    },
109    {
110        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations",
111        "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",
112        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
113        "MetricName": "tma_bad_speculation",
114        "MetricThreshold": "tma_bad_speculation > 0.15",
115        "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.",
116        "ScaleUnit": "100%"
117    },
118    {
119        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction",
120        "MetricConstraint": "NO_GROUP_EVENTS",
121        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT) * tma_bad_speculation",
122        "MetricGroup": "BadSpec;BrMispredicts;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueBM",
123        "MetricName": "tma_branch_mispredicts",
124        "MetricThreshold": "tma_branch_mispredicts > 0.1 & tma_bad_speculation > 0.15",
125        "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",
126        "ScaleUnit": "100%"
127    },
128    {
129        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers",
130        "MetricExpr": "12 * (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY) / tma_info_clks",
131        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group",
132        "MetricName": "tma_branch_resteers",
133        "MetricThreshold": "tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
134        "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",
135        "ScaleUnit": "100%"
136    },
137    {
138        "BriefDescription": "This metric estimates fraction of cycles the CPU retired uops originated from CISC (complex instruction set computer) instruction",
139        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
140        "MetricExpr": "max(0, tma_microcode_sequencer - tma_assists)",
141        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
142        "MetricName": "tma_cisc",
143        "MetricThreshold": "tma_cisc > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
144        "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.",
145        "ScaleUnit": "100%"
146    },
147    {
148        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Machine Clears",
149        "MetricExpr": "MACHINE_CLEARS.COUNT * tma_branch_resteers / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY)",
150        "MetricGroup": "BadSpec;MachineClears;TopdownL4;tma_L4_group;tma_branch_resteers_group;tma_issueMC",
151        "MetricName": "tma_clears_resteers",
152        "MetricThreshold": "tma_clears_resteers > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
153        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Machine Clears. Related metrics: tma_l1_bound, tma_machine_clears, tma_microcode_sequencer, tma_ms_switches",
154        "ScaleUnit": "100%"
155    },
156    {
157        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses",
158        "MetricConstraint": "NO_GROUP_EVENTS",
159        "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",
160        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
161        "MetricName": "tma_contested_accesses",
162        "MetricThreshold": "tma_contested_accesses > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
163        "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",
164        "ScaleUnit": "100%"
165    },
166    {
167        "BriefDescription": "This metric represents fraction of slots where Core non-memory issues were of a bottleneck",
168        "MetricConstraint": "NO_GROUP_EVENTS",
169        "MetricExpr": "tma_backend_bound - tma_memory_bound",
170        "MetricGroup": "Backend;Compute;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
171        "MetricName": "tma_core_bound",
172        "MetricThreshold": "tma_core_bound > 0.1 & tma_backend_bound > 0.2",
173        "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).",
174        "ScaleUnit": "100%"
175    },
176    {
177        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses",
178        "MetricConstraint": "NO_GROUP_EVENTS",
179        "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",
180        "MetricGroup": "Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
181        "MetricName": "tma_data_sharing",
182        "MetricThreshold": "tma_data_sharing > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
183        "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",
184        "ScaleUnit": "100%"
185    },
186    {
187        "BriefDescription": "This metric represents fraction of cycles where the Divider unit was active",
188        "MetricExpr": "ARITH.FPU_DIV_ACTIVE / tma_info_core_clks",
189        "MetricGroup": "TopdownL3;tma_L3_group;tma_core_bound_group",
190        "MetricName": "tma_divider",
191        "MetricThreshold": "tma_divider > 0.2 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
192        "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",
193        "ScaleUnit": "100%"
194    },
195    {
196        "BriefDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads",
197        "MetricConstraint": "NO_GROUP_EVENTS_SMT",
198        "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_MISS / tma_info_clks",
199        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
200        "MetricName": "tma_dram_bound",
201        "MetricThreshold": "tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
202        "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",
203        "ScaleUnit": "100%"
204    },
205    {
206        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to DSB (decoded uop cache) fetch pipeline",
207        "MetricExpr": "(IDQ.ALL_DSB_CYCLES_ANY_UOPS - IDQ.ALL_DSB_CYCLES_4_UOPS) / tma_info_core_clks / 2",
208        "MetricGroup": "DSB;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
209        "MetricName": "tma_dsb",
210        "MetricThreshold": "tma_dsb > 0.15 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35)",
211        "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.",
212        "ScaleUnit": "100%"
213    },
214    {
215        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines",
216        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / tma_info_clks",
217        "MetricGroup": "DSBmiss;FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
218        "MetricName": "tma_dsb_switches",
219        "MetricThreshold": "tma_dsb_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
220        "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",
221        "ScaleUnit": "100%"
222    },
223    {
224        "BriefDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses",
225        "MetricExpr": "(8 * DTLB_LOAD_MISSES.STLB_HIT + cpu@DTLB_LOAD_MISSES.WALK_DURATION\\,cmask\\=1@ + 7 * DTLB_LOAD_MISSES.WALK_COMPLETED) / tma_info_clks",
226        "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_l1_bound_group",
227        "MetricName": "tma_dtlb_load",
228        "MetricThreshold": "tma_dtlb_load > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
229        "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",
230        "ScaleUnit": "100%"
231    },
232    {
233        "BriefDescription": "This metric roughly estimates the fraction of cycles spent handling first-level data TLB store misses",
234        "MetricExpr": "(8 * DTLB_STORE_MISSES.STLB_HIT + cpu@DTLB_STORE_MISSES.WALK_DURATION\\,cmask\\=1@ + 7 * DTLB_STORE_MISSES.WALK_COMPLETED) / tma_info_clks",
235        "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_store_bound_group",
236        "MetricName": "tma_dtlb_store",
237        "MetricThreshold": "tma_dtlb_store > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
238        "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",
239        "ScaleUnit": "100%"
240    },
241    {
242        "BriefDescription": "This metric roughly estimates how often CPU was handling synchronizations due to False Sharing",
243        "MetricExpr": "60 * OFFCORE_RESPONSE.DEMAND_RFO.L3_HIT.SNOOP_HITM / tma_info_clks",
244        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_store_bound_group",
245        "MetricName": "tma_false_sharing",
246        "MetricThreshold": "tma_false_sharing > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
247        "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",
248        "ScaleUnit": "100%"
249    },
250    {
251        "BriefDescription": "This metric does a *rough estimation* of how often L1D Fill Buffer unavailability limited additional L1D miss memory access requests to proceed",
252        "MetricConstraint": "NO_GROUP_EVENTS",
253        "MetricExpr": "tma_info_load_miss_real_latency * cpu@L1D_PEND_MISS.FB_FULL\\,cmask\\=1@ / tma_info_clks",
254        "MetricGroup": "MemoryBW;TopdownL4;tma_L4_group;tma_issueBW;tma_issueSL;tma_issueSmSt;tma_l1_bound_group",
255        "MetricName": "tma_fb_full",
256        "MetricThreshold": "tma_fb_full > 0.3",
257        "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",
258        "ScaleUnit": "100%"
259    },
260    {
261        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues",
262        "MetricExpr": "tma_frontend_bound - tma_fetch_latency",
263        "MetricGroup": "FetchBW;Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group;tma_issueFB",
264        "MetricName": "tma_fetch_bandwidth",
265        "MetricThreshold": "tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35",
266        "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",
267        "ScaleUnit": "100%"
268    },
269    {
270        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues",
271        "MetricExpr": "4 * IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE / tma_info_slots",
272        "MetricGroup": "Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group",
273        "MetricName": "tma_fetch_latency",
274        "MetricThreshold": "tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15",
275        "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",
276        "ScaleUnit": "100%"
277    },
278    {
279        "BriefDescription": "This metric represents overall arithmetic floating-point (FP) operations fraction the CPU has executed (retired)",
280        "MetricExpr": "tma_x87_use + tma_fp_scalar + tma_fp_vector",
281        "MetricGroup": "HPC;TopdownL3;tma_L3_group;tma_light_operations_group",
282        "MetricName": "tma_fp_arith",
283        "MetricThreshold": "tma_fp_arith > 0.2 & tma_light_operations > 0.6",
284        "PublicDescription": "This metric represents overall arithmetic floating-point (FP) operations fraction the CPU has executed (retired). Note this metric's value may exceed its parent due to use of \"Uops\" CountDomain and FMA double-counting.",
285        "ScaleUnit": "100%"
286    },
287    {
288        "BriefDescription": "This metric approximates arithmetic floating-point (FP) scalar uops fraction the CPU has retired",
289        "MetricExpr": "cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ / UOPS_RETIRED.RETIRE_SLOTS",
290        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
291        "MetricName": "tma_fp_scalar",
292        "MetricThreshold": "tma_fp_scalar > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
293        "PublicDescription": "This metric approximates arithmetic floating-point (FP) scalar uops fraction the CPU has retired. May overcount due to FMA double counting. Related metrics: tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
294        "ScaleUnit": "100%"
295    },
296    {
297        "BriefDescription": "This metric approximates arithmetic floating-point (FP) vector uops fraction the CPU has retired aggregated across all vector widths",
298        "MetricExpr": "cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0x3c@ / UOPS_RETIRED.RETIRE_SLOTS",
299        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
300        "MetricName": "tma_fp_vector",
301        "MetricThreshold": "tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
302        "PublicDescription": "This metric approximates arithmetic floating-point (FP) vector uops fraction the CPU has retired aggregated across all vector widths. May overcount due to FMA double counting. Related metrics: tma_fp_scalar, tma_fp_vector_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
303        "ScaleUnit": "100%"
304    },
305    {
306        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 128-bit wide vectors",
307        "MetricExpr": "(FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE) / UOPS_RETIRED.RETIRE_SLOTS",
308        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
309        "MetricName": "tma_fp_vector_128b",
310        "MetricThreshold": "tma_fp_vector_128b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
311        "PublicDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 128-bit wide vectors. May overcount due to FMA double counting. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
312        "ScaleUnit": "100%"
313    },
314    {
315        "BriefDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 256-bit wide vectors",
316        "MetricExpr": "(FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) / UOPS_RETIRED.RETIRE_SLOTS",
317        "MetricGroup": "Compute;Flops;TopdownL5;tma_L5_group;tma_fp_vector_group;tma_issue2P",
318        "MetricName": "tma_fp_vector_256b",
319        "MetricThreshold": "tma_fp_vector_256b > 0.1 & (tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6))",
320        "PublicDescription": "This metric approximates arithmetic FP vector uops fraction the CPU has retired for 256-bit wide vectors. May overcount due to FMA double counting. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_128b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
321        "ScaleUnit": "100%"
322    },
323    {
324        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend",
325        "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / tma_info_slots",
326        "MetricGroup": "PGO;TmaL1;TopdownL1;tma_L1_group",
327        "MetricName": "tma_frontend_bound",
328        "MetricThreshold": "tma_frontend_bound > 0.15",
329        "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.",
330        "ScaleUnit": "100%"
331    },
332    {
333        "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",
334        "MetricExpr": "tma_microcode_sequencer",
335        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
336        "MetricName": "tma_heavy_operations",
337        "MetricThreshold": "tma_heavy_operations > 0.1",
338        "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.",
339        "ScaleUnit": "100%"
340    },
341    {
342        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to instruction cache misses.",
343        "MetricExpr": "ICACHE.IFDATA_STALL / tma_info_clks",
344        "MetricGroup": "BigFoot;FetchLat;IcMiss;TopdownL3;tma_L3_group;tma_fetch_latency_group",
345        "MetricName": "tma_icache_misses",
346        "MetricThreshold": "tma_icache_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
347        "ScaleUnit": "100%"
348    },
349    {
350        "BriefDescription": "Measured Average Frequency for unhalted processors [GHz]",
351        "MetricExpr": "tma_info_turbo_utilization * TSC / 1e9 / duration_time",
352        "MetricGroup": "Power;Summary",
353        "MetricName": "tma_info_average_frequency"
354    },
355    {
356        "BriefDescription": "Branch instructions per taken branch.",
357        "MetricExpr": "BR_INST_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.NEAR_TAKEN",
358        "MetricGroup": "Branches;Fed;PGO",
359        "MetricName": "tma_info_bptkbranch"
360    },
361    {
362        "BriefDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative branch misprediction (retired JEClear)",
363        "MetricExpr": "(tma_branch_mispredicts + tma_fetch_latency * tma_mispredicts_resteers / (tma_branch_resteers + tma_dsb_switches + tma_icache_misses + tma_itlb_misses + tma_lcp + tma_ms_switches)) * tma_info_slots / BR_MISP_RETIRED.ALL_BRANCHES",
364        "MetricGroup": "Bad;BrMispredicts;tma_issueBM",
365        "MetricName": "tma_info_branch_misprediction_cost",
366        "PublicDescription": "Branch Misprediction Cost: Fraction of TMA slots wasted per non-speculative branch misprediction (retired JEClear). Related metrics: tma_branch_mispredicts, tma_mispredicts_resteers"
367    },
368    {
369        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
370        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
371        "MetricGroup": "Pipeline",
372        "MetricName": "tma_info_clks"
373    },
374    {
375        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
376        "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))",
377        "MetricGroup": "SMT",
378        "MetricName": "tma_info_core_clks"
379    },
380    {
381        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
382        "MetricExpr": "INST_RETIRED.ANY / tma_info_core_clks",
383        "MetricGroup": "Ret;SMT;TmaL1;tma_L1_group",
384        "MetricName": "tma_info_coreipc"
385    },
386    {
387        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
388        "MetricExpr": "1 / tma_info_ipc",
389        "MetricGroup": "Mem;Pipeline",
390        "MetricName": "tma_info_cpi"
391    },
392    {
393        "BriefDescription": "Average CPU Utilization",
394        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / TSC",
395        "MetricGroup": "HPC;Summary",
396        "MetricName": "tma_info_cpu_utilization"
397    },
398    {
399        "BriefDescription": "Average Parallel L2 cache miss data reads",
400        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD",
401        "MetricGroup": "Memory_BW;Offcore",
402        "MetricName": "tma_info_data_l2_mlp"
403    },
404    {
405        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
406        "MetricExpr": "64 * (UNC_ARB_TRK_REQUESTS.ALL + UNC_ARB_COH_TRK_REQUESTS.ALL) / 1e6 / duration_time / 1e3",
407        "MetricGroup": "HPC;Mem;MemoryBW;SoC;tma_issueBW",
408        "MetricName": "tma_info_dram_bw_use",
409        "PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_mem_bandwidth, tma_sq_full"
410    },
411    {
412        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
413        "MetricExpr": "IDQ.DSB_UOPS / (IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
414        "MetricGroup": "DSB;Fed;FetchBW;tma_issueFB",
415        "MetricName": "tma_info_dsb_coverage",
416        "MetricThreshold": "tma_info_dsb_coverage < 0.7 & tma_info_ipc / 4 > 0.35",
417        "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"
418    },
419    {
420        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-thread",
421        "MetricExpr": "UOPS_EXECUTED.THREAD / cpu@UOPS_EXECUTED.THREAD\\,cmask\\=1@",
422        "MetricGroup": "Cor;Pipeline;PortsUtil;SMT",
423        "MetricName": "tma_info_execute"
424    },
425    {
426        "BriefDescription": "The ratio of Executed- by Issued-Uops",
427        "MetricExpr": "UOPS_EXECUTED.THREAD / UOPS_ISSUED.ANY",
428        "MetricGroup": "Cor;Pipeline",
429        "MetricName": "tma_info_execute_per_issue",
430        "PublicDescription": "The ratio of Executed- by Issued-Uops. Ratio > 1 suggests high rate of uop micro-fusions. Ratio < 1 suggest high rate of \"execute\" at rename stage."
431    },
432    {
433        "BriefDescription": "Floating Point Operations Per Cycle",
434        "MetricExpr": "(FP_ARITH_INST_RETIRED.SCALAR_SINGLE + FP_ARITH_INST_RETIRED.SCALAR_DOUBLE + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * (FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE) + 8 * FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) / tma_info_core_clks",
435        "MetricGroup": "Flops;Ret",
436        "MetricName": "tma_info_flopc"
437    },
438    {
439        "BriefDescription": "Actual per-core usage of the Floating Point non-X87 execution units (regardless of precision or vector-width)",
440        "MetricExpr": "(cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ + cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0x3c@) / (2 * tma_info_core_clks)",
441        "MetricGroup": "Cor;Flops;HPC",
442        "MetricName": "tma_info_fp_arith_utilization",
443        "PublicDescription": "Actual per-core usage of the Floating Point non-X87 execution units (regardless of precision or vector-width). Values > 1 are possible due to ([BDW+] Fused-Multiply Add (FMA) counting - common; [ADL+] use all of ADD/MUL/FMA in Scalar or 128/256-bit vectors - less common)."
444    },
445    {
446        "BriefDescription": "Giga Floating Point Operations Per Second",
447        "MetricExpr": "(FP_ARITH_INST_RETIRED.SCALAR_SINGLE + FP_ARITH_INST_RETIRED.SCALAR_DOUBLE + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * (FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE) + 8 * FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE) / 1e9 / duration_time",
448        "MetricGroup": "Cor;Flops;HPC",
449        "MetricName": "tma_info_gflops",
450        "PublicDescription": "Giga Floating Point Operations Per Second. Aggregate across all supported options of: FP precisions, scalar and vector instructions, vector-width and AMX engine."
451    },
452    {
453        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-core",
454        "MetricExpr": "UOPS_EXECUTED.THREAD / (cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ / 2 if #SMT_on else UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC)",
455        "MetricGroup": "Backend;Cor;Pipeline;PortsUtil",
456        "MetricName": "tma_info_ilp"
457    },
458    {
459        "BriefDescription": "Total number of retired Instructions",
460        "MetricExpr": "INST_RETIRED.ANY",
461        "MetricGroup": "Summary;TmaL1;tma_L1_group",
462        "MetricName": "tma_info_instructions",
463        "PublicDescription": "Total number of retired Instructions. Sample with: INST_RETIRED.PREC_DIST"
464    },
465    {
466        "BriefDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate)",
467        "MetricExpr": "INST_RETIRED.ANY / (cpu@FP_ARITH_INST_RETIRED.SCALAR_SINGLE\\,umask\\=0x03@ + cpu@FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE\\,umask\\=0x3c@)",
468        "MetricGroup": "Flops;InsType",
469        "MetricName": "tma_info_iparith",
470        "MetricThreshold": "tma_info_iparith < 10",
471        "PublicDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate). May undercount due to FMA double counting. Approximated prior to BDW."
472    },
473    {
474        "BriefDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate)",
475        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE)",
476        "MetricGroup": "Flops;FpVector;InsType",
477        "MetricName": "tma_info_iparith_avx128",
478        "MetricThreshold": "tma_info_iparith_avx128 < 10",
479        "PublicDescription": "Instructions per FP Arithmetic AVX/SSE 128-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
480    },
481    {
482        "BriefDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate)",
483        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE + FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE)",
484        "MetricGroup": "Flops;FpVector;InsType",
485        "MetricName": "tma_info_iparith_avx256",
486        "MetricThreshold": "tma_info_iparith_avx256 < 10",
487        "PublicDescription": "Instructions per FP Arithmetic AVX* 256-bit instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
488    },
489    {
490        "BriefDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate)",
491        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_DOUBLE",
492        "MetricGroup": "Flops;FpScalar;InsType",
493        "MetricName": "tma_info_iparith_scalar_dp",
494        "MetricThreshold": "tma_info_iparith_scalar_dp < 10",
495        "PublicDescription": "Instructions per FP Arithmetic Scalar Double-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
496    },
497    {
498        "BriefDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate)",
499        "MetricExpr": "INST_RETIRED.ANY / FP_ARITH_INST_RETIRED.SCALAR_SINGLE",
500        "MetricGroup": "Flops;FpScalar;InsType",
501        "MetricName": "tma_info_iparith_scalar_sp",
502        "MetricThreshold": "tma_info_iparith_scalar_sp < 10",
503        "PublicDescription": "Instructions per FP Arithmetic Scalar Single-Precision instruction (lower number means higher occurrence rate). May undercount due to FMA double counting."
504    },
505    {
506        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
507        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
508        "MetricGroup": "Branches;Fed;InsType",
509        "MetricName": "tma_info_ipbranch",
510        "MetricThreshold": "tma_info_ipbranch < 8"
511    },
512    {
513        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
514        "MetricExpr": "INST_RETIRED.ANY / tma_info_clks",
515        "MetricGroup": "Ret;Summary",
516        "MetricName": "tma_info_ipc"
517    },
518    {
519        "BriefDescription": "Instructions per (near) call (lower number means higher occurrence rate)",
520        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
521        "MetricGroup": "Branches;Fed;PGO",
522        "MetricName": "tma_info_ipcall",
523        "MetricThreshold": "tma_info_ipcall < 200"
524    },
525    {
526        "BriefDescription": "Instructions per Far Branch ( Far Branches apply upon transition from application to operating system, handling interrupts, exceptions) [lower number means higher occurrence rate]",
527        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
528        "MetricGroup": "Branches;OS",
529        "MetricName": "tma_info_ipfarbranch",
530        "MetricThreshold": "tma_info_ipfarbranch < 1e6"
531    },
532    {
533        "BriefDescription": "Instructions per Floating Point (FP) Operation (lower number means higher occurrence rate)",
534        "MetricExpr": "INST_RETIRED.ANY / (FP_ARITH_INST_RETIRED.SCALAR_SINGLE + FP_ARITH_INST_RETIRED.SCALAR_DOUBLE + 2 * FP_ARITH_INST_RETIRED.128B_PACKED_DOUBLE + 4 * (FP_ARITH_INST_RETIRED.128B_PACKED_SINGLE + FP_ARITH_INST_RETIRED.256B_PACKED_DOUBLE) + 8 * FP_ARITH_INST_RETIRED.256B_PACKED_SINGLE)",
535        "MetricGroup": "Flops;InsType",
536        "MetricName": "tma_info_ipflop",
537        "MetricThreshold": "tma_info_ipflop < 10"
538    },
539    {
540        "BriefDescription": "Instructions per Load (lower number means higher occurrence rate)",
541        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_LOADS",
542        "MetricGroup": "InsType",
543        "MetricName": "tma_info_ipload",
544        "MetricThreshold": "tma_info_ipload < 3"
545    },
546    {
547        "BriefDescription": "Instructions per retired mispredicts for indirect CALL or JMP branches (lower number means higher occurrence rate).",
548        "MetricExpr": "tma_info_instructions / (UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * cpu@BR_MISP_EXEC.ALL_BRANCHES\\,umask\\=0xE4@)",
549        "MetricGroup": "Bad;BrMispredicts",
550        "MetricName": "tma_info_ipmisp_indirect",
551        "MetricThreshold": "tma_info_ipmisp_indirect < 1e3"
552    },
553    {
554        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear) (lower number means higher occurrence rate)",
555        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
556        "MetricGroup": "Bad;BadSpec;BrMispredicts",
557        "MetricName": "tma_info_ipmispredict",
558        "MetricThreshold": "tma_info_ipmispredict < 200"
559    },
560    {
561        "BriefDescription": "Instructions per Store (lower number means higher occurrence rate)",
562        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_STORES",
563        "MetricGroup": "InsType",
564        "MetricName": "tma_info_ipstore",
565        "MetricThreshold": "tma_info_ipstore < 8"
566    },
567    {
568        "BriefDescription": "Instruction per taken branch",
569        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
570        "MetricGroup": "Branches;Fed;FetchBW;Frontend;PGO;tma_issueFB",
571        "MetricName": "tma_info_iptb",
572        "MetricThreshold": "tma_info_iptb < 9",
573        "PublicDescription": "Instruction per taken branch. Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_dsb_coverage, tma_lcp"
574    },
575    {
576        "BriefDescription": "Instructions per speculative Unknown Branch Misprediction (BAClear) (lower number means higher occurrence rate)",
577        "MetricExpr": "tma_info_instructions / BACLEARS.ANY",
578        "MetricGroup": "Fed",
579        "MetricName": "tma_info_ipunknown_branch"
580    },
581    {
582        "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode",
583        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k",
584        "MetricGroup": "OS",
585        "MetricName": "tma_info_kernel_cpi"
586    },
587    {
588        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
589        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD",
590        "MetricGroup": "OS",
591        "MetricName": "tma_info_kernel_utilization",
592        "MetricThreshold": "tma_info_kernel_utilization > 0.05"
593    },
594    {
595        "BriefDescription": "Average per-core data fill bandwidth to the L1 data cache [GB / sec]",
596        "MetricExpr": "64 * L1D.REPLACEMENT / 1e9 / duration_time",
597        "MetricGroup": "Mem;MemoryBW",
598        "MetricName": "tma_info_l1d_cache_fill_bw"
599    },
600    {
601        "BriefDescription": "Average per-thread data fill bandwidth to the L1 data cache [GB / sec]",
602        "MetricExpr": "tma_info_l1d_cache_fill_bw",
603        "MetricGroup": "Mem;MemoryBW",
604        "MetricName": "tma_info_l1d_cache_fill_bw_1t"
605    },
606    {
607        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
608        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L1_MISS / INST_RETIRED.ANY",
609        "MetricGroup": "CacheMisses;Mem",
610        "MetricName": "tma_info_l1mpki"
611    },
612    {
613        "BriefDescription": "Average per-core data fill bandwidth to the L2 cache [GB / sec]",
614        "MetricExpr": "64 * L2_LINES_IN.ALL / 1e9 / duration_time",
615        "MetricGroup": "Mem;MemoryBW",
616        "MetricName": "tma_info_l2_cache_fill_bw"
617    },
618    {
619        "BriefDescription": "Average per-thread data fill bandwidth to the L2 cache [GB / sec]",
620        "MetricExpr": "tma_info_l2_cache_fill_bw",
621        "MetricGroup": "Mem;MemoryBW",
622        "MetricName": "tma_info_l2_cache_fill_bw_1t"
623    },
624    {
625        "BriefDescription": "L2 cache hits per kilo instruction for all request types (including speculative)",
626        "MetricExpr": "1e3 * (L2_RQSTS.REFERENCES - L2_RQSTS.MISS) / INST_RETIRED.ANY",
627        "MetricGroup": "CacheMisses;Mem",
628        "MetricName": "tma_info_l2hpki_all"
629    },
630    {
631        "BriefDescription": "L2 cache hits per kilo instruction for all demand loads  (including speculative)",
632        "MetricExpr": "1e3 * L2_RQSTS.DEMAND_DATA_RD_HIT / INST_RETIRED.ANY",
633        "MetricGroup": "CacheMisses;Mem",
634        "MetricName": "tma_info_l2hpki_load"
635    },
636    {
637        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
638        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L2_MISS / INST_RETIRED.ANY",
639        "MetricGroup": "Backend;CacheMisses;Mem",
640        "MetricName": "tma_info_l2mpki"
641    },
642    {
643        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all request types (including speculative)",
644        "MetricExpr": "1e3 * L2_RQSTS.MISS / INST_RETIRED.ANY",
645        "MetricGroup": "CacheMisses;Mem;Offcore",
646        "MetricName": "tma_info_l2mpki_all"
647    },
648    {
649        "BriefDescription": "L2 cache ([RKL+] true) misses per kilo instruction for all demand loads  (including speculative)",
650        "MetricExpr": "1e3 * L2_RQSTS.DEMAND_DATA_RD_MISS / INST_RETIRED.ANY",
651        "MetricGroup": "CacheMisses;Mem",
652        "MetricName": "tma_info_l2mpki_load"
653    },
654    {
655        "BriefDescription": "Average per-thread data access bandwidth to the L3 cache [GB / sec]",
656        "MetricExpr": "0",
657        "MetricGroup": "Mem;MemoryBW;Offcore",
658        "MetricName": "tma_info_l3_cache_access_bw_1t"
659    },
660    {
661        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
662        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1e9 / duration_time",
663        "MetricGroup": "Mem;MemoryBW",
664        "MetricName": "tma_info_l3_cache_fill_bw"
665    },
666    {
667        "BriefDescription": "Average per-thread data fill bandwidth to the L3 cache [GB / sec]",
668        "MetricExpr": "tma_info_l3_cache_fill_bw",
669        "MetricGroup": "Mem;MemoryBW",
670        "MetricName": "tma_info_l3_cache_fill_bw_1t"
671    },
672    {
673        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
674        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L3_MISS / INST_RETIRED.ANY",
675        "MetricGroup": "CacheMisses;Mem",
676        "MetricName": "tma_info_l3mpki"
677    },
678    {
679        "BriefDescription": "Average Latency for L2 cache miss demand Loads",
680        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS.DEMAND_DATA_RD",
681        "MetricGroup": "Memory_Lat;Offcore",
682        "MetricName": "tma_info_load_l2_miss_latency"
683    },
684    {
685        "BriefDescription": "Average Parallel L2 cache miss demand Loads",
686        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_DATA_RD",
687        "MetricGroup": "Memory_BW;Offcore",
688        "MetricName": "tma_info_load_l2_mlp"
689    },
690    {
691        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand load operations (in core cycles)",
692        "MetricConstraint": "NO_GROUP_EVENTS",
693        "MetricExpr": "L1D_PEND_MISS.PENDING / (MEM_LOAD_UOPS_RETIRED.L1_MISS + MEM_LOAD_UOPS_RETIRED.HIT_LFB)",
694        "MetricGroup": "Mem;MemoryBound;MemoryLat",
695        "MetricName": "tma_info_load_miss_real_latency"
696    },
697    {
698        "BriefDescription": "Average number of parallel requests to external memory",
699        "MetricExpr": "UNC_ARB_TRK_OCCUPANCY.ALL / UNC_ARB_TRK_OCCUPANCY.CYCLES_WITH_ANY_REQUEST",
700        "MetricGroup": "Mem;SoC",
701        "MetricName": "tma_info_mem_parallel_requests",
702        "PublicDescription": "Average number of parallel requests to external memory. Accounts for all requests"
703    },
704    {
705        "BriefDescription": "Average latency of all requests to external memory (in Uncore cycles)",
706        "MetricExpr": "UNC_ARB_TRK_OCCUPANCY.ALL / UNC_ARB_TRK_REQUESTS.ALL",
707        "MetricGroup": "Mem;SoC",
708        "MetricName": "tma_info_mem_request_latency"
709    },
710    {
711        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss",
712        "MetricConstraint": "NO_GROUP_EVENTS",
713        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
714        "MetricGroup": "Mem;MemoryBW;MemoryBound",
715        "MetricName": "tma_info_mlp",
716        "PublicDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-Logical Processor)"
717    },
718    {
719        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
720        "MetricExpr": "(cpu@ITLB_MISSES.WALK_DURATION\\,cmask\\=1@ + cpu@DTLB_LOAD_MISSES.WALK_DURATION\\,cmask\\=1@ + cpu@DTLB_STORE_MISSES.WALK_DURATION\\,cmask\\=1@ + 7 * (DTLB_STORE_MISSES.WALK_COMPLETED + DTLB_LOAD_MISSES.WALK_COMPLETED + ITLB_MISSES.WALK_COMPLETED)) / tma_info_core_clks",
721        "MetricGroup": "Mem;MemoryTLB",
722        "MetricName": "tma_info_page_walks_utilization",
723        "MetricThreshold": "tma_info_page_walks_utilization > 0.5"
724    },
725    {
726        "BriefDescription": "Average number of Uops retired in cycles where at least one uop has retired.",
727        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / cpu@UOPS_RETIRED.RETIRE_SLOTS\\,cmask\\=1@",
728        "MetricGroup": "Pipeline;Ret",
729        "MetricName": "tma_info_retire"
730    },
731    {
732        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
733        "MetricExpr": "4 * tma_info_core_clks",
734        "MetricGroup": "TmaL1;tma_L1_group",
735        "MetricName": "tma_info_slots"
736    },
737    {
738        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
739        "MetricExpr": "(1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / (CPU_CLK_UNHALTED.REF_XCLK_ANY / 2) if #SMT_on else 0)",
740        "MetricGroup": "SMT",
741        "MetricName": "tma_info_smt_2t_utilization"
742    },
743    {
744        "BriefDescription": "Socket actual clocks when any core is active on that socket",
745        "MetricExpr": "UNC_CLOCK.SOCKET",
746        "MetricGroup": "SoC",
747        "MetricName": "tma_info_socket_clks"
748    },
749    {
750        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
751        "MetricExpr": "tma_info_clks / CPU_CLK_UNHALTED.REF_TSC",
752        "MetricGroup": "Power",
753        "MetricName": "tma_info_turbo_utilization"
754    },
755    {
756        "BriefDescription": "Uops Per Instruction",
757        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
758        "MetricGroup": "Pipeline;Ret;Retire",
759        "MetricName": "tma_info_uoppi",
760        "MetricThreshold": "tma_info_uoppi > 1.05"
761    },
762    {
763        "BriefDescription": "Instruction per taken branch",
764        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / BR_INST_RETIRED.NEAR_TAKEN",
765        "MetricGroup": "Branches;Fed;FetchBW",
766        "MetricName": "tma_info_uptb",
767        "MetricThreshold": "tma_info_uptb < 6"
768    },
769    {
770        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses",
771        "MetricExpr": "(14 * ITLB_MISSES.STLB_HIT + cpu@ITLB_MISSES.WALK_DURATION\\,cmask\\=1@ + 7 * ITLB_MISSES.WALK_COMPLETED) / tma_info_clks",
772        "MetricGroup": "BigFoot;FetchLat;MemoryTLB;TopdownL3;tma_L3_group;tma_fetch_latency_group",
773        "MetricName": "tma_itlb_misses",
774        "MetricThreshold": "tma_itlb_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
775        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses. Sample with: ITLB_MISSES.WALK_COMPLETED",
776        "ScaleUnit": "100%"
777    },
778    {
779        "BriefDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 data cache",
780        "MetricExpr": "max((CYCLE_ACTIVITY.STALLS_MEM_ANY - CYCLE_ACTIVITY.STALLS_L1D_MISS) / tma_info_clks, 0)",
781        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_issueL1;tma_issueMC;tma_memory_bound_group",
782        "MetricName": "tma_l1_bound",
783        "MetricThreshold": "tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
784        "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",
785        "ScaleUnit": "100%"
786    },
787    {
788        "BriefDescription": "This metric estimates how often the CPU was stalled due to L2 cache accesses by loads",
789        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_L1D_MISS - CYCLE_ACTIVITY.STALLS_L2_MISS) / tma_info_clks",
790        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
791        "MetricName": "tma_l2_bound",
792        "MetricThreshold": "tma_l2_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
793        "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",
794        "ScaleUnit": "100%"
795    },
796    {
797        "BriefDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core",
798        "MetricConstraint": "NO_GROUP_EVENTS_SMT",
799        "MetricExpr": "MEM_LOAD_UOPS_RETIRED.L3_HIT / (MEM_LOAD_UOPS_RETIRED.L3_HIT + 7 * MEM_LOAD_UOPS_RETIRED.L3_MISS) * CYCLE_ACTIVITY.STALLS_L2_MISS / tma_info_clks",
800        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
801        "MetricName": "tma_l3_bound",
802        "MetricThreshold": "tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
803        "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",
804        "ScaleUnit": "100%"
805    },
806    {
807        "BriefDescription": "This metric represents fraction of cycles with demand load accesses that hit the L3 cache under unloaded scenarios (possibly L3 latency limited)",
808        "MetricConstraint": "NO_GROUP_EVENTS",
809        "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",
810        "MetricGroup": "MemoryLat;TopdownL4;tma_L4_group;tma_issueLat;tma_l3_bound_group",
811        "MetricName": "tma_l3_hit_latency",
812        "MetricThreshold": "tma_l3_hit_latency > 0.1 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
813        "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",
814        "ScaleUnit": "100%"
815    },
816    {
817        "BriefDescription": "This metric represents fraction of cycles CPU was stalled due to Length Changing Prefixes (LCPs)",
818        "MetricExpr": "ILD_STALL.LCP / tma_info_clks",
819        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
820        "MetricName": "tma_lcp",
821        "MetricThreshold": "tma_lcp > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
822        "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",
823        "ScaleUnit": "100%"
824    },
825    {
826        "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)",
827        "MetricExpr": "tma_retiring - tma_heavy_operations",
828        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
829        "MetricName": "tma_light_operations",
830        "MetricThreshold": "tma_light_operations > 0.6",
831        "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",
832        "ScaleUnit": "100%"
833    },
834    {
835        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations",
836        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
837        "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)",
838        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
839        "MetricName": "tma_load_op_utilization",
840        "MetricThreshold": "tma_load_op_utilization > 0.6",
841        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations. Sample with: UOPS_DISPATCHED.PORT_2_3",
842        "ScaleUnit": "100%"
843    },
844    {
845        "BriefDescription": "This metric represents fraction of cycles the CPU spent handling cache misses due to lock operations",
846        "MetricConstraint": "NO_GROUP_EVENTS",
847        "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",
848        "MetricGroup": "Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_l1_bound_group",
849        "MetricName": "tma_lock_latency",
850        "MetricThreshold": "tma_lock_latency > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
851        "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",
852        "ScaleUnit": "100%"
853    },
854    {
855        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Machine Clears",
856        "MetricConstraint": "NO_GROUP_EVENTS",
857        "MetricExpr": "tma_bad_speculation - tma_branch_mispredicts",
858        "MetricGroup": "BadSpec;MachineClears;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueMC;tma_issueSyncxn",
859        "MetricName": "tma_machine_clears",
860        "MetricThreshold": "tma_machine_clears > 0.1 & tma_bad_speculation > 0.15",
861        "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",
862        "ScaleUnit": "100%"
863    },
864    {
865        "BriefDescription": "This metric estimates fraction of cycles where the core's performance was likely hurt due to approaching bandwidth limits of external memory (DRAM)",
866        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, cpu@OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD\\,cmask\\=4@) / tma_info_clks",
867        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueBW",
868        "MetricName": "tma_mem_bandwidth",
869        "MetricThreshold": "tma_mem_bandwidth > 0.2 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
870        "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",
871        "ScaleUnit": "100%"
872    },
873    {
874        "BriefDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory (DRAM)",
875        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD) / tma_info_clks - tma_mem_bandwidth",
876        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueLat",
877        "MetricName": "tma_mem_latency",
878        "MetricThreshold": "tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
879        "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",
880        "ScaleUnit": "100%"
881    },
882    {
883        "BriefDescription": "This metric represents fraction of slots the Memory subsystem within the Backend was a bottleneck",
884        "MetricConstraint": "NO_GROUP_EVENTS",
885        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_MEM_ANY + RESOURCE_STALLS.SB) / (CYCLE_ACTIVITY.STALLS_TOTAL + UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC - (UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC if tma_info_ipc > 1.8 else UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC) - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB) * tma_backend_bound",
886        "MetricGroup": "Backend;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
887        "MetricName": "tma_memory_bound",
888        "MetricThreshold": "tma_memory_bound > 0.2 & tma_backend_bound > 0.2",
889        "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).",
890        "ScaleUnit": "100%"
891    },
892    {
893        "BriefDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit",
894        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * IDQ.MS_UOPS / tma_info_slots",
895        "MetricGroup": "MicroSeq;TopdownL3;tma_L3_group;tma_heavy_operations_group;tma_issueMC;tma_issueMS",
896        "MetricName": "tma_microcode_sequencer",
897        "MetricThreshold": "tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1",
898        "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",
899        "ScaleUnit": "100%"
900    },
901    {
902        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Branch Misprediction at execution stage",
903        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES * tma_branch_resteers / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY)",
904        "MetricGroup": "BadSpec;BrMispredicts;TopdownL4;tma_L4_group;tma_branch_resteers_group;tma_issueBM",
905        "MetricName": "tma_mispredicts_resteers",
906        "MetricThreshold": "tma_mispredicts_resteers > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
907        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers as a result of Branch Misprediction at execution stage. Related metrics: tma_branch_mispredicts, tma_info_branch_misprediction_cost",
908        "ScaleUnit": "100%"
909    },
910    {
911        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to the MITE pipeline (the legacy decode pipeline)",
912        "MetricExpr": "(IDQ.ALL_MITE_CYCLES_ANY_UOPS - IDQ.ALL_MITE_CYCLES_4_UOPS) / tma_info_core_clks / 2",
913        "MetricGroup": "DSBmiss;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
914        "MetricName": "tma_mite",
915        "MetricThreshold": "tma_mite > 0.1 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35)",
916        "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.",
917        "ScaleUnit": "100%"
918    },
919    {
920        "BriefDescription": "This metric estimates the fraction of cycles when the CPU was stalled due to switches of uop delivery to the Microcode Sequencer (MS)",
921        "MetricExpr": "2 * IDQ.MS_SWITCHES / tma_info_clks",
922        "MetricGroup": "FetchLat;MicroSeq;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueMC;tma_issueMS;tma_issueMV;tma_issueSO",
923        "MetricName": "tma_ms_switches",
924        "MetricThreshold": "tma_ms_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
925        "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",
926        "ScaleUnit": "100%"
927    },
928    {
929        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 0 ([SNB+] ALU; [HSW+] ALU and 2nd branch)",
930        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_0 / tma_info_core_clks",
931        "MetricGroup": "Compute;TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
932        "MetricName": "tma_port_0",
933        "MetricThreshold": "tma_port_0 > 0.6",
934        "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_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
935        "ScaleUnit": "100%"
936    },
937    {
938        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU)",
939        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_1 / tma_info_core_clks",
940        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
941        "MetricName": "tma_port_1",
942        "MetricThreshold": "tma_port_1 > 0.6",
943        "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_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_5, tma_port_6, tma_ports_utilized_2",
944        "ScaleUnit": "100%"
945    },
946    {
947        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 2 ([SNB+]Loads and Store-address; [ICL+] Loads)",
948        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_2 / tma_info_core_clks",
949        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
950        "MetricName": "tma_port_2",
951        "MetricThreshold": "tma_port_2 > 0.6",
952        "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",
953        "ScaleUnit": "100%"
954    },
955    {
956        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 3 ([SNB+]Loads and Store-address; [ICL+] Loads)",
957        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_3 / tma_info_core_clks",
958        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
959        "MetricName": "tma_port_3",
960        "MetricThreshold": "tma_port_3 > 0.6",
961        "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",
962        "ScaleUnit": "100%"
963    },
964    {
965        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 4 (Store-data)",
966        "MetricExpr": "tma_store_op_utilization",
967        "MetricGroup": "TopdownL6;tma_L6_group;tma_issueSpSt;tma_store_op_utilization_group",
968        "MetricName": "tma_port_4",
969        "MetricThreshold": "tma_port_4 > 0.6",
970        "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",
971        "ScaleUnit": "100%"
972    },
973    {
974        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 5 ([SNB+] Branches and ALU; [HSW+] ALU)",
975        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_5 / tma_info_core_clks",
976        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
977        "MetricName": "tma_port_5",
978        "MetricThreshold": "tma_port_5 > 0.6",
979        "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_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_6, tma_ports_utilized_2",
980        "ScaleUnit": "100%"
981    },
982    {
983        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 6 ([HSW+]Primary Branch and simple ALU)",
984        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_6 / tma_info_core_clks",
985        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
986        "MetricName": "tma_port_6",
987        "MetricThreshold": "tma_port_6 > 0.6",
988        "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_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_ports_utilized_2",
989        "ScaleUnit": "100%"
990    },
991    {
992        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 7 ([HSW+]simple Store-address)",
993        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_7 / tma_info_core_clks",
994        "MetricGroup": "TopdownL6;tma_L6_group;tma_store_op_utilization_group",
995        "MetricName": "tma_port_7",
996        "MetricThreshold": "tma_port_7 > 0.6",
997        "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",
998        "ScaleUnit": "100%"
999    },
1000    {
1001        "BriefDescription": "This metric estimates fraction of cycles the CPU performance was potentially limited due to Core computation issues (non divider-related)",
1002        "MetricConstraint": "NO_GROUP_EVENTS",
1003        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_TOTAL + UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC - (UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC if tma_info_ipc > 1.8 else UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC) - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB - RESOURCE_STALLS.SB - CYCLE_ACTIVITY.STALLS_MEM_ANY) / tma_info_clks",
1004        "MetricGroup": "PortsUtil;TopdownL3;tma_L3_group;tma_core_bound_group",
1005        "MetricName": "tma_ports_utilization",
1006        "MetricThreshold": "tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
1007        "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.",
1008        "ScaleUnit": "100%"
1009    },
1010    {
1011        "BriefDescription": "This metric represents fraction of cycles CPU executed no uops on any execution port (Logical Processor cycles since ICL, Physical Core cycles otherwise)",
1012        "MetricExpr": "(cpu@UOPS_EXECUTED.CORE\\,inv\\,cmask\\=1@ / 2 if #SMT_on else (CYCLE_ACTIVITY.STALLS_TOTAL - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0)) / tma_info_core_clks)",
1013        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
1014        "MetricName": "tma_ports_utilized_0",
1015        "MetricThreshold": "tma_ports_utilized_0 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1016        "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.",
1017        "ScaleUnit": "100%"
1018    },
1019    {
1020        "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)",
1021        "MetricExpr": "((cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ - cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@) / 2 if #SMT_on else (UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC - UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC) / tma_info_core_clks)",
1022        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issueL1;tma_ports_utilization_group",
1023        "MetricName": "tma_ports_utilized_1",
1024        "MetricThreshold": "tma_ports_utilized_1 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1025        "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",
1026        "ScaleUnit": "100%"
1027    },
1028    {
1029        "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)",
1030        "MetricExpr": "((cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@ - cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@) / 2 if #SMT_on else (UOPS_EXECUTED.CYCLES_GE_2_UOPS_EXEC - UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC) / tma_info_core_clks)",
1031        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issue2P;tma_ports_utilization_group",
1032        "MetricName": "tma_ports_utilized_2",
1033        "MetricThreshold": "tma_ports_utilized_2 > 0.15 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1034        "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_128b, tma_fp_vector_256b, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6",
1035        "ScaleUnit": "100%"
1036    },
1037    {
1038        "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).",
1039        "MetricExpr": "(cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@ / 2 if #SMT_on else UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC) / tma_info_core_clks",
1040        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
1041        "MetricName": "tma_ports_utilized_3m",
1042        "MetricThreshold": "tma_ports_utilized_3m > 0.7 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
1043        "ScaleUnit": "100%"
1044    },
1045    {
1046        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired",
1047        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / tma_info_slots",
1048        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
1049        "MetricName": "tma_retiring",
1050        "MetricThreshold": "tma_retiring > 0.7 | tma_heavy_operations > 0.1",
1051        "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",
1052        "ScaleUnit": "100%"
1053    },
1054    {
1055        "BriefDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary",
1056        "MetricConstraint": "NO_GROUP_EVENTS",
1057        "MetricExpr": "tma_info_load_miss_real_latency * LD_BLOCKS.NO_SR / tma_info_clks",
1058        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
1059        "MetricName": "tma_split_loads",
1060        "MetricThreshold": "tma_split_loads > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1061        "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",
1062        "ScaleUnit": "100%"
1063    },
1064    {
1065        "BriefDescription": "This metric represents rate of split store accesses",
1066        "MetricExpr": "2 * MEM_UOPS_RETIRED.SPLIT_STORES / tma_info_core_clks",
1067        "MetricGroup": "TopdownL4;tma_L4_group;tma_issueSpSt;tma_store_bound_group",
1068        "MetricName": "tma_split_stores",
1069        "MetricThreshold": "tma_split_stores > 0.2 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1070        "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",
1071        "ScaleUnit": "100%"
1072    },
1073    {
1074        "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)",
1075        "MetricExpr": "(OFFCORE_REQUESTS_BUFFER.SQ_FULL / 2 if #SMT_on else OFFCORE_REQUESTS_BUFFER.SQ_FULL) / tma_info_core_clks",
1076        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_issueBW;tma_l3_bound_group",
1077        "MetricName": "tma_sq_full",
1078        "MetricThreshold": "tma_sq_full > 0.3 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1079        "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",
1080        "ScaleUnit": "100%"
1081    },
1082    {
1083        "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",
1084        "MetricExpr": "RESOURCE_STALLS.SB / tma_info_clks",
1085        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
1086        "MetricName": "tma_store_bound",
1087        "MetricThreshold": "tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
1088        "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",
1089        "ScaleUnit": "100%"
1090    },
1091    {
1092        "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",
1093        "MetricExpr": "13 * LD_BLOCKS.STORE_FORWARD / tma_info_clks",
1094        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
1095        "MetricName": "tma_store_fwd_blk",
1096        "MetricThreshold": "tma_store_fwd_blk > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1097        "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.",
1098        "ScaleUnit": "100%"
1099    },
1100    {
1101        "BriefDescription": "This metric estimates fraction of cycles the CPU spent handling L1D store misses",
1102        "MetricConstraint": "NO_GROUP_EVENTS",
1103        "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",
1104        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_issueSL;tma_store_bound_group",
1105        "MetricName": "tma_store_latency",
1106        "MetricThreshold": "tma_store_latency > 0.1 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
1107        "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",
1108        "ScaleUnit": "100%"
1109    },
1110    {
1111        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Store operations",
1112        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_4 / tma_info_core_clks",
1113        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
1114        "MetricName": "tma_store_op_utilization",
1115        "MetricThreshold": "tma_store_op_utilization > 0.6",
1116        "ScaleUnit": "100%"
1117    },
1118    {
1119        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to new branch address clears",
1120        "MetricExpr": "tma_branch_resteers - tma_mispredicts_resteers - tma_clears_resteers",
1121        "MetricGroup": "BigFoot;FetchLat;TopdownL4;tma_L4_group;tma_branch_resteers_group",
1122        "MetricName": "tma_unknown_branches",
1123        "MetricThreshold": "tma_unknown_branches > 0.05 & (tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15))",
1124        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to new branch address clears. These are fetched branches the Branch Prediction Unit was unable to recognize (e.g. first time the branch is fetched or hitting BTB capacity limit). Sample with: BACLEARS.ANY",
1125        "ScaleUnit": "100%"
1126    },
1127    {
1128        "BriefDescription": "This metric serves as an approximation of legacy x87 usage",
1129        "MetricExpr": "INST_RETIRED.X87 * tma_info_uoppi / UOPS_RETIRED.RETIRE_SLOTS",
1130        "MetricGroup": "Compute;TopdownL4;tma_L4_group;tma_fp_arith_group",
1131        "MetricName": "tma_x87_use",
1132        "MetricThreshold": "tma_x87_use > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
1133        "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.",
1134        "ScaleUnit": "100%"
1135    }
1136]
1137