18853d2deSAndi Kleen[
28853d2deSAndi Kleen    {
3115ae94cSIan Rogers        "BriefDescription": "C2 residency percent per package",
4115ae94cSIan Rogers        "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC",
58853d2deSAndi Kleen        "MetricGroup": "Power",
6115ae94cSIan Rogers        "MetricName": "C2_Pkg_Residency",
7115ae94cSIan Rogers        "ScaleUnit": "100%"
8d86ac8d7SIan Rogers    },
9d86ac8d7SIan Rogers    {
1061ec07f5SHaiyan Song        "BriefDescription": "C3 residency percent per core",
11d86ac8d7SIan Rogers        "MetricExpr": "cstate_core@c3\\-residency@ / TSC",
128853d2deSAndi Kleen        "MetricGroup": "Power",
13d86ac8d7SIan Rogers        "MetricName": "C3_Core_Residency",
14d86ac8d7SIan Rogers        "ScaleUnit": "100%"
158853d2deSAndi Kleen    },
168853d2deSAndi Kleen    {
1761ec07f5SHaiyan Song        "BriefDescription": "C3 residency percent per package",
18d86ac8d7SIan Rogers        "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC",
198853d2deSAndi Kleen        "MetricGroup": "Power",
20d86ac8d7SIan Rogers        "MetricName": "C3_Pkg_Residency",
21d86ac8d7SIan Rogers        "ScaleUnit": "100%"
228853d2deSAndi Kleen    },
238853d2deSAndi Kleen    {
24115ae94cSIan Rogers        "BriefDescription": "C6 residency percent per core",
25115ae94cSIan Rogers        "MetricExpr": "cstate_core@c6\\-residency@ / TSC",
26115ae94cSIan Rogers        "MetricGroup": "Power",
27115ae94cSIan Rogers        "MetricName": "C6_Core_Residency",
28115ae94cSIan Rogers        "ScaleUnit": "100%"
29115ae94cSIan Rogers    },
30115ae94cSIan Rogers    {
3161ec07f5SHaiyan Song        "BriefDescription": "C6 residency percent per package",
32d86ac8d7SIan Rogers        "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC",
338853d2deSAndi Kleen        "MetricGroup": "Power",
34d86ac8d7SIan Rogers        "MetricName": "C6_Pkg_Residency",
35d86ac8d7SIan Rogers        "ScaleUnit": "100%"
368853d2deSAndi Kleen    },
378853d2deSAndi Kleen    {
38115ae94cSIan Rogers        "BriefDescription": "C7 residency percent per core",
39115ae94cSIan Rogers        "MetricExpr": "cstate_core@c7\\-residency@ / TSC",
40115ae94cSIan Rogers        "MetricGroup": "Power",
41115ae94cSIan Rogers        "MetricName": "C7_Core_Residency",
42115ae94cSIan Rogers        "ScaleUnit": "100%"
43115ae94cSIan Rogers    },
44115ae94cSIan Rogers    {
4561ec07f5SHaiyan Song        "BriefDescription": "C7 residency percent per package",
46d86ac8d7SIan Rogers        "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC",
478853d2deSAndi Kleen        "MetricGroup": "Power",
48d86ac8d7SIan Rogers        "MetricName": "C7_Pkg_Residency",
49d86ac8d7SIan Rogers        "ScaleUnit": "100%"
50115ae94cSIan Rogers    },
51115ae94cSIan Rogers    {
52115ae94cSIan Rogers        "BriefDescription": "Uncore frequency per die [GHZ]",
53*b27d3eceSIan Rogers        "MetricExpr": "tma_info_system_socket_clks / #num_dies / duration_time / 1e9",
54115ae94cSIan Rogers        "MetricGroup": "SoC",
55115ae94cSIan Rogers        "MetricName": "UNCORE_FREQ"
56115ae94cSIan Rogers    },
57115ae94cSIan Rogers    {
58115ae94cSIan Rogers        "BriefDescription": "Percentage of cycles spent in System Management Interrupts.",
59115ae94cSIan Rogers        "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)",
60115ae94cSIan Rogers        "MetricGroup": "smi",
61115ae94cSIan Rogers        "MetricName": "smi_cycles",
62115ae94cSIan Rogers        "MetricThreshold": "smi_cycles > 0.1",
63115ae94cSIan Rogers        "ScaleUnit": "100%"
64115ae94cSIan Rogers    },
65115ae94cSIan Rogers    {
66115ae94cSIan Rogers        "BriefDescription": "Number of SMI interrupts.",
67115ae94cSIan Rogers        "MetricExpr": "msr@smi@",
68115ae94cSIan Rogers        "MetricGroup": "smi",
69115ae94cSIan Rogers        "MetricName": "smi_num",
70115ae94cSIan Rogers        "ScaleUnit": "1SMI#"
71115ae94cSIan Rogers    },
72115ae94cSIan Rogers    {
73115ae94cSIan Rogers        "BriefDescription": "This metric estimates how often memory load accesses were aliased by preceding stores (in program order) with a 4K address offset",
74*b27d3eceSIan Rogers        "MetricExpr": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS / tma_info_thread_clks",
75115ae94cSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
76115ae94cSIan Rogers        "MetricName": "tma_4k_aliasing",
77115ae94cSIan Rogers        "MetricThreshold": "tma_4k_aliasing > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
78115ae94cSIan Rogers        "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).",
79115ae94cSIan Rogers        "ScaleUnit": "100%"
80115ae94cSIan Rogers    },
81115ae94cSIan Rogers    {
82115ae94cSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution ports for ALU operations.",
83115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
84*b27d3eceSIan Rogers        "MetricExpr": "(UOPS_DISPATCHED_PORT.PORT_0 + UOPS_DISPATCHED_PORT.PORT_1 + UOPS_DISPATCHED_PORT.PORT_5) / (3 * tma_info_core_core_clks)",
85115ae94cSIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
86115ae94cSIan Rogers        "MetricName": "tma_alu_op_utilization",
87115ae94cSIan Rogers        "MetricThreshold": "tma_alu_op_utilization > 0.6",
88115ae94cSIan Rogers        "ScaleUnit": "100%"
89115ae94cSIan Rogers    },
90115ae94cSIan Rogers    {
91115ae94cSIan Rogers        "BriefDescription": "This metric estimates fraction of slots the CPU retired uops delivered by the Microcode_Sequencer as a result of Assists",
92*b27d3eceSIan Rogers        "MetricExpr": "100 * OTHER_ASSISTS.ANY_WB_ASSIST / tma_info_thread_slots",
93115ae94cSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
94115ae94cSIan Rogers        "MetricName": "tma_assists",
95115ae94cSIan Rogers        "MetricThreshold": "tma_assists > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
96115ae94cSIan Rogers        "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",
97115ae94cSIan Rogers        "ScaleUnit": "100%"
98115ae94cSIan Rogers    },
99115ae94cSIan Rogers    {
100115ae94cSIan Rogers        "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",
101115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
102115ae94cSIan Rogers        "MetricExpr": "1 - (tma_frontend_bound + tma_bad_speculation + tma_retiring)",
103115ae94cSIan Rogers        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
104115ae94cSIan Rogers        "MetricName": "tma_backend_bound",
105115ae94cSIan Rogers        "MetricThreshold": "tma_backend_bound > 0.2",
106ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL1",
107115ae94cSIan Rogers        "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.",
108115ae94cSIan Rogers        "ScaleUnit": "100%"
109115ae94cSIan Rogers    },
110115ae94cSIan Rogers    {
111115ae94cSIan Rogers        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations",
112*b27d3eceSIan Rogers        "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_thread_slots",
113115ae94cSIan Rogers        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
114115ae94cSIan Rogers        "MetricName": "tma_bad_speculation",
115115ae94cSIan Rogers        "MetricThreshold": "tma_bad_speculation > 0.15",
116ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL1",
117115ae94cSIan Rogers        "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.",
118115ae94cSIan Rogers        "ScaleUnit": "100%"
119115ae94cSIan Rogers    },
120115ae94cSIan Rogers    {
121115ae94cSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction",
122115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
123115ae94cSIan Rogers        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT) * tma_bad_speculation",
124115ae94cSIan Rogers        "MetricGroup": "BadSpec;BrMispredicts;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueBM",
125115ae94cSIan Rogers        "MetricName": "tma_branch_mispredicts",
126115ae94cSIan Rogers        "MetricThreshold": "tma_branch_mispredicts > 0.1 & tma_bad_speculation > 0.15",
127ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
128*b27d3eceSIan Rogers        "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_bad_spec_branch_misprediction_cost, tma_mispredicts_resteers",
129115ae94cSIan Rogers        "ScaleUnit": "100%"
130115ae94cSIan Rogers    },
131115ae94cSIan Rogers    {
132115ae94cSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers",
133*b27d3eceSIan Rogers        "MetricExpr": "12 * (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY) / tma_info_thread_clks",
134115ae94cSIan Rogers        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group",
135115ae94cSIan Rogers        "MetricName": "tma_branch_resteers",
136115ae94cSIan Rogers        "MetricThreshold": "tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
137115ae94cSIan Rogers        "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",
138115ae94cSIan Rogers        "ScaleUnit": "100%"
139115ae94cSIan Rogers    },
140115ae94cSIan Rogers    {
141115ae94cSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU retired uops originated from CISC (complex instruction set computer) instruction",
142115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
143115ae94cSIan Rogers        "MetricExpr": "max(0, tma_microcode_sequencer - tma_assists)",
144115ae94cSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
145115ae94cSIan Rogers        "MetricName": "tma_cisc",
146115ae94cSIan Rogers        "MetricThreshold": "tma_cisc > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
147115ae94cSIan Rogers        "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.",
148115ae94cSIan Rogers        "ScaleUnit": "100%"
149115ae94cSIan Rogers    },
150115ae94cSIan Rogers    {
151115ae94cSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses",
152115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
153*b27d3eceSIan Rogers        "MetricExpr": "(60 * (MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HITM * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.LLC_HIT + MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_RETIRED.LLC_MISS))) + 43 * (MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_MISS * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.LLC_HIT + MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_RETIRED.LLC_MISS)))) / tma_info_thread_clks",
154115ae94cSIan Rogers        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
155115ae94cSIan Rogers        "MetricName": "tma_contested_accesses",
156115ae94cSIan Rogers        "MetricThreshold": "tma_contested_accesses > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
157115ae94cSIan Rogers        "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",
158115ae94cSIan Rogers        "ScaleUnit": "100%"
159115ae94cSIan Rogers    },
160115ae94cSIan Rogers    {
161115ae94cSIan Rogers        "BriefDescription": "This metric represents fraction of slots where Core non-memory issues were of a bottleneck",
162115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
163115ae94cSIan Rogers        "MetricExpr": "tma_backend_bound - tma_memory_bound",
164115ae94cSIan Rogers        "MetricGroup": "Backend;Compute;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
165115ae94cSIan Rogers        "MetricName": "tma_core_bound",
166115ae94cSIan Rogers        "MetricThreshold": "tma_core_bound > 0.1 & tma_backend_bound > 0.2",
167ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
168115ae94cSIan Rogers        "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).",
169115ae94cSIan Rogers        "ScaleUnit": "100%"
170115ae94cSIan Rogers    },
171115ae94cSIan Rogers    {
172115ae94cSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses",
173115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
174*b27d3eceSIan Rogers        "MetricExpr": "43 * (MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HIT * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.LLC_HIT + MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_RETIRED.LLC_MISS))) / tma_info_thread_clks",
175115ae94cSIan Rogers        "MetricGroup": "Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
176115ae94cSIan Rogers        "MetricName": "tma_data_sharing",
177115ae94cSIan Rogers        "MetricThreshold": "tma_data_sharing > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
178115ae94cSIan Rogers        "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",
179115ae94cSIan Rogers        "ScaleUnit": "100%"
180115ae94cSIan Rogers    },
181115ae94cSIan Rogers    {
182115ae94cSIan Rogers        "BriefDescription": "This metric represents fraction of cycles where the Divider unit was active",
183*b27d3eceSIan Rogers        "MetricExpr": "ARITH.FPU_DIV_ACTIVE / tma_info_core_core_clks",
184115ae94cSIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_core_bound_group",
185115ae94cSIan Rogers        "MetricName": "tma_divider",
186115ae94cSIan Rogers        "MetricThreshold": "tma_divider > 0.2 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
187115ae94cSIan Rogers        "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",
188115ae94cSIan Rogers        "ScaleUnit": "100%"
189115ae94cSIan Rogers    },
190115ae94cSIan Rogers    {
191115ae94cSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads",
192115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_SMT",
193*b27d3eceSIan Rogers        "MetricExpr": "(1 - MEM_LOAD_UOPS_RETIRED.LLC_HIT / (MEM_LOAD_UOPS_RETIRED.LLC_HIT + 7 * MEM_LOAD_UOPS_RETIRED.LLC_MISS)) * CYCLE_ACTIVITY.STALLS_L2_PENDING / tma_info_thread_clks",
194115ae94cSIan Rogers        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
195115ae94cSIan Rogers        "MetricName": "tma_dram_bound",
196115ae94cSIan Rogers        "MetricThreshold": "tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
197115ae94cSIan Rogers        "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",
198115ae94cSIan Rogers        "ScaleUnit": "100%"
199115ae94cSIan Rogers    },
200115ae94cSIan Rogers    {
201115ae94cSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to DSB (decoded uop cache) fetch pipeline",
202*b27d3eceSIan Rogers        "MetricExpr": "(IDQ.ALL_DSB_CYCLES_ANY_UOPS - IDQ.ALL_DSB_CYCLES_4_UOPS) / tma_info_core_core_clks / 2",
203115ae94cSIan Rogers        "MetricGroup": "DSB;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
204115ae94cSIan Rogers        "MetricName": "tma_dsb",
205*b27d3eceSIan Rogers        "MetricThreshold": "tma_dsb > 0.15 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_thread_ipc / 4 > 0.35)",
206115ae94cSIan Rogers        "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.",
207115ae94cSIan Rogers        "ScaleUnit": "100%"
208115ae94cSIan Rogers    },
209115ae94cSIan Rogers    {
210115ae94cSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines",
211*b27d3eceSIan Rogers        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / tma_info_thread_clks",
212115ae94cSIan Rogers        "MetricGroup": "DSBmiss;FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
213115ae94cSIan Rogers        "MetricName": "tma_dsb_switches",
214115ae94cSIan Rogers        "MetricThreshold": "tma_dsb_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
215*b27d3eceSIan Rogers        "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_frontend_dsb_coverage, tma_info_inst_mix_iptb, tma_lcp",
216115ae94cSIan Rogers        "ScaleUnit": "100%"
217115ae94cSIan Rogers    },
218115ae94cSIan Rogers    {
219115ae94cSIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses",
220*b27d3eceSIan Rogers        "MetricExpr": "(7 * DTLB_LOAD_MISSES.STLB_HIT + DTLB_LOAD_MISSES.WALK_DURATION) / tma_info_thread_clks",
221115ae94cSIan Rogers        "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_l1_bound_group",
222115ae94cSIan Rogers        "MetricName": "tma_dtlb_load",
223115ae94cSIan Rogers        "MetricThreshold": "tma_dtlb_load > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
224115ae94cSIan Rogers        "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",
225115ae94cSIan Rogers        "ScaleUnit": "100%"
226115ae94cSIan Rogers    },
227115ae94cSIan Rogers    {
228115ae94cSIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles spent handling first-level data TLB store misses",
229*b27d3eceSIan Rogers        "MetricExpr": "(7 * DTLB_STORE_MISSES.STLB_HIT + DTLB_STORE_MISSES.WALK_DURATION) / tma_info_thread_clks",
230115ae94cSIan Rogers        "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_store_bound_group",
231115ae94cSIan Rogers        "MetricName": "tma_dtlb_store",
232115ae94cSIan Rogers        "MetricThreshold": "tma_dtlb_store > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
233115ae94cSIan Rogers        "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",
234115ae94cSIan Rogers        "ScaleUnit": "100%"
235115ae94cSIan Rogers    },
236115ae94cSIan Rogers    {
237115ae94cSIan Rogers        "BriefDescription": "This metric roughly estimates how often CPU was handling synchronizations due to False Sharing",
238*b27d3eceSIan Rogers        "MetricExpr": "60 * OFFCORE_RESPONSE.DEMAND_RFO.LLC_HIT.HITM_OTHER_CORE / tma_info_thread_clks",
239115ae94cSIan Rogers        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_store_bound_group",
240115ae94cSIan Rogers        "MetricName": "tma_false_sharing",
241115ae94cSIan Rogers        "MetricThreshold": "tma_false_sharing > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
242115ae94cSIan Rogers        "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",
243115ae94cSIan Rogers        "ScaleUnit": "100%"
244115ae94cSIan Rogers    },
245115ae94cSIan Rogers    {
246115ae94cSIan Rogers        "BriefDescription": "This metric does a *rough estimation* of how often L1D Fill Buffer unavailability limited additional L1D miss memory access requests to proceed",
247115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
248*b27d3eceSIan Rogers        "MetricExpr": "tma_info_memory_load_miss_real_latency * cpu@L1D_PEND_MISS.FB_FULL\\,cmask\\=1@ / tma_info_thread_clks",
249115ae94cSIan Rogers        "MetricGroup": "MemoryBW;TopdownL4;tma_L4_group;tma_issueBW;tma_issueSL;tma_issueSmSt;tma_l1_bound_group",
250115ae94cSIan Rogers        "MetricName": "tma_fb_full",
251115ae94cSIan Rogers        "MetricThreshold": "tma_fb_full > 0.3",
252*b27d3eceSIan Rogers        "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_system_dram_bw_use, tma_mem_bandwidth, tma_sq_full, tma_store_latency, tma_streaming_stores",
253115ae94cSIan Rogers        "ScaleUnit": "100%"
254115ae94cSIan Rogers    },
255115ae94cSIan Rogers    {
256115ae94cSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues",
257115ae94cSIan Rogers        "MetricExpr": "tma_frontend_bound - tma_fetch_latency",
258115ae94cSIan Rogers        "MetricGroup": "FetchBW;Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group;tma_issueFB",
259115ae94cSIan Rogers        "MetricName": "tma_fetch_bandwidth",
260*b27d3eceSIan Rogers        "MetricThreshold": "tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_thread_ipc / 4 > 0.35",
261ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
262*b27d3eceSIan Rogers        "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_frontend_dsb_coverage, tma_info_inst_mix_iptb, tma_lcp",
263115ae94cSIan Rogers        "ScaleUnit": "100%"
264115ae94cSIan Rogers    },
265115ae94cSIan Rogers    {
266115ae94cSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues",
267*b27d3eceSIan Rogers        "MetricExpr": "4 * min(CPU_CLK_UNHALTED.THREAD, IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE) / tma_info_thread_slots",
268115ae94cSIan Rogers        "MetricGroup": "Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group",
269115ae94cSIan Rogers        "MetricName": "tma_fetch_latency",
270115ae94cSIan Rogers        "MetricThreshold": "tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15",
271ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
272115ae94cSIan Rogers        "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",
273115ae94cSIan Rogers        "ScaleUnit": "100%"
274115ae94cSIan Rogers    },
275115ae94cSIan Rogers    {
276115ae94cSIan Rogers        "BriefDescription": "This metric represents overall arithmetic floating-point (FP) operations fraction the CPU has executed (retired)",
277115ae94cSIan Rogers        "MetricExpr": "tma_x87_use + tma_fp_scalar + tma_fp_vector",
278115ae94cSIan Rogers        "MetricGroup": "HPC;TopdownL3;tma_L3_group;tma_light_operations_group",
279115ae94cSIan Rogers        "MetricName": "tma_fp_arith",
280115ae94cSIan Rogers        "MetricThreshold": "tma_fp_arith > 0.2 & tma_light_operations > 0.6",
281115ae94cSIan Rogers        "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.",
282115ae94cSIan Rogers        "ScaleUnit": "100%"
283115ae94cSIan Rogers    },
284115ae94cSIan Rogers    {
285115ae94cSIan Rogers        "BriefDescription": "This metric approximates arithmetic floating-point (FP) scalar uops fraction the CPU has retired",
286115ae94cSIan Rogers        "MetricExpr": "(FP_COMP_OPS_EXE.SSE_SCALAR_SINGLE + FP_COMP_OPS_EXE.SSE_SCALAR_DOUBLE) / UOPS_EXECUTED.THREAD",
287115ae94cSIan Rogers        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
288115ae94cSIan Rogers        "MetricName": "tma_fp_scalar",
289115ae94cSIan Rogers        "MetricThreshold": "tma_fp_scalar > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
290115ae94cSIan Rogers        "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_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
291115ae94cSIan Rogers        "ScaleUnit": "100%"
292115ae94cSIan Rogers    },
293115ae94cSIan Rogers    {
294115ae94cSIan Rogers        "BriefDescription": "This metric approximates arithmetic floating-point (FP) vector uops fraction the CPU has retired aggregated across all vector widths",
295115ae94cSIan Rogers        "MetricExpr": "(FP_COMP_OPS_EXE.SSE_PACKED_DOUBLE + FP_COMP_OPS_EXE.SSE_PACKED_SINGLE + SIMD_FP_256.PACKED_SINGLE + SIMD_FP_256.PACKED_DOUBLE) / UOPS_EXECUTED.THREAD",
296115ae94cSIan Rogers        "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P",
297115ae94cSIan Rogers        "MetricName": "tma_fp_vector",
298115ae94cSIan Rogers        "MetricThreshold": "tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
299115ae94cSIan Rogers        "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_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
300115ae94cSIan Rogers        "ScaleUnit": "100%"
301115ae94cSIan Rogers    },
302115ae94cSIan Rogers    {
303115ae94cSIan Rogers        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend",
304*b27d3eceSIan Rogers        "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / tma_info_thread_slots",
305115ae94cSIan Rogers        "MetricGroup": "PGO;TmaL1;TopdownL1;tma_L1_group",
306115ae94cSIan Rogers        "MetricName": "tma_frontend_bound",
307115ae94cSIan Rogers        "MetricThreshold": "tma_frontend_bound > 0.15",
308ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL1",
309115ae94cSIan Rogers        "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.",
310115ae94cSIan Rogers        "ScaleUnit": "100%"
311115ae94cSIan Rogers    },
312115ae94cSIan Rogers    {
313115ae94cSIan Rogers        "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",
314115ae94cSIan Rogers        "MetricExpr": "tma_microcode_sequencer",
315115ae94cSIan Rogers        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
316115ae94cSIan Rogers        "MetricName": "tma_heavy_operations",
317115ae94cSIan Rogers        "MetricThreshold": "tma_heavy_operations > 0.1",
318ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
319115ae94cSIan Rogers        "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.",
320115ae94cSIan Rogers        "ScaleUnit": "100%"
321115ae94cSIan Rogers    },
322115ae94cSIan Rogers    {
323115ae94cSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to instruction cache misses.",
324*b27d3eceSIan Rogers        "MetricExpr": "ICACHE.IFETCH_STALL / tma_info_thread_clks - tma_itlb_misses",
325115ae94cSIan Rogers        "MetricGroup": "BigFoot;FetchLat;IcMiss;TopdownL3;tma_L3_group;tma_fetch_latency_group",
326115ae94cSIan Rogers        "MetricName": "tma_icache_misses",
327115ae94cSIan Rogers        "MetricThreshold": "tma_icache_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
328115ae94cSIan Rogers        "ScaleUnit": "100%"
329115ae94cSIan Rogers    },
330115ae94cSIan Rogers    {
331*b27d3eceSIan Rogers        "BriefDescription": "Instructions per retired mispredicts for indirect CALL or JMP branches (lower number means higher occurrence rate).",
332*b27d3eceSIan Rogers        "MetricExpr": "tma_info_inst_mix_instructions / (UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * cpu@BR_MISP_EXEC.ALL_BRANCHES\\,umask\\=0xE4@)",
333*b27d3eceSIan Rogers        "MetricGroup": "Bad;BrMispredicts",
334*b27d3eceSIan Rogers        "MetricName": "tma_info_bad_spec_ipmisp_indirect",
335*b27d3eceSIan Rogers        "MetricThreshold": "tma_info_bad_spec_ipmisp_indirect < 1e3"
336115ae94cSIan Rogers    },
337115ae94cSIan Rogers    {
338*b27d3eceSIan Rogers        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear) (lower number means higher occurrence rate)",
339*b27d3eceSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
340*b27d3eceSIan Rogers        "MetricGroup": "Bad;BadSpec;BrMispredicts",
341*b27d3eceSIan Rogers        "MetricName": "tma_info_bad_spec_ipmispredict",
342*b27d3eceSIan Rogers        "MetricThreshold": "tma_info_bad_spec_ipmispredict < 200"
343115ae94cSIan Rogers    },
344115ae94cSIan Rogers    {
345115ae94cSIan Rogers        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
346*b27d3eceSIan Rogers        "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_thread_clks))",
347115ae94cSIan Rogers        "MetricGroup": "SMT",
348*b27d3eceSIan Rogers        "MetricName": "tma_info_core_core_clks"
349115ae94cSIan Rogers    },
350115ae94cSIan Rogers    {
351115ae94cSIan Rogers        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
352*b27d3eceSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / tma_info_core_core_clks",
353115ae94cSIan Rogers        "MetricGroup": "Ret;SMT;TmaL1;tma_L1_group",
354*b27d3eceSIan Rogers        "MetricName": "tma_info_core_coreipc"
355115ae94cSIan Rogers    },
356115ae94cSIan Rogers    {
357115ae94cSIan Rogers        "BriefDescription": "Floating Point Operations Per Cycle",
358*b27d3eceSIan Rogers        "MetricExpr": "(FP_COMP_OPS_EXE.SSE_SCALAR_SINGLE + FP_COMP_OPS_EXE.SSE_SCALAR_DOUBLE + 2 * FP_COMP_OPS_EXE.SSE_PACKED_DOUBLE + 4 * (FP_COMP_OPS_EXE.SSE_PACKED_SINGLE + SIMD_FP_256.PACKED_DOUBLE) + 8 * SIMD_FP_256.PACKED_SINGLE) / tma_info_core_core_clks",
359115ae94cSIan Rogers        "MetricGroup": "Flops;Ret",
360*b27d3eceSIan Rogers        "MetricName": "tma_info_core_flopc"
361115ae94cSIan Rogers    },
362115ae94cSIan Rogers    {
363115ae94cSIan Rogers        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-core",
364115ae94cSIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / (cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ / 2 if #SMT_on else UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC)",
365115ae94cSIan Rogers        "MetricGroup": "Backend;Cor;Pipeline;PortsUtil",
366*b27d3eceSIan Rogers        "MetricName": "tma_info_core_ilp"
367*b27d3eceSIan Rogers    },
368*b27d3eceSIan Rogers    {
369*b27d3eceSIan Rogers        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
370*b27d3eceSIan Rogers        "MetricExpr": "IDQ.DSB_UOPS / (IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
371*b27d3eceSIan Rogers        "MetricGroup": "DSB;Fed;FetchBW;tma_issueFB",
372*b27d3eceSIan Rogers        "MetricName": "tma_info_frontend_dsb_coverage",
373*b27d3eceSIan Rogers        "MetricThreshold": "tma_info_frontend_dsb_coverage < 0.7 & tma_info_thread_ipc / 4 > 0.35",
374*b27d3eceSIan Rogers        "PublicDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache). Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_inst_mix_iptb, tma_lcp"
375*b27d3eceSIan Rogers    },
376*b27d3eceSIan Rogers    {
377*b27d3eceSIan Rogers        "BriefDescription": "Instructions per speculative Unknown Branch Misprediction (BAClear) (lower number means higher occurrence rate)",
378*b27d3eceSIan Rogers        "MetricExpr": "tma_info_inst_mix_instructions / BACLEARS.ANY",
379*b27d3eceSIan Rogers        "MetricGroup": "Fed",
380*b27d3eceSIan Rogers        "MetricName": "tma_info_frontend_ipunknown_branch"
381*b27d3eceSIan Rogers    },
382*b27d3eceSIan Rogers    {
383*b27d3eceSIan Rogers        "BriefDescription": "Branch instructions per taken branch.",
384*b27d3eceSIan Rogers        "MetricExpr": "BR_INST_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.NEAR_TAKEN",
385*b27d3eceSIan Rogers        "MetricGroup": "Branches;Fed;PGO",
386*b27d3eceSIan Rogers        "MetricName": "tma_info_inst_mix_bptkbranch"
387115ae94cSIan Rogers    },
388115ae94cSIan Rogers    {
389115ae94cSIan Rogers        "BriefDescription": "Total number of retired Instructions",
390115ae94cSIan Rogers        "MetricExpr": "INST_RETIRED.ANY",
391115ae94cSIan Rogers        "MetricGroup": "Summary;TmaL1;tma_L1_group",
392*b27d3eceSIan Rogers        "MetricName": "tma_info_inst_mix_instructions",
393115ae94cSIan Rogers        "PublicDescription": "Total number of retired Instructions. Sample with: INST_RETIRED.PREC_DIST"
394115ae94cSIan Rogers    },
395115ae94cSIan Rogers    {
396115ae94cSIan Rogers        "BriefDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate)",
397115ae94cSIan Rogers        "MetricExpr": "1 / (tma_fp_scalar + tma_fp_vector)",
398115ae94cSIan Rogers        "MetricGroup": "Flops;InsType",
399*b27d3eceSIan Rogers        "MetricName": "tma_info_inst_mix_iparith",
400*b27d3eceSIan Rogers        "MetricThreshold": "tma_info_inst_mix_iparith < 10",
401115ae94cSIan Rogers        "PublicDescription": "Instructions per FP Arithmetic instruction (lower number means higher occurrence rate). May undercount due to FMA double counting. Approximated prior to BDW."
402115ae94cSIan Rogers    },
403115ae94cSIan Rogers    {
404115ae94cSIan Rogers        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
405115ae94cSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
406115ae94cSIan Rogers        "MetricGroup": "Branches;Fed;InsType",
407*b27d3eceSIan Rogers        "MetricName": "tma_info_inst_mix_ipbranch",
408*b27d3eceSIan Rogers        "MetricThreshold": "tma_info_inst_mix_ipbranch < 8"
409115ae94cSIan Rogers    },
410115ae94cSIan Rogers    {
411115ae94cSIan Rogers        "BriefDescription": "Instructions per (near) call (lower number means higher occurrence rate)",
412115ae94cSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
413115ae94cSIan Rogers        "MetricGroup": "Branches;Fed;PGO",
414*b27d3eceSIan Rogers        "MetricName": "tma_info_inst_mix_ipcall",
415*b27d3eceSIan Rogers        "MetricThreshold": "tma_info_inst_mix_ipcall < 200"
416115ae94cSIan Rogers    },
417115ae94cSIan Rogers    {
418115ae94cSIan Rogers        "BriefDescription": "Instructions per Load (lower number means higher occurrence rate)",
419115ae94cSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_LOADS",
420115ae94cSIan Rogers        "MetricGroup": "InsType",
421*b27d3eceSIan Rogers        "MetricName": "tma_info_inst_mix_ipload",
422*b27d3eceSIan Rogers        "MetricThreshold": "tma_info_inst_mix_ipload < 3"
423115ae94cSIan Rogers    },
424115ae94cSIan Rogers    {
425115ae94cSIan Rogers        "BriefDescription": "Instructions per Store (lower number means higher occurrence rate)",
426115ae94cSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_STORES",
427115ae94cSIan Rogers        "MetricGroup": "InsType",
428*b27d3eceSIan Rogers        "MetricName": "tma_info_inst_mix_ipstore",
429*b27d3eceSIan Rogers        "MetricThreshold": "tma_info_inst_mix_ipstore < 8"
430115ae94cSIan Rogers    },
431115ae94cSIan Rogers    {
432115ae94cSIan Rogers        "BriefDescription": "Instruction per taken branch",
433115ae94cSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
434115ae94cSIan Rogers        "MetricGroup": "Branches;Fed;FetchBW;Frontend;PGO;tma_issueFB",
435*b27d3eceSIan Rogers        "MetricName": "tma_info_inst_mix_iptb",
436*b27d3eceSIan Rogers        "MetricThreshold": "tma_info_inst_mix_iptb < 9",
437*b27d3eceSIan Rogers        "PublicDescription": "Instruction per taken branch. Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_frontend_dsb_coverage, tma_lcp"
438115ae94cSIan Rogers    },
439115ae94cSIan Rogers    {
440115ae94cSIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L1 data cache [GB / sec]",
441115ae94cSIan Rogers        "MetricExpr": "64 * L1D.REPLACEMENT / 1e9 / duration_time",
442115ae94cSIan Rogers        "MetricGroup": "Mem;MemoryBW",
443*b27d3eceSIan Rogers        "MetricName": "tma_info_memory_core_l1d_cache_fill_bw"
444115ae94cSIan Rogers    },
445115ae94cSIan Rogers    {
446115ae94cSIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L2 cache [GB / sec]",
447115ae94cSIan Rogers        "MetricExpr": "64 * L2_LINES_IN.ALL / 1e9 / duration_time",
448115ae94cSIan Rogers        "MetricGroup": "Mem;MemoryBW",
449*b27d3eceSIan Rogers        "MetricName": "tma_info_memory_core_l2_cache_fill_bw"
450115ae94cSIan Rogers    },
451115ae94cSIan Rogers    {
452115ae94cSIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
453115ae94cSIan Rogers        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1e9 / duration_time",
454115ae94cSIan Rogers        "MetricGroup": "Mem;MemoryBW",
455*b27d3eceSIan Rogers        "MetricName": "tma_info_memory_core_l3_cache_fill_bw"
456115ae94cSIan Rogers    },
457115ae94cSIan Rogers    {
458*b27d3eceSIan Rogers        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
459*b27d3eceSIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L1_MISS / INST_RETIRED.ANY",
460*b27d3eceSIan Rogers        "MetricGroup": "CacheMisses;Mem",
461*b27d3eceSIan Rogers        "MetricName": "tma_info_memory_l1mpki"
462*b27d3eceSIan Rogers    },
463*b27d3eceSIan Rogers    {
464*b27d3eceSIan Rogers        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
465*b27d3eceSIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L2_MISS / INST_RETIRED.ANY",
466*b27d3eceSIan Rogers        "MetricGroup": "Backend;CacheMisses;Mem",
467*b27d3eceSIan Rogers        "MetricName": "tma_info_memory_l2mpki"
468115ae94cSIan Rogers    },
469115ae94cSIan Rogers    {
470115ae94cSIan Rogers        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
471115ae94cSIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.LLC_MISS / INST_RETIRED.ANY",
472115ae94cSIan Rogers        "MetricGroup": "CacheMisses;Mem",
473*b27d3eceSIan Rogers        "MetricName": "tma_info_memory_l3mpki"
474115ae94cSIan Rogers    },
475115ae94cSIan Rogers    {
476115ae94cSIan Rogers        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand load operations (in core cycles)",
477115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
478115ae94cSIan Rogers        "MetricExpr": "L1D_PEND_MISS.PENDING / (MEM_LOAD_UOPS_RETIRED.L1_MISS + MEM_LOAD_UOPS_RETIRED.HIT_LFB)",
479115ae94cSIan Rogers        "MetricGroup": "Mem;MemoryBound;MemoryLat",
480*b27d3eceSIan Rogers        "MetricName": "tma_info_memory_load_miss_real_latency"
481115ae94cSIan Rogers    },
482115ae94cSIan Rogers    {
483115ae94cSIan Rogers        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss",
484115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
485115ae94cSIan Rogers        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
486115ae94cSIan Rogers        "MetricGroup": "Mem;MemoryBW;MemoryBound",
487*b27d3eceSIan Rogers        "MetricName": "tma_info_memory_mlp",
488115ae94cSIan Rogers        "PublicDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-Logical Processor)"
489115ae94cSIan Rogers    },
490115ae94cSIan Rogers    {
491*b27d3eceSIan Rogers        "BriefDescription": "Average Parallel L2 cache miss data reads",
492*b27d3eceSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD",
493*b27d3eceSIan Rogers        "MetricGroup": "Memory_BW;Offcore",
494*b27d3eceSIan Rogers        "MetricName": "tma_info_memory_oro_data_l2_mlp"
495*b27d3eceSIan Rogers    },
496*b27d3eceSIan Rogers    {
497*b27d3eceSIan Rogers        "BriefDescription": "Average Latency for L2 cache miss demand Loads",
498*b27d3eceSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS.DEMAND_DATA_RD",
499*b27d3eceSIan Rogers        "MetricGroup": "Memory_Lat;Offcore",
500*b27d3eceSIan Rogers        "MetricName": "tma_info_memory_oro_load_l2_miss_latency"
501*b27d3eceSIan Rogers    },
502*b27d3eceSIan Rogers    {
503*b27d3eceSIan Rogers        "BriefDescription": "Average Parallel L2 cache miss demand Loads",
504*b27d3eceSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_DATA_RD",
505*b27d3eceSIan Rogers        "MetricGroup": "Memory_BW;Offcore",
506*b27d3eceSIan Rogers        "MetricName": "tma_info_memory_oro_load_l2_mlp"
507*b27d3eceSIan Rogers    },
508*b27d3eceSIan Rogers    {
509*b27d3eceSIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L1 data cache [GB / sec]",
510*b27d3eceSIan Rogers        "MetricExpr": "tma_info_memory_core_l1d_cache_fill_bw",
511*b27d3eceSIan Rogers        "MetricGroup": "Mem;MemoryBW",
512*b27d3eceSIan Rogers        "MetricName": "tma_info_memory_thread_l1d_cache_fill_bw_1t"
513*b27d3eceSIan Rogers    },
514*b27d3eceSIan Rogers    {
515*b27d3eceSIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L2 cache [GB / sec]",
516*b27d3eceSIan Rogers        "MetricExpr": "tma_info_memory_core_l2_cache_fill_bw",
517*b27d3eceSIan Rogers        "MetricGroup": "Mem;MemoryBW",
518*b27d3eceSIan Rogers        "MetricName": "tma_info_memory_thread_l2_cache_fill_bw_1t"
519*b27d3eceSIan Rogers    },
520*b27d3eceSIan Rogers    {
521*b27d3eceSIan Rogers        "BriefDescription": "Average per-thread data access bandwidth to the L3 cache [GB / sec]",
522*b27d3eceSIan Rogers        "MetricExpr": "0",
523*b27d3eceSIan Rogers        "MetricGroup": "Mem;MemoryBW;Offcore",
524*b27d3eceSIan Rogers        "MetricName": "tma_info_memory_thread_l3_cache_access_bw_1t"
525*b27d3eceSIan Rogers    },
526*b27d3eceSIan Rogers    {
527*b27d3eceSIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L3 cache [GB / sec]",
528*b27d3eceSIan Rogers        "MetricExpr": "tma_info_memory_core_l3_cache_fill_bw",
529*b27d3eceSIan Rogers        "MetricGroup": "Mem;MemoryBW",
530*b27d3eceSIan Rogers        "MetricName": "tma_info_memory_thread_l3_cache_fill_bw_1t"
531*b27d3eceSIan Rogers    },
532*b27d3eceSIan Rogers    {
533115ae94cSIan Rogers        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
534*b27d3eceSIan Rogers        "MetricExpr": "(ITLB_MISSES.WALK_DURATION + DTLB_LOAD_MISSES.WALK_DURATION + DTLB_STORE_MISSES.WALK_DURATION) / tma_info_core_core_clks",
535115ae94cSIan Rogers        "MetricGroup": "Mem;MemoryTLB",
536*b27d3eceSIan Rogers        "MetricName": "tma_info_memory_tlb_page_walks_utilization",
537*b27d3eceSIan Rogers        "MetricThreshold": "tma_info_memory_tlb_page_walks_utilization > 0.5"
538*b27d3eceSIan Rogers    },
539*b27d3eceSIan Rogers    {
540*b27d3eceSIan Rogers        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-thread",
541*b27d3eceSIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / cpu@UOPS_EXECUTED.THREAD\\,cmask\\=1@",
542*b27d3eceSIan Rogers        "MetricGroup": "Cor;Pipeline;PortsUtil;SMT",
543*b27d3eceSIan Rogers        "MetricName": "tma_info_pipeline_execute"
544115ae94cSIan Rogers    },
545115ae94cSIan Rogers    {
546115ae94cSIan Rogers        "BriefDescription": "Average number of Uops retired in cycles where at least one uop has retired.",
547115ae94cSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / cpu@UOPS_RETIRED.RETIRE_SLOTS\\,cmask\\=1@",
548115ae94cSIan Rogers        "MetricGroup": "Pipeline;Ret",
549*b27d3eceSIan Rogers        "MetricName": "tma_info_pipeline_retire"
550115ae94cSIan Rogers    },
551115ae94cSIan Rogers    {
552*b27d3eceSIan Rogers        "BriefDescription": "Measured Average Frequency for unhalted processors [GHz]",
553*b27d3eceSIan Rogers        "MetricExpr": "tma_info_system_turbo_utilization * TSC / 1e9 / duration_time",
554*b27d3eceSIan Rogers        "MetricGroup": "Power;Summary",
555*b27d3eceSIan Rogers        "MetricName": "tma_info_system_average_frequency"
556*b27d3eceSIan Rogers    },
557*b27d3eceSIan Rogers    {
558*b27d3eceSIan Rogers        "BriefDescription": "Average CPU Utilization",
559*b27d3eceSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / TSC",
560*b27d3eceSIan Rogers        "MetricGroup": "HPC;Summary",
561*b27d3eceSIan Rogers        "MetricName": "tma_info_system_cpu_utilization"
562*b27d3eceSIan Rogers    },
563*b27d3eceSIan Rogers    {
564*b27d3eceSIan Rogers        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
565*b27d3eceSIan Rogers        "MetricExpr": "64 * (UNC_ARB_TRK_REQUESTS.ALL + UNC_ARB_COH_TRK_REQUESTS.ALL) / 1e6 / duration_time / 1e3",
566*b27d3eceSIan Rogers        "MetricGroup": "HPC;Mem;MemoryBW;SoC;tma_issueBW",
567*b27d3eceSIan Rogers        "MetricName": "tma_info_system_dram_bw_use",
568*b27d3eceSIan Rogers        "PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_mem_bandwidth, tma_sq_full"
569*b27d3eceSIan Rogers    },
570*b27d3eceSIan Rogers    {
571*b27d3eceSIan Rogers        "BriefDescription": "Giga Floating Point Operations Per Second",
572*b27d3eceSIan Rogers        "MetricExpr": "(FP_COMP_OPS_EXE.SSE_SCALAR_SINGLE + FP_COMP_OPS_EXE.SSE_SCALAR_DOUBLE + 2 * FP_COMP_OPS_EXE.SSE_PACKED_DOUBLE + 4 * (FP_COMP_OPS_EXE.SSE_PACKED_SINGLE + SIMD_FP_256.PACKED_DOUBLE) + 8 * SIMD_FP_256.PACKED_SINGLE) / 1e9 / duration_time",
573*b27d3eceSIan Rogers        "MetricGroup": "Cor;Flops;HPC",
574*b27d3eceSIan Rogers        "MetricName": "tma_info_system_gflops",
575*b27d3eceSIan Rogers        "PublicDescription": "Giga Floating Point Operations Per Second. Aggregate across all supported options of: FP precisions, scalar and vector instructions, vector-width and AMX engine."
576*b27d3eceSIan Rogers    },
577*b27d3eceSIan Rogers    {
578*b27d3eceSIan Rogers        "BriefDescription": "Instructions per Far Branch ( Far Branches apply upon transition from application to operating system, handling interrupts, exceptions) [lower number means higher occurrence rate]",
579*b27d3eceSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
580*b27d3eceSIan Rogers        "MetricGroup": "Branches;OS",
581*b27d3eceSIan Rogers        "MetricName": "tma_info_system_ipfarbranch",
582*b27d3eceSIan Rogers        "MetricThreshold": "tma_info_system_ipfarbranch < 1e6"
583*b27d3eceSIan Rogers    },
584*b27d3eceSIan Rogers    {
585*b27d3eceSIan Rogers        "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode",
586*b27d3eceSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k",
587*b27d3eceSIan Rogers        "MetricGroup": "OS",
588*b27d3eceSIan Rogers        "MetricName": "tma_info_system_kernel_cpi"
589*b27d3eceSIan Rogers    },
590*b27d3eceSIan Rogers    {
591*b27d3eceSIan Rogers        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
592*b27d3eceSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD",
593*b27d3eceSIan Rogers        "MetricGroup": "OS",
594*b27d3eceSIan Rogers        "MetricName": "tma_info_system_kernel_utilization",
595*b27d3eceSIan Rogers        "MetricThreshold": "tma_info_system_kernel_utilization > 0.05"
596*b27d3eceSIan Rogers    },
597*b27d3eceSIan Rogers    {
598*b27d3eceSIan Rogers        "BriefDescription": "Average number of parallel requests to external memory",
599*b27d3eceSIan Rogers        "MetricExpr": "UNC_ARB_TRK_OCCUPANCY.ALL / UNC_ARB_TRK_OCCUPANCY.CYCLES_WITH_ANY_REQUEST",
600*b27d3eceSIan Rogers        "MetricGroup": "Mem;SoC",
601*b27d3eceSIan Rogers        "MetricName": "tma_info_system_mem_parallel_requests",
602*b27d3eceSIan Rogers        "PublicDescription": "Average number of parallel requests to external memory. Accounts for all requests"
603*b27d3eceSIan Rogers    },
604*b27d3eceSIan Rogers    {
605*b27d3eceSIan Rogers        "BriefDescription": "Average latency of all requests to external memory (in Uncore cycles)",
606*b27d3eceSIan Rogers        "MetricExpr": "UNC_ARB_TRK_OCCUPANCY.ALL / UNC_ARB_TRK_REQUESTS.ALL",
607*b27d3eceSIan Rogers        "MetricGroup": "Mem;SoC",
608*b27d3eceSIan Rogers        "MetricName": "tma_info_system_mem_request_latency"
609115ae94cSIan Rogers    },
610115ae94cSIan Rogers    {
611115ae94cSIan Rogers        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
612115ae94cSIan Rogers        "MetricExpr": "(1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / (CPU_CLK_UNHALTED.REF_XCLK_ANY / 2) if #SMT_on else 0)",
613115ae94cSIan Rogers        "MetricGroup": "SMT",
614*b27d3eceSIan Rogers        "MetricName": "tma_info_system_smt_2t_utilization"
615115ae94cSIan Rogers    },
616115ae94cSIan Rogers    {
617115ae94cSIan Rogers        "BriefDescription": "Socket actual clocks when any core is active on that socket",
618115ae94cSIan Rogers        "MetricExpr": "UNC_CLOCK.SOCKET",
619115ae94cSIan Rogers        "MetricGroup": "SoC",
620*b27d3eceSIan Rogers        "MetricName": "tma_info_system_socket_clks"
621115ae94cSIan Rogers    },
622115ae94cSIan Rogers    {
623115ae94cSIan Rogers        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
624*b27d3eceSIan Rogers        "MetricExpr": "tma_info_thread_clks / CPU_CLK_UNHALTED.REF_TSC",
625115ae94cSIan Rogers        "MetricGroup": "Power",
626*b27d3eceSIan Rogers        "MetricName": "tma_info_system_turbo_utilization"
627*b27d3eceSIan Rogers    },
628*b27d3eceSIan Rogers    {
629*b27d3eceSIan Rogers        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
630*b27d3eceSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
631*b27d3eceSIan Rogers        "MetricGroup": "Pipeline",
632*b27d3eceSIan Rogers        "MetricName": "tma_info_thread_clks"
633*b27d3eceSIan Rogers    },
634*b27d3eceSIan Rogers    {
635*b27d3eceSIan Rogers        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
636*b27d3eceSIan Rogers        "MetricExpr": "1 / tma_info_thread_ipc",
637*b27d3eceSIan Rogers        "MetricGroup": "Mem;Pipeline",
638*b27d3eceSIan Rogers        "MetricName": "tma_info_thread_cpi"
639*b27d3eceSIan Rogers    },
640*b27d3eceSIan Rogers    {
641*b27d3eceSIan Rogers        "BriefDescription": "The ratio of Executed- by Issued-Uops",
642*b27d3eceSIan Rogers        "MetricExpr": "UOPS_EXECUTED.THREAD / UOPS_ISSUED.ANY",
643*b27d3eceSIan Rogers        "MetricGroup": "Cor;Pipeline",
644*b27d3eceSIan Rogers        "MetricName": "tma_info_thread_execute_per_issue",
645*b27d3eceSIan Rogers        "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."
646*b27d3eceSIan Rogers    },
647*b27d3eceSIan Rogers    {
648*b27d3eceSIan Rogers        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
649*b27d3eceSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / tma_info_thread_clks",
650*b27d3eceSIan Rogers        "MetricGroup": "Ret;Summary",
651*b27d3eceSIan Rogers        "MetricName": "tma_info_thread_ipc"
652*b27d3eceSIan Rogers    },
653*b27d3eceSIan Rogers    {
654*b27d3eceSIan Rogers        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
655*b27d3eceSIan Rogers        "MetricExpr": "4 * tma_info_core_core_clks",
656*b27d3eceSIan Rogers        "MetricGroup": "TmaL1;tma_L1_group",
657*b27d3eceSIan Rogers        "MetricName": "tma_info_thread_slots"
658115ae94cSIan Rogers    },
659115ae94cSIan Rogers    {
660115ae94cSIan Rogers        "BriefDescription": "Uops Per Instruction",
661115ae94cSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
662115ae94cSIan Rogers        "MetricGroup": "Pipeline;Ret;Retire",
663*b27d3eceSIan Rogers        "MetricName": "tma_info_thread_uoppi",
664*b27d3eceSIan Rogers        "MetricThreshold": "tma_info_thread_uoppi > 1.05"
665115ae94cSIan Rogers    },
666115ae94cSIan Rogers    {
667115ae94cSIan Rogers        "BriefDescription": "Instruction per taken branch",
668115ae94cSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / BR_INST_RETIRED.NEAR_TAKEN",
669115ae94cSIan Rogers        "MetricGroup": "Branches;Fed;FetchBW",
670*b27d3eceSIan Rogers        "MetricName": "tma_info_thread_uptb",
671*b27d3eceSIan Rogers        "MetricThreshold": "tma_info_thread_uptb < 6"
672115ae94cSIan Rogers    },
673115ae94cSIan Rogers    {
674115ae94cSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses",
675*b27d3eceSIan Rogers        "MetricExpr": "(12 * ITLB_MISSES.STLB_HIT + ITLB_MISSES.WALK_DURATION) / tma_info_thread_clks",
676115ae94cSIan Rogers        "MetricGroup": "BigFoot;FetchLat;MemoryTLB;TopdownL3;tma_L3_group;tma_fetch_latency_group",
677115ae94cSIan Rogers        "MetricName": "tma_itlb_misses",
678115ae94cSIan Rogers        "MetricThreshold": "tma_itlb_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
679115ae94cSIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses. Sample with: ITLB_MISSES.WALK_COMPLETED",
680115ae94cSIan Rogers        "ScaleUnit": "100%"
681115ae94cSIan Rogers    },
682115ae94cSIan Rogers    {
683115ae94cSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 data cache",
684*b27d3eceSIan Rogers        "MetricExpr": "max((min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.STALLS_LDM_PENDING) - CYCLE_ACTIVITY.STALLS_L1D_PENDING) / tma_info_thread_clks, 0)",
685115ae94cSIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_issueL1;tma_issueMC;tma_memory_bound_group",
686115ae94cSIan Rogers        "MetricName": "tma_l1_bound",
687115ae94cSIan Rogers        "MetricThreshold": "tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
688115ae94cSIan Rogers        "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",
689115ae94cSIan Rogers        "ScaleUnit": "100%"
690115ae94cSIan Rogers    },
691115ae94cSIan Rogers    {
692115ae94cSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled due to L2 cache accesses by loads",
693*b27d3eceSIan Rogers        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_L1D_PENDING - CYCLE_ACTIVITY.STALLS_L2_PENDING) / tma_info_thread_clks",
694115ae94cSIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
695115ae94cSIan Rogers        "MetricName": "tma_l2_bound",
696115ae94cSIan Rogers        "MetricThreshold": "tma_l2_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
697115ae94cSIan Rogers        "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",
698115ae94cSIan Rogers        "ScaleUnit": "100%"
699115ae94cSIan Rogers    },
700115ae94cSIan Rogers    {
701115ae94cSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core",
702115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_SMT",
703*b27d3eceSIan Rogers        "MetricExpr": "MEM_LOAD_UOPS_RETIRED.LLC_HIT / (MEM_LOAD_UOPS_RETIRED.LLC_HIT + 7 * MEM_LOAD_UOPS_RETIRED.LLC_MISS) * CYCLE_ACTIVITY.STALLS_L2_PENDING / tma_info_thread_clks",
704115ae94cSIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
705115ae94cSIan Rogers        "MetricName": "tma_l3_bound",
706115ae94cSIan Rogers        "MetricThreshold": "tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
707115ae94cSIan Rogers        "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",
708115ae94cSIan Rogers        "ScaleUnit": "100%"
709115ae94cSIan Rogers    },
710115ae94cSIan Rogers    {
711115ae94cSIan Rogers        "BriefDescription": "This metric represents fraction of cycles with demand load accesses that hit the L3 cache under unloaded scenarios (possibly L3 latency limited)",
712115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
713*b27d3eceSIan Rogers        "MetricExpr": "29 * (MEM_LOAD_UOPS_RETIRED.LLC_HIT * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.LLC_HIT + MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_LLC_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_RETIRED.LLC_MISS))) / tma_info_thread_clks",
714115ae94cSIan Rogers        "MetricGroup": "MemoryLat;TopdownL4;tma_L4_group;tma_issueLat;tma_l3_bound_group",
715115ae94cSIan Rogers        "MetricName": "tma_l3_hit_latency",
716115ae94cSIan Rogers        "MetricThreshold": "tma_l3_hit_latency > 0.1 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
717115ae94cSIan Rogers        "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",
718115ae94cSIan Rogers        "ScaleUnit": "100%"
719115ae94cSIan Rogers    },
720115ae94cSIan Rogers    {
721115ae94cSIan Rogers        "BriefDescription": "This metric represents fraction of cycles CPU was stalled due to Length Changing Prefixes (LCPs)",
722*b27d3eceSIan Rogers        "MetricExpr": "ILD_STALL.LCP / tma_info_thread_clks",
723115ae94cSIan Rogers        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
724115ae94cSIan Rogers        "MetricName": "tma_lcp",
725115ae94cSIan Rogers        "MetricThreshold": "tma_lcp > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
726*b27d3eceSIan Rogers        "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_frontend_dsb_coverage, tma_info_inst_mix_iptb",
727115ae94cSIan Rogers        "ScaleUnit": "100%"
728115ae94cSIan Rogers    },
729115ae94cSIan Rogers    {
730115ae94cSIan Rogers        "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)",
731115ae94cSIan Rogers        "MetricExpr": "tma_retiring - tma_heavy_operations",
732115ae94cSIan Rogers        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
733115ae94cSIan Rogers        "MetricName": "tma_light_operations",
734115ae94cSIan Rogers        "MetricThreshold": "tma_light_operations > 0.6",
735ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
736115ae94cSIan Rogers        "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",
737115ae94cSIan Rogers        "ScaleUnit": "100%"
738115ae94cSIan Rogers    },
739115ae94cSIan Rogers    {
740115ae94cSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations",
741115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
742*b27d3eceSIan Rogers        "MetricExpr": "(UOPS_DISPATCHED_PORT.PORT_2 + UOPS_DISPATCHED_PORT.PORT_3 - UOPS_DISPATCHED_PORT.PORT_4) / (2 * tma_info_core_core_clks)",
743115ae94cSIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
744115ae94cSIan Rogers        "MetricName": "tma_load_op_utilization",
745115ae94cSIan Rogers        "MetricThreshold": "tma_load_op_utilization > 0.6",
746115ae94cSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations. Sample with: UOPS_DISPATCHED.PORT_2_3",
747115ae94cSIan Rogers        "ScaleUnit": "100%"
748115ae94cSIan Rogers    },
749115ae94cSIan Rogers    {
750115ae94cSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU spent handling cache misses due to lock operations",
751115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
752*b27d3eceSIan Rogers        "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_thread_clks",
753115ae94cSIan Rogers        "MetricGroup": "Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_l1_bound_group",
754115ae94cSIan Rogers        "MetricName": "tma_lock_latency",
755115ae94cSIan Rogers        "MetricThreshold": "tma_lock_latency > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
756115ae94cSIan Rogers        "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",
757115ae94cSIan Rogers        "ScaleUnit": "100%"
758115ae94cSIan Rogers    },
759115ae94cSIan Rogers    {
760115ae94cSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Machine Clears",
761115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
762115ae94cSIan Rogers        "MetricExpr": "tma_bad_speculation - tma_branch_mispredicts",
763115ae94cSIan Rogers        "MetricGroup": "BadSpec;MachineClears;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueMC;tma_issueSyncxn",
764115ae94cSIan Rogers        "MetricName": "tma_machine_clears",
765115ae94cSIan Rogers        "MetricThreshold": "tma_machine_clears > 0.1 & tma_bad_speculation > 0.15",
766ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
767115ae94cSIan Rogers        "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",
768115ae94cSIan Rogers        "ScaleUnit": "100%"
769115ae94cSIan Rogers    },
770115ae94cSIan Rogers    {
771115ae94cSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles where the core's performance was likely hurt due to approaching bandwidth limits of external memory (DRAM)",
772*b27d3eceSIan Rogers        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, cpu@OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD\\,cmask\\=6@) / tma_info_thread_clks",
773115ae94cSIan Rogers        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueBW",
774115ae94cSIan Rogers        "MetricName": "tma_mem_bandwidth",
775115ae94cSIan Rogers        "MetricThreshold": "tma_mem_bandwidth > 0.2 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
776*b27d3eceSIan Rogers        "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_system_dram_bw_use, tma_sq_full",
777115ae94cSIan Rogers        "ScaleUnit": "100%"
778115ae94cSIan Rogers    },
779115ae94cSIan Rogers    {
780115ae94cSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory (DRAM)",
781*b27d3eceSIan Rogers        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD) / tma_info_thread_clks - tma_mem_bandwidth",
782115ae94cSIan Rogers        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueLat",
783115ae94cSIan Rogers        "MetricName": "tma_mem_latency",
784115ae94cSIan Rogers        "MetricThreshold": "tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
785115ae94cSIan Rogers        "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",
786115ae94cSIan Rogers        "ScaleUnit": "100%"
787115ae94cSIan Rogers    },
788115ae94cSIan Rogers    {
789115ae94cSIan Rogers        "BriefDescription": "This metric represents fraction of slots the Memory subsystem within the Backend was a bottleneck",
790115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
791*b27d3eceSIan Rogers        "MetricExpr": "(min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.STALLS_LDM_PENDING) + RESOURCE_STALLS.SB) / (min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.CYCLES_NO_EXECUTE) + UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC - (UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC if tma_info_thread_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",
792115ae94cSIan Rogers        "MetricGroup": "Backend;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
793115ae94cSIan Rogers        "MetricName": "tma_memory_bound",
794115ae94cSIan Rogers        "MetricThreshold": "tma_memory_bound > 0.2 & tma_backend_bound > 0.2",
795ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL2",
796115ae94cSIan Rogers        "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).",
797115ae94cSIan Rogers        "ScaleUnit": "100%"
798115ae94cSIan Rogers    },
799115ae94cSIan Rogers    {
800115ae94cSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit",
801*b27d3eceSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * IDQ.MS_UOPS / tma_info_thread_slots",
802115ae94cSIan Rogers        "MetricGroup": "MicroSeq;TopdownL3;tma_L3_group;tma_heavy_operations_group;tma_issueMC;tma_issueMS",
803115ae94cSIan Rogers        "MetricName": "tma_microcode_sequencer",
804115ae94cSIan Rogers        "MetricThreshold": "tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1",
805115ae94cSIan Rogers        "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",
806115ae94cSIan Rogers        "ScaleUnit": "100%"
807115ae94cSIan Rogers    },
808115ae94cSIan Rogers    {
809115ae94cSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to the MITE pipeline (the legacy decode pipeline)",
810*b27d3eceSIan Rogers        "MetricExpr": "(IDQ.ALL_MITE_CYCLES_ANY_UOPS - IDQ.ALL_MITE_CYCLES_4_UOPS) / tma_info_core_core_clks / 2",
811115ae94cSIan Rogers        "MetricGroup": "DSBmiss;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
812115ae94cSIan Rogers        "MetricName": "tma_mite",
813*b27d3eceSIan Rogers        "MetricThreshold": "tma_mite > 0.1 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_thread_ipc / 4 > 0.35)",
814115ae94cSIan Rogers        "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.",
815115ae94cSIan Rogers        "ScaleUnit": "100%"
816115ae94cSIan Rogers    },
817115ae94cSIan Rogers    {
818115ae94cSIan Rogers        "BriefDescription": "This metric estimates the fraction of cycles when the CPU was stalled due to switches of uop delivery to the Microcode Sequencer (MS)",
819*b27d3eceSIan Rogers        "MetricExpr": "3 * IDQ.MS_SWITCHES / tma_info_thread_clks",
820115ae94cSIan Rogers        "MetricGroup": "FetchLat;MicroSeq;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueMC;tma_issueMS;tma_issueMV;tma_issueSO",
821115ae94cSIan Rogers        "MetricName": "tma_ms_switches",
822115ae94cSIan Rogers        "MetricThreshold": "tma_ms_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
823115ae94cSIan Rogers        "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",
824115ae94cSIan Rogers        "ScaleUnit": "100%"
825115ae94cSIan Rogers    },
826115ae94cSIan Rogers    {
827115ae94cSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 0 ([SNB+] ALU; [HSW+] ALU and 2nd branch)",
828*b27d3eceSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_0 / tma_info_core_core_clks",
829115ae94cSIan Rogers        "MetricGroup": "Compute;TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
830115ae94cSIan Rogers        "MetricName": "tma_port_0",
831115ae94cSIan Rogers        "MetricThreshold": "tma_port_0 > 0.6",
832115ae94cSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 0 ([SNB+] ALU; [HSW+] ALU and 2nd branch). Sample with: UOPS_DISPATCHED_PORT.PORT_0. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_512b, tma_port_1, tma_port_5, tma_port_6, tma_ports_utilized_2",
833115ae94cSIan Rogers        "ScaleUnit": "100%"
834115ae94cSIan Rogers    },
835115ae94cSIan Rogers    {
836115ae94cSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU)",
837*b27d3eceSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_1 / tma_info_core_core_clks",
838115ae94cSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
839115ae94cSIan Rogers        "MetricName": "tma_port_1",
840115ae94cSIan Rogers        "MetricThreshold": "tma_port_1 > 0.6",
841115ae94cSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU). Sample with: UOPS_DISPATCHED_PORT.PORT_1. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_512b, tma_port_0, tma_port_5, tma_port_6, tma_ports_utilized_2",
842115ae94cSIan Rogers        "ScaleUnit": "100%"
843115ae94cSIan Rogers    },
844115ae94cSIan Rogers    {
845115ae94cSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 2 ([SNB+]Loads and Store-address; [ICL+] Loads)",
846*b27d3eceSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_2 / tma_info_core_core_clks",
847115ae94cSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
848115ae94cSIan Rogers        "MetricName": "tma_port_2",
849115ae94cSIan Rogers        "MetricThreshold": "tma_port_2 > 0.6",
850115ae94cSIan Rogers        "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",
851115ae94cSIan Rogers        "ScaleUnit": "100%"
852115ae94cSIan Rogers    },
853115ae94cSIan Rogers    {
854115ae94cSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 3 ([SNB+]Loads and Store-address; [ICL+] Loads)",
855*b27d3eceSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_3 / tma_info_core_core_clks",
856115ae94cSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
857115ae94cSIan Rogers        "MetricName": "tma_port_3",
858115ae94cSIan Rogers        "MetricThreshold": "tma_port_3 > 0.6",
859115ae94cSIan Rogers        "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",
860115ae94cSIan Rogers        "ScaleUnit": "100%"
861115ae94cSIan Rogers    },
862115ae94cSIan Rogers    {
863115ae94cSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 4 (Store-data)",
864115ae94cSIan Rogers        "MetricExpr": "tma_store_op_utilization",
865115ae94cSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_issueSpSt;tma_store_op_utilization_group",
866115ae94cSIan Rogers        "MetricName": "tma_port_4",
867115ae94cSIan Rogers        "MetricThreshold": "tma_port_4 > 0.6",
868115ae94cSIan Rogers        "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",
869115ae94cSIan Rogers        "ScaleUnit": "100%"
870115ae94cSIan Rogers    },
871115ae94cSIan Rogers    {
872115ae94cSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 5 ([SNB+] Branches and ALU; [HSW+] ALU)",
873*b27d3eceSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_5 / tma_info_core_core_clks",
874115ae94cSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
875115ae94cSIan Rogers        "MetricName": "tma_port_5",
876115ae94cSIan Rogers        "MetricThreshold": "tma_port_5 > 0.6",
877115ae94cSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 5 ([SNB+] Branches and ALU; [HSW+] ALU). Sample with: UOPS_DISPATCHED.PORT_5. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_6, tma_ports_utilized_2",
878115ae94cSIan Rogers        "ScaleUnit": "100%"
879115ae94cSIan Rogers    },
880115ae94cSIan Rogers    {
881115ae94cSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU performance was potentially limited due to Core computation issues (non divider-related)",
882115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
883*b27d3eceSIan Rogers        "MetricExpr": "(min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.CYCLES_NO_EXECUTE) + UOPS_EXECUTED.CYCLES_GE_1_UOP_EXEC - (UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC if tma_info_thread_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 - min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.STALLS_LDM_PENDING)) / tma_info_thread_clks",
884115ae94cSIan Rogers        "MetricGroup": "PortsUtil;TopdownL3;tma_L3_group;tma_core_bound_group",
885115ae94cSIan Rogers        "MetricName": "tma_ports_utilization",
886115ae94cSIan Rogers        "MetricThreshold": "tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
887115ae94cSIan Rogers        "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.",
888115ae94cSIan Rogers        "ScaleUnit": "100%"
889115ae94cSIan Rogers    },
890115ae94cSIan Rogers    {
891115ae94cSIan Rogers        "BriefDescription": "This metric represents fraction of cycles CPU executed no uops on any execution port (Logical Processor cycles since ICL, Physical Core cycles otherwise)",
892*b27d3eceSIan Rogers        "MetricExpr": "(cpu@UOPS_EXECUTED.CORE\\,inv\\,cmask\\=1@ / 2 if #SMT_on else (min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.CYCLES_NO_EXECUTE) - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0)) / tma_info_core_core_clks)",
893115ae94cSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
894115ae94cSIan Rogers        "MetricName": "tma_ports_utilized_0",
895115ae94cSIan Rogers        "MetricThreshold": "tma_ports_utilized_0 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
896115ae94cSIan Rogers        "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.",
897115ae94cSIan Rogers        "ScaleUnit": "100%"
898115ae94cSIan Rogers    },
899115ae94cSIan Rogers    {
900115ae94cSIan Rogers        "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)",
901*b27d3eceSIan Rogers        "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_core_clks)",
902115ae94cSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issueL1;tma_ports_utilization_group",
903115ae94cSIan Rogers        "MetricName": "tma_ports_utilized_1",
904115ae94cSIan Rogers        "MetricThreshold": "tma_ports_utilized_1 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
905115ae94cSIan Rogers        "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",
906115ae94cSIan Rogers        "ScaleUnit": "100%"
907115ae94cSIan Rogers    },
908115ae94cSIan Rogers    {
909115ae94cSIan Rogers        "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)",
910*b27d3eceSIan Rogers        "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_core_clks)",
911115ae94cSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issue2P;tma_ports_utilization_group",
912115ae94cSIan Rogers        "MetricName": "tma_ports_utilized_2",
913115ae94cSIan Rogers        "MetricThreshold": "tma_ports_utilized_2 > 0.15 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
914115ae94cSIan Rogers        "PublicDescription": "This metric represents fraction of cycles CPU executed total of 2 uops per cycle on all execution ports (Logical Processor cycles since ICL, Physical Core cycles otherwise).  Loop Vectorization -most compilers feature auto-Vectorization options today- reduces pressure on the execution ports as multiple elements are calculated with same uop. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_port_6",
915115ae94cSIan Rogers        "ScaleUnit": "100%"
916115ae94cSIan Rogers    },
917115ae94cSIan Rogers    {
918115ae94cSIan Rogers        "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).",
919*b27d3eceSIan Rogers        "MetricExpr": "(cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@ / 2 if #SMT_on else UOPS_EXECUTED.CYCLES_GE_3_UOPS_EXEC) / tma_info_core_core_clks",
920115ae94cSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
921115ae94cSIan Rogers        "MetricName": "tma_ports_utilized_3m",
922115ae94cSIan Rogers        "MetricThreshold": "tma_ports_utilized_3m > 0.7 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
923115ae94cSIan Rogers        "ScaleUnit": "100%"
924115ae94cSIan Rogers    },
925115ae94cSIan Rogers    {
926115ae94cSIan Rogers        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired",
927*b27d3eceSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / tma_info_thread_slots",
928115ae94cSIan Rogers        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
929115ae94cSIan Rogers        "MetricName": "tma_retiring",
930115ae94cSIan Rogers        "MetricThreshold": "tma_retiring > 0.7 | tma_heavy_operations > 0.1",
931ccc66c60SIan Rogers        "MetricgroupNoGroup": "TopdownL1",
932115ae94cSIan Rogers        "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",
933115ae94cSIan Rogers        "ScaleUnit": "100%"
934115ae94cSIan Rogers    },
935115ae94cSIan Rogers    {
936115ae94cSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary",
937115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
938*b27d3eceSIan Rogers        "MetricExpr": "13 * LD_BLOCKS.NO_SR / tma_info_thread_clks",
939115ae94cSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
940115ae94cSIan Rogers        "MetricName": "tma_split_loads",
941115ae94cSIan Rogers        "MetricThreshold": "tma_split_loads > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
942115ae94cSIan Rogers        "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",
943115ae94cSIan Rogers        "ScaleUnit": "100%"
944115ae94cSIan Rogers    },
945115ae94cSIan Rogers    {
946115ae94cSIan Rogers        "BriefDescription": "This metric represents rate of split store accesses",
947*b27d3eceSIan Rogers        "MetricExpr": "2 * MEM_UOPS_RETIRED.SPLIT_STORES / tma_info_core_core_clks",
948115ae94cSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_issueSpSt;tma_store_bound_group",
949115ae94cSIan Rogers        "MetricName": "tma_split_stores",
950115ae94cSIan Rogers        "MetricThreshold": "tma_split_stores > 0.2 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
951115ae94cSIan Rogers        "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",
952115ae94cSIan Rogers        "ScaleUnit": "100%"
953115ae94cSIan Rogers    },
954115ae94cSIan Rogers    {
955115ae94cSIan Rogers        "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)",
956*b27d3eceSIan Rogers        "MetricExpr": "(OFFCORE_REQUESTS_BUFFER.SQ_FULL / 2 if #SMT_on else OFFCORE_REQUESTS_BUFFER.SQ_FULL) / tma_info_core_core_clks",
957115ae94cSIan Rogers        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_issueBW;tma_l3_bound_group",
958115ae94cSIan Rogers        "MetricName": "tma_sq_full",
959115ae94cSIan Rogers        "MetricThreshold": "tma_sq_full > 0.3 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
960*b27d3eceSIan Rogers        "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_system_dram_bw_use, tma_mem_bandwidth",
961115ae94cSIan Rogers        "ScaleUnit": "100%"
962115ae94cSIan Rogers    },
963115ae94cSIan Rogers    {
964115ae94cSIan Rogers        "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",
965*b27d3eceSIan Rogers        "MetricExpr": "RESOURCE_STALLS.SB / tma_info_thread_clks",
966115ae94cSIan Rogers        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
967115ae94cSIan Rogers        "MetricName": "tma_store_bound",
968115ae94cSIan Rogers        "MetricThreshold": "tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
969115ae94cSIan Rogers        "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",
970115ae94cSIan Rogers        "ScaleUnit": "100%"
971115ae94cSIan Rogers    },
972115ae94cSIan Rogers    {
973115ae94cSIan Rogers        "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",
974*b27d3eceSIan Rogers        "MetricExpr": "13 * LD_BLOCKS.STORE_FORWARD / tma_info_thread_clks",
975115ae94cSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
976115ae94cSIan Rogers        "MetricName": "tma_store_fwd_blk",
977115ae94cSIan Rogers        "MetricThreshold": "tma_store_fwd_blk > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
978115ae94cSIan Rogers        "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.",
979115ae94cSIan Rogers        "ScaleUnit": "100%"
980115ae94cSIan Rogers    },
981115ae94cSIan Rogers    {
982115ae94cSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU spent handling L1D store misses",
983115ae94cSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
984*b27d3eceSIan Rogers        "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_thread_clks",
985115ae94cSIan Rogers        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_issueSL;tma_store_bound_group",
986115ae94cSIan Rogers        "MetricName": "tma_store_latency",
987115ae94cSIan Rogers        "MetricThreshold": "tma_store_latency > 0.1 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
988115ae94cSIan Rogers        "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",
989115ae94cSIan Rogers        "ScaleUnit": "100%"
990115ae94cSIan Rogers    },
991115ae94cSIan Rogers    {
992115ae94cSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Store operations",
993*b27d3eceSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_4 / tma_info_core_core_clks",
994115ae94cSIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
995115ae94cSIan Rogers        "MetricName": "tma_store_op_utilization",
996115ae94cSIan Rogers        "MetricThreshold": "tma_store_op_utilization > 0.6",
997115ae94cSIan Rogers        "ScaleUnit": "100%"
998115ae94cSIan Rogers    },
999115ae94cSIan Rogers    {
1000115ae94cSIan Rogers        "BriefDescription": "This metric serves as an approximation of legacy x87 usage",
1001115ae94cSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS * FP_COMP_OPS_EXE.X87 / UOPS_EXECUTED.THREAD",
1002115ae94cSIan Rogers        "MetricGroup": "Compute;TopdownL4;tma_L4_group;tma_fp_arith_group",
1003115ae94cSIan Rogers        "MetricName": "tma_x87_use",
1004115ae94cSIan Rogers        "MetricThreshold": "tma_x87_use > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)",
1005115ae94cSIan Rogers        "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.",
1006115ae94cSIan Rogers        "ScaleUnit": "100%"
10078853d2deSAndi Kleen    }
10088853d2deSAndi Kleen]
1009