15e49f732SAndi Kleen[
25e49f732SAndi Kleen    {
3*05dd42feSIan Rogers        "BriefDescription": "C2 residency percent per package",
4*05dd42feSIan Rogers        "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC",
55e49f732SAndi Kleen        "MetricGroup": "Power",
6*05dd42feSIan Rogers        "MetricName": "C2_Pkg_Residency",
7667433c4SIan Rogers        "ScaleUnit": "100%"
8667433c4SIan Rogers    },
9667433c4SIan Rogers    {
10667433c4SIan Rogers        "BriefDescription": "C3 residency percent per core",
11667433c4SIan Rogers        "MetricExpr": "cstate_core@c3\\-residency@ / TSC",
12667433c4SIan Rogers        "MetricGroup": "Power",
13667433c4SIan Rogers        "MetricName": "C3_Core_Residency",
14667433c4SIan Rogers        "ScaleUnit": "100%"
15667433c4SIan Rogers    },
16667433c4SIan Rogers    {
17667433c4SIan Rogers        "BriefDescription": "C3 residency percent per package",
18667433c4SIan Rogers        "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC",
19667433c4SIan Rogers        "MetricGroup": "Power",
20667433c4SIan Rogers        "MetricName": "C3_Pkg_Residency",
21667433c4SIan Rogers        "ScaleUnit": "100%"
22667433c4SIan Rogers    },
23667433c4SIan Rogers    {
24*05dd42feSIan Rogers        "BriefDescription": "C6 residency percent per core",
25*05dd42feSIan Rogers        "MetricExpr": "cstate_core@c6\\-residency@ / TSC",
26*05dd42feSIan Rogers        "MetricGroup": "Power",
27*05dd42feSIan Rogers        "MetricName": "C6_Core_Residency",
28*05dd42feSIan Rogers        "ScaleUnit": "100%"
29*05dd42feSIan Rogers    },
30*05dd42feSIan Rogers    {
31667433c4SIan Rogers        "BriefDescription": "C6 residency percent per package",
32667433c4SIan Rogers        "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC",
33667433c4SIan Rogers        "MetricGroup": "Power",
34667433c4SIan Rogers        "MetricName": "C6_Pkg_Residency",
35667433c4SIan Rogers        "ScaleUnit": "100%"
36667433c4SIan Rogers    },
37667433c4SIan Rogers    {
38*05dd42feSIan Rogers        "BriefDescription": "C7 residency percent per core",
39*05dd42feSIan Rogers        "MetricExpr": "cstate_core@c7\\-residency@ / TSC",
40*05dd42feSIan Rogers        "MetricGroup": "Power",
41*05dd42feSIan Rogers        "MetricName": "C7_Core_Residency",
42*05dd42feSIan Rogers        "ScaleUnit": "100%"
43*05dd42feSIan Rogers    },
44*05dd42feSIan Rogers    {
45667433c4SIan Rogers        "BriefDescription": "C7 residency percent per package",
46667433c4SIan Rogers        "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC",
47667433c4SIan Rogers        "MetricGroup": "Power",
48667433c4SIan Rogers        "MetricName": "C7_Pkg_Residency",
49667433c4SIan Rogers        "ScaleUnit": "100%"
50*05dd42feSIan Rogers    },
51*05dd42feSIan Rogers    {
52*05dd42feSIan Rogers        "BriefDescription": "Uncore frequency per die [GHZ]",
53*05dd42feSIan Rogers        "MetricExpr": "tma_info_socket_clks / #num_dies / duration_time / 1e9",
54*05dd42feSIan Rogers        "MetricGroup": "SoC",
55*05dd42feSIan Rogers        "MetricName": "UNCORE_FREQ"
56*05dd42feSIan Rogers    },
57*05dd42feSIan Rogers    {
58*05dd42feSIan Rogers        "BriefDescription": "Percentage of cycles spent in System Management Interrupts.",
59*05dd42feSIan Rogers        "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)",
60*05dd42feSIan Rogers        "MetricGroup": "smi",
61*05dd42feSIan Rogers        "MetricName": "smi_cycles",
62*05dd42feSIan Rogers        "MetricThreshold": "smi_cycles > 0.1",
63*05dd42feSIan Rogers        "ScaleUnit": "100%"
64*05dd42feSIan Rogers    },
65*05dd42feSIan Rogers    {
66*05dd42feSIan Rogers        "BriefDescription": "Number of SMI interrupts.",
67*05dd42feSIan Rogers        "MetricExpr": "msr@smi@",
68*05dd42feSIan Rogers        "MetricGroup": "smi",
69*05dd42feSIan Rogers        "MetricName": "smi_num",
70*05dd42feSIan Rogers        "ScaleUnit": "1SMI#"
71*05dd42feSIan Rogers    },
72*05dd42feSIan Rogers    {
73*05dd42feSIan Rogers        "BriefDescription": "This metric estimates how often memory load accesses were aliased by preceding stores (in program order) with a 4K address offset",
74*05dd42feSIan Rogers        "MetricExpr": "LD_BLOCKS_PARTIAL.ADDRESS_ALIAS / tma_info_clks",
75*05dd42feSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
76*05dd42feSIan Rogers        "MetricName": "tma_4k_aliasing",
77*05dd42feSIan Rogers        "MetricThreshold": "tma_4k_aliasing > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
78*05dd42feSIan 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).",
79*05dd42feSIan Rogers        "ScaleUnit": "100%"
80*05dd42feSIan Rogers    },
81*05dd42feSIan Rogers    {
82*05dd42feSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution ports for ALU operations.",
83*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
84*05dd42feSIan Rogers        "MetricExpr": "(UOPS_DISPATCHED_PORT.PORT_0 + UOPS_DISPATCHED_PORT.PORT_1 + UOPS_DISPATCHED_PORT.PORT_5 + UOPS_DISPATCHED_PORT.PORT_6) / tma_info_slots",
85*05dd42feSIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
86*05dd42feSIan Rogers        "MetricName": "tma_alu_op_utilization",
87*05dd42feSIan Rogers        "MetricThreshold": "tma_alu_op_utilization > 0.6",
88*05dd42feSIan Rogers        "ScaleUnit": "100%"
89*05dd42feSIan Rogers    },
90*05dd42feSIan Rogers    {
91*05dd42feSIan Rogers        "BriefDescription": "This metric estimates fraction of slots the CPU retired uops delivered by the Microcode_Sequencer as a result of Assists",
92*05dd42feSIan Rogers        "MetricExpr": "100 * OTHER_ASSISTS.ANY_WB_ASSIST / tma_info_slots",
93*05dd42feSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
94*05dd42feSIan Rogers        "MetricName": "tma_assists",
95*05dd42feSIan Rogers        "MetricThreshold": "tma_assists > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
96*05dd42feSIan 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",
97*05dd42feSIan Rogers        "ScaleUnit": "100%"
98*05dd42feSIan Rogers    },
99*05dd42feSIan Rogers    {
100*05dd42feSIan 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",
101*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
102*05dd42feSIan Rogers        "MetricExpr": "1 - (tma_frontend_bound + tma_bad_speculation + tma_retiring)",
103*05dd42feSIan Rogers        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
104*05dd42feSIan Rogers        "MetricName": "tma_backend_bound",
105*05dd42feSIan Rogers        "MetricThreshold": "tma_backend_bound > 0.2",
106*05dd42feSIan 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.",
107*05dd42feSIan Rogers        "ScaleUnit": "100%"
108*05dd42feSIan Rogers    },
109*05dd42feSIan Rogers    {
110*05dd42feSIan Rogers        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations",
111*05dd42feSIan 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_slots",
112*05dd42feSIan Rogers        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
113*05dd42feSIan Rogers        "MetricName": "tma_bad_speculation",
114*05dd42feSIan Rogers        "MetricThreshold": "tma_bad_speculation > 0.15",
115*05dd42feSIan 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.",
116*05dd42feSIan Rogers        "ScaleUnit": "100%"
117*05dd42feSIan Rogers    },
118*05dd42feSIan Rogers    {
119*05dd42feSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction",
120*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
121*05dd42feSIan Rogers        "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT) * tma_bad_speculation",
122*05dd42feSIan Rogers        "MetricGroup": "BadSpec;BrMispredicts;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueBM",
123*05dd42feSIan Rogers        "MetricName": "tma_branch_mispredicts",
124*05dd42feSIan Rogers        "MetricThreshold": "tma_branch_mispredicts > 0.1 & tma_bad_speculation > 0.15",
125*05dd42feSIan 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_branch_misprediction_cost, tma_mispredicts_resteers",
126*05dd42feSIan Rogers        "ScaleUnit": "100%"
127*05dd42feSIan Rogers    },
128*05dd42feSIan Rogers    {
129*05dd42feSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers",
130*05dd42feSIan Rogers        "MetricExpr": "12 * (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY) / tma_info_clks",
131*05dd42feSIan Rogers        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group",
132*05dd42feSIan Rogers        "MetricName": "tma_branch_resteers",
133*05dd42feSIan Rogers        "MetricThreshold": "tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
134*05dd42feSIan 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",
135*05dd42feSIan Rogers        "ScaleUnit": "100%"
136*05dd42feSIan Rogers    },
137*05dd42feSIan Rogers    {
138*05dd42feSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU retired uops originated from CISC (complex instruction set computer) instruction",
139*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
140*05dd42feSIan Rogers        "MetricExpr": "max(0, tma_microcode_sequencer - tma_assists)",
141*05dd42feSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_microcode_sequencer_group",
142*05dd42feSIan Rogers        "MetricName": "tma_cisc",
143*05dd42feSIan Rogers        "MetricThreshold": "tma_cisc > 0.1 & (tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1)",
144*05dd42feSIan 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.",
145*05dd42feSIan Rogers        "ScaleUnit": "100%"
146*05dd42feSIan Rogers    },
147*05dd42feSIan Rogers    {
148*05dd42feSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to contested accesses",
149*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
150*05dd42feSIan Rogers        "MetricExpr": "(60 * (MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) + 43 * (MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD)))) / tma_info_clks",
151*05dd42feSIan Rogers        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
152*05dd42feSIan Rogers        "MetricName": "tma_contested_accesses",
153*05dd42feSIan Rogers        "MetricThreshold": "tma_contested_accesses > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
154*05dd42feSIan 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",
155*05dd42feSIan Rogers        "ScaleUnit": "100%"
156*05dd42feSIan Rogers    },
157*05dd42feSIan Rogers    {
158*05dd42feSIan Rogers        "BriefDescription": "This metric represents fraction of slots where Core non-memory issues were of a bottleneck",
159*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
160*05dd42feSIan Rogers        "MetricExpr": "tma_backend_bound - tma_memory_bound",
161*05dd42feSIan Rogers        "MetricGroup": "Backend;Compute;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
162*05dd42feSIan Rogers        "MetricName": "tma_core_bound",
163*05dd42feSIan Rogers        "MetricThreshold": "tma_core_bound > 0.1 & tma_backend_bound > 0.2",
164*05dd42feSIan 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).",
165*05dd42feSIan Rogers        "ScaleUnit": "100%"
166*05dd42feSIan Rogers    },
167*05dd42feSIan Rogers    {
168*05dd42feSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling synchronizations due to data-sharing accesses",
169*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
170*05dd42feSIan Rogers        "MetricExpr": "43 * (MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) / tma_info_clks",
171*05dd42feSIan Rogers        "MetricGroup": "Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_l3_bound_group",
172*05dd42feSIan Rogers        "MetricName": "tma_data_sharing",
173*05dd42feSIan Rogers        "MetricThreshold": "tma_data_sharing > 0.05 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
174*05dd42feSIan 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",
175*05dd42feSIan Rogers        "ScaleUnit": "100%"
176*05dd42feSIan Rogers    },
177*05dd42feSIan Rogers    {
178*05dd42feSIan Rogers        "BriefDescription": "This metric represents fraction of cycles where the Divider unit was active",
179*05dd42feSIan Rogers        "MetricExpr": "10 * ARITH.DIVIDER_UOPS / tma_info_core_clks",
180*05dd42feSIan Rogers        "MetricGroup": "TopdownL3;tma_L3_group;tma_core_bound_group",
181*05dd42feSIan Rogers        "MetricName": "tma_divider",
182*05dd42feSIan Rogers        "MetricThreshold": "tma_divider > 0.2 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
183*05dd42feSIan 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",
184*05dd42feSIan Rogers        "ScaleUnit": "100%"
185*05dd42feSIan Rogers    },
186*05dd42feSIan Rogers    {
187*05dd42feSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads",
188*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_SMT",
189*05dd42feSIan Rogers        "MetricExpr": "(1 - MEM_LOAD_UOPS_RETIRED.L3_HIT / (MEM_LOAD_UOPS_RETIRED.L3_HIT + 7 * MEM_LOAD_UOPS_RETIRED.L3_MISS)) * CYCLE_ACTIVITY.STALLS_L2_PENDING / tma_info_clks",
190*05dd42feSIan Rogers        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
191*05dd42feSIan Rogers        "MetricName": "tma_dram_bound",
192*05dd42feSIan Rogers        "MetricThreshold": "tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
193*05dd42feSIan 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",
194*05dd42feSIan Rogers        "ScaleUnit": "100%"
195*05dd42feSIan Rogers    },
196*05dd42feSIan Rogers    {
197*05dd42feSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to DSB (decoded uop cache) fetch pipeline",
198*05dd42feSIan Rogers        "MetricExpr": "(IDQ.ALL_DSB_CYCLES_ANY_UOPS - IDQ.ALL_DSB_CYCLES_4_UOPS) / tma_info_core_clks / 2",
199*05dd42feSIan Rogers        "MetricGroup": "DSB;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
200*05dd42feSIan Rogers        "MetricName": "tma_dsb",
201*05dd42feSIan Rogers        "MetricThreshold": "tma_dsb > 0.15 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35)",
202*05dd42feSIan 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.",
203*05dd42feSIan Rogers        "ScaleUnit": "100%"
204*05dd42feSIan Rogers    },
205*05dd42feSIan Rogers    {
206*05dd42feSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines",
207*05dd42feSIan Rogers        "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / tma_info_clks",
208*05dd42feSIan Rogers        "MetricGroup": "DSBmiss;FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
209*05dd42feSIan Rogers        "MetricName": "tma_dsb_switches",
210*05dd42feSIan Rogers        "MetricThreshold": "tma_dsb_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
211*05dd42feSIan 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_dsb_coverage, tma_info_iptb, tma_lcp",
212*05dd42feSIan Rogers        "ScaleUnit": "100%"
213*05dd42feSIan Rogers    },
214*05dd42feSIan Rogers    {
215*05dd42feSIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses",
216*05dd42feSIan Rogers        "MetricExpr": "(8 * DTLB_LOAD_MISSES.STLB_HIT + DTLB_LOAD_MISSES.WALK_DURATION) / tma_info_clks",
217*05dd42feSIan Rogers        "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_l1_bound_group",
218*05dd42feSIan Rogers        "MetricName": "tma_dtlb_load",
219*05dd42feSIan Rogers        "MetricThreshold": "tma_dtlb_load > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
220*05dd42feSIan 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",
221*05dd42feSIan Rogers        "ScaleUnit": "100%"
222*05dd42feSIan Rogers    },
223*05dd42feSIan Rogers    {
224*05dd42feSIan Rogers        "BriefDescription": "This metric roughly estimates the fraction of cycles spent handling first-level data TLB store misses",
225*05dd42feSIan Rogers        "MetricExpr": "(8 * DTLB_STORE_MISSES.STLB_HIT + DTLB_STORE_MISSES.WALK_DURATION) / tma_info_clks",
226*05dd42feSIan Rogers        "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_store_bound_group",
227*05dd42feSIan Rogers        "MetricName": "tma_dtlb_store",
228*05dd42feSIan Rogers        "MetricThreshold": "tma_dtlb_store > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
229*05dd42feSIan 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",
230*05dd42feSIan Rogers        "ScaleUnit": "100%"
231*05dd42feSIan Rogers    },
232*05dd42feSIan Rogers    {
233*05dd42feSIan Rogers        "BriefDescription": "This metric roughly estimates how often CPU was handling synchronizations due to False Sharing",
234*05dd42feSIan Rogers        "MetricExpr": "(200 * OFFCORE_RESPONSE.DEMAND_RFO.LLC_MISS.REMOTE_HITM + 60 * OFFCORE_RESPONSE.DEMAND_RFO.LLC_HIT.HITM_OTHER_CORE) / tma_info_clks",
235*05dd42feSIan Rogers        "MetricGroup": "DataSharing;Offcore;Snoop;TopdownL4;tma_L4_group;tma_issueSyncxn;tma_store_bound_group",
236*05dd42feSIan Rogers        "MetricName": "tma_false_sharing",
237*05dd42feSIan Rogers        "MetricThreshold": "tma_false_sharing > 0.05 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
238*05dd42feSIan 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",
239*05dd42feSIan Rogers        "ScaleUnit": "100%"
240*05dd42feSIan Rogers    },
241*05dd42feSIan Rogers    {
242*05dd42feSIan Rogers        "BriefDescription": "This metric does a *rough estimation* of how often L1D Fill Buffer unavailability limited additional L1D miss memory access requests to proceed",
243*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
244*05dd42feSIan Rogers        "MetricExpr": "tma_info_load_miss_real_latency * cpu@L1D_PEND_MISS.REQUEST_FB_FULL\\,cmask\\=1@ / tma_info_clks",
245*05dd42feSIan Rogers        "MetricGroup": "MemoryBW;TopdownL4;tma_L4_group;tma_issueBW;tma_issueSL;tma_issueSmSt;tma_l1_bound_group",
246*05dd42feSIan Rogers        "MetricName": "tma_fb_full",
247*05dd42feSIan Rogers        "MetricThreshold": "tma_fb_full > 0.3",
248*05dd42feSIan 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_dram_bw_use, tma_mem_bandwidth, tma_sq_full, tma_store_latency, tma_streaming_stores",
249*05dd42feSIan Rogers        "ScaleUnit": "100%"
250*05dd42feSIan Rogers    },
251*05dd42feSIan Rogers    {
252*05dd42feSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues",
253*05dd42feSIan Rogers        "MetricExpr": "tma_frontend_bound - tma_fetch_latency",
254*05dd42feSIan Rogers        "MetricGroup": "FetchBW;Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group;tma_issueFB",
255*05dd42feSIan Rogers        "MetricName": "tma_fetch_bandwidth",
256*05dd42feSIan Rogers        "MetricThreshold": "tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35",
257*05dd42feSIan 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_dsb_coverage, tma_info_iptb, tma_lcp",
258*05dd42feSIan Rogers        "ScaleUnit": "100%"
259*05dd42feSIan Rogers    },
260*05dd42feSIan Rogers    {
261*05dd42feSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues",
262*05dd42feSIan Rogers        "MetricExpr": "4 * min(CPU_CLK_UNHALTED.THREAD, IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE) / tma_info_slots",
263*05dd42feSIan Rogers        "MetricGroup": "Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group",
264*05dd42feSIan Rogers        "MetricName": "tma_fetch_latency",
265*05dd42feSIan Rogers        "MetricThreshold": "tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15",
266*05dd42feSIan 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",
267*05dd42feSIan Rogers        "ScaleUnit": "100%"
268*05dd42feSIan Rogers    },
269*05dd42feSIan Rogers    {
270*05dd42feSIan Rogers        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend",
271*05dd42feSIan Rogers        "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / tma_info_slots",
272*05dd42feSIan Rogers        "MetricGroup": "PGO;TmaL1;TopdownL1;tma_L1_group",
273*05dd42feSIan Rogers        "MetricName": "tma_frontend_bound",
274*05dd42feSIan Rogers        "MetricThreshold": "tma_frontend_bound > 0.15",
275*05dd42feSIan 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.",
276*05dd42feSIan Rogers        "ScaleUnit": "100%"
277*05dd42feSIan Rogers    },
278*05dd42feSIan Rogers    {
279*05dd42feSIan 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",
280*05dd42feSIan Rogers        "MetricExpr": "tma_microcode_sequencer",
281*05dd42feSIan Rogers        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
282*05dd42feSIan Rogers        "MetricName": "tma_heavy_operations",
283*05dd42feSIan Rogers        "MetricThreshold": "tma_heavy_operations > 0.1",
284*05dd42feSIan 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.",
285*05dd42feSIan Rogers        "ScaleUnit": "100%"
286*05dd42feSIan Rogers    },
287*05dd42feSIan Rogers    {
288*05dd42feSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to instruction cache misses.",
289*05dd42feSIan Rogers        "MetricExpr": "ICACHE.IFDATA_STALL / tma_info_clks",
290*05dd42feSIan Rogers        "MetricGroup": "BigFoot;FetchLat;IcMiss;TopdownL3;tma_L3_group;tma_fetch_latency_group",
291*05dd42feSIan Rogers        "MetricName": "tma_icache_misses",
292*05dd42feSIan Rogers        "MetricThreshold": "tma_icache_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
293*05dd42feSIan Rogers        "ScaleUnit": "100%"
294*05dd42feSIan Rogers    },
295*05dd42feSIan Rogers    {
296*05dd42feSIan Rogers        "BriefDescription": "Measured Average Frequency for unhalted processors [GHz]",
297*05dd42feSIan Rogers        "MetricExpr": "tma_info_turbo_utilization * TSC / 1e9 / duration_time",
298*05dd42feSIan Rogers        "MetricGroup": "Power;Summary",
299*05dd42feSIan Rogers        "MetricName": "tma_info_average_frequency"
300*05dd42feSIan Rogers    },
301*05dd42feSIan Rogers    {
302*05dd42feSIan Rogers        "BriefDescription": "Branch instructions per taken branch.",
303*05dd42feSIan Rogers        "MetricExpr": "BR_INST_RETIRED.ALL_BRANCHES / BR_INST_RETIRED.NEAR_TAKEN",
304*05dd42feSIan Rogers        "MetricGroup": "Branches;Fed;PGO",
305*05dd42feSIan Rogers        "MetricName": "tma_info_bptkbranch"
306*05dd42feSIan Rogers    },
307*05dd42feSIan Rogers    {
308*05dd42feSIan Rogers        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
309*05dd42feSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
310*05dd42feSIan Rogers        "MetricGroup": "Pipeline",
311*05dd42feSIan Rogers        "MetricName": "tma_info_clks"
312*05dd42feSIan Rogers    },
313*05dd42feSIan Rogers    {
314*05dd42feSIan Rogers        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
315*05dd42feSIan 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_clks))",
316*05dd42feSIan Rogers        "MetricGroup": "SMT",
317*05dd42feSIan Rogers        "MetricName": "tma_info_core_clks"
318*05dd42feSIan Rogers    },
319*05dd42feSIan Rogers    {
320*05dd42feSIan Rogers        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
321*05dd42feSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / tma_info_core_clks",
322*05dd42feSIan Rogers        "MetricGroup": "Ret;SMT;TmaL1;tma_L1_group",
323*05dd42feSIan Rogers        "MetricName": "tma_info_coreipc"
324*05dd42feSIan Rogers    },
325*05dd42feSIan Rogers    {
326*05dd42feSIan Rogers        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
327*05dd42feSIan Rogers        "MetricExpr": "1 / tma_info_ipc",
328*05dd42feSIan Rogers        "MetricGroup": "Mem;Pipeline",
329*05dd42feSIan Rogers        "MetricName": "tma_info_cpi"
330*05dd42feSIan Rogers    },
331*05dd42feSIan Rogers    {
332*05dd42feSIan Rogers        "BriefDescription": "Average CPU Utilization",
333*05dd42feSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / TSC",
334*05dd42feSIan Rogers        "MetricGroup": "HPC;Summary",
335*05dd42feSIan Rogers        "MetricName": "tma_info_cpu_utilization"
336*05dd42feSIan Rogers    },
337*05dd42feSIan Rogers    {
338*05dd42feSIan Rogers        "BriefDescription": "Average Parallel L2 cache miss data reads",
339*05dd42feSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD",
340*05dd42feSIan Rogers        "MetricGroup": "Memory_BW;Offcore",
341*05dd42feSIan Rogers        "MetricName": "tma_info_data_l2_mlp"
342*05dd42feSIan Rogers    },
343*05dd42feSIan Rogers    {
344*05dd42feSIan Rogers        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
345*05dd42feSIan Rogers        "MetricExpr": "64 * (UNC_M_CAS_COUNT.RD + UNC_M_CAS_COUNT.WR) / 1e9 / duration_time",
346*05dd42feSIan Rogers        "MetricGroup": "HPC;Mem;MemoryBW;SoC;tma_issueBW",
347*05dd42feSIan Rogers        "MetricName": "tma_info_dram_bw_use",
348*05dd42feSIan Rogers        "PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_fb_full, tma_mem_bandwidth, tma_sq_full"
349*05dd42feSIan Rogers    },
350*05dd42feSIan Rogers    {
351*05dd42feSIan Rogers        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
352*05dd42feSIan Rogers        "MetricExpr": "IDQ.DSB_UOPS / (IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)",
353*05dd42feSIan Rogers        "MetricGroup": "DSB;Fed;FetchBW;tma_issueFB",
354*05dd42feSIan Rogers        "MetricName": "tma_info_dsb_coverage",
355*05dd42feSIan Rogers        "MetricThreshold": "tma_info_dsb_coverage < 0.7 & tma_info_ipc / 4 > 0.35",
356*05dd42feSIan 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_iptb, tma_lcp"
357*05dd42feSIan Rogers    },
358*05dd42feSIan Rogers    {
359*05dd42feSIan Rogers        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-core",
360*05dd42feSIan Rogers        "MetricExpr": "(UOPS_EXECUTED.CORE / 2 / (cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ / 2 if #SMT_on else cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@) if #SMT_on else UOPS_EXECUTED.CORE / (cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ / 2 if #SMT_on else cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@))",
361*05dd42feSIan Rogers        "MetricGroup": "Backend;Cor;Pipeline;PortsUtil",
362*05dd42feSIan Rogers        "MetricName": "tma_info_ilp"
363*05dd42feSIan Rogers    },
364*05dd42feSIan Rogers    {
365*05dd42feSIan Rogers        "BriefDescription": "Total number of retired Instructions",
366*05dd42feSIan Rogers        "MetricExpr": "INST_RETIRED.ANY",
367*05dd42feSIan Rogers        "MetricGroup": "Summary;TmaL1;tma_L1_group",
368*05dd42feSIan Rogers        "MetricName": "tma_info_instructions",
369*05dd42feSIan Rogers        "PublicDescription": "Total number of retired Instructions. Sample with: INST_RETIRED.PREC_DIST"
370*05dd42feSIan Rogers    },
371*05dd42feSIan Rogers    {
372*05dd42feSIan Rogers        "BriefDescription": "Instructions per Branch (lower number means higher occurrence rate)",
373*05dd42feSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.ALL_BRANCHES",
374*05dd42feSIan Rogers        "MetricGroup": "Branches;Fed;InsType",
375*05dd42feSIan Rogers        "MetricName": "tma_info_ipbranch",
376*05dd42feSIan Rogers        "MetricThreshold": "tma_info_ipbranch < 8"
377*05dd42feSIan Rogers    },
378*05dd42feSIan Rogers    {
379*05dd42feSIan Rogers        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
380*05dd42feSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / tma_info_clks",
381*05dd42feSIan Rogers        "MetricGroup": "Ret;Summary",
382*05dd42feSIan Rogers        "MetricName": "tma_info_ipc"
383*05dd42feSIan Rogers    },
384*05dd42feSIan Rogers    {
385*05dd42feSIan Rogers        "BriefDescription": "Instructions per (near) call (lower number means higher occurrence rate)",
386*05dd42feSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_CALL",
387*05dd42feSIan Rogers        "MetricGroup": "Branches;Fed;PGO",
388*05dd42feSIan Rogers        "MetricName": "tma_info_ipcall",
389*05dd42feSIan Rogers        "MetricThreshold": "tma_info_ipcall < 200"
390*05dd42feSIan Rogers    },
391*05dd42feSIan Rogers    {
392*05dd42feSIan 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]",
393*05dd42feSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
394*05dd42feSIan Rogers        "MetricGroup": "Branches;OS",
395*05dd42feSIan Rogers        "MetricName": "tma_info_ipfarbranch",
396*05dd42feSIan Rogers        "MetricThreshold": "tma_info_ipfarbranch < 1e6"
397*05dd42feSIan Rogers    },
398*05dd42feSIan Rogers    {
399*05dd42feSIan Rogers        "BriefDescription": "Instructions per Load (lower number means higher occurrence rate)",
400*05dd42feSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_LOADS",
401*05dd42feSIan Rogers        "MetricGroup": "InsType",
402*05dd42feSIan Rogers        "MetricName": "tma_info_ipload",
403*05dd42feSIan Rogers        "MetricThreshold": "tma_info_ipload < 3"
404*05dd42feSIan Rogers    },
405*05dd42feSIan Rogers    {
406*05dd42feSIan Rogers        "BriefDescription": "Instructions per retired mispredicts for indirect CALL or JMP branches (lower number means higher occurrence rate).",
407*05dd42feSIan Rogers        "MetricExpr": "tma_info_instructions / (UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * cpu@BR_MISP_EXEC.ALL_BRANCHES\\,umask\\=0xE4@)",
408*05dd42feSIan Rogers        "MetricGroup": "Bad;BrMispredicts",
409*05dd42feSIan Rogers        "MetricName": "tma_info_ipmisp_indirect",
410*05dd42feSIan Rogers        "MetricThreshold": "tma_info_ipmisp_indirect < 1e3"
411*05dd42feSIan Rogers    },
412*05dd42feSIan Rogers    {
413*05dd42feSIan Rogers        "BriefDescription": "Number of Instructions per non-speculative Branch Misprediction (JEClear) (lower number means higher occurrence rate)",
414*05dd42feSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_MISP_RETIRED.ALL_BRANCHES",
415*05dd42feSIan Rogers        "MetricGroup": "Bad;BadSpec;BrMispredicts",
416*05dd42feSIan Rogers        "MetricName": "tma_info_ipmispredict",
417*05dd42feSIan Rogers        "MetricThreshold": "tma_info_ipmispredict < 200"
418*05dd42feSIan Rogers    },
419*05dd42feSIan Rogers    {
420*05dd42feSIan Rogers        "BriefDescription": "Instructions per Store (lower number means higher occurrence rate)",
421*05dd42feSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / MEM_UOPS_RETIRED.ALL_STORES",
422*05dd42feSIan Rogers        "MetricGroup": "InsType",
423*05dd42feSIan Rogers        "MetricName": "tma_info_ipstore",
424*05dd42feSIan Rogers        "MetricThreshold": "tma_info_ipstore < 8"
425*05dd42feSIan Rogers    },
426*05dd42feSIan Rogers    {
427*05dd42feSIan Rogers        "BriefDescription": "Instruction per taken branch",
428*05dd42feSIan Rogers        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.NEAR_TAKEN",
429*05dd42feSIan Rogers        "MetricGroup": "Branches;Fed;FetchBW;Frontend;PGO;tma_issueFB",
430*05dd42feSIan Rogers        "MetricName": "tma_info_iptb",
431*05dd42feSIan Rogers        "MetricThreshold": "tma_info_iptb < 9",
432*05dd42feSIan Rogers        "PublicDescription": "Instruction per taken branch. Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_info_dsb_coverage, tma_lcp"
433*05dd42feSIan Rogers    },
434*05dd42feSIan Rogers    {
435*05dd42feSIan Rogers        "BriefDescription": "Instructions per speculative Unknown Branch Misprediction (BAClear) (lower number means higher occurrence rate)",
436*05dd42feSIan Rogers        "MetricExpr": "tma_info_instructions / BACLEARS.ANY",
437*05dd42feSIan Rogers        "MetricGroup": "Fed",
438*05dd42feSIan Rogers        "MetricName": "tma_info_ipunknown_branch"
439*05dd42feSIan Rogers    },
440*05dd42feSIan Rogers    {
441*05dd42feSIan Rogers        "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode",
442*05dd42feSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k",
443*05dd42feSIan Rogers        "MetricGroup": "OS",
444*05dd42feSIan Rogers        "MetricName": "tma_info_kernel_cpi"
445*05dd42feSIan Rogers    },
446*05dd42feSIan Rogers    {
447*05dd42feSIan Rogers        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
448*05dd42feSIan Rogers        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD",
449*05dd42feSIan Rogers        "MetricGroup": "OS",
450*05dd42feSIan Rogers        "MetricName": "tma_info_kernel_utilization",
451*05dd42feSIan Rogers        "MetricThreshold": "tma_info_kernel_utilization > 0.05"
452*05dd42feSIan Rogers    },
453*05dd42feSIan Rogers    {
454*05dd42feSIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L1 data cache [GB / sec]",
455*05dd42feSIan Rogers        "MetricExpr": "64 * L1D.REPLACEMENT / 1e9 / duration_time",
456*05dd42feSIan Rogers        "MetricGroup": "Mem;MemoryBW",
457*05dd42feSIan Rogers        "MetricName": "tma_info_l1d_cache_fill_bw"
458*05dd42feSIan Rogers    },
459*05dd42feSIan Rogers    {
460*05dd42feSIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L1 data cache [GB / sec]",
461*05dd42feSIan Rogers        "MetricExpr": "tma_info_l1d_cache_fill_bw",
462*05dd42feSIan Rogers        "MetricGroup": "Mem;MemoryBW",
463*05dd42feSIan Rogers        "MetricName": "tma_info_l1d_cache_fill_bw_1t"
464*05dd42feSIan Rogers    },
465*05dd42feSIan Rogers    {
466*05dd42feSIan Rogers        "BriefDescription": "L1 cache true misses per kilo instruction for retired demand loads",
467*05dd42feSIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L1_MISS / INST_RETIRED.ANY",
468*05dd42feSIan Rogers        "MetricGroup": "CacheMisses;Mem",
469*05dd42feSIan Rogers        "MetricName": "tma_info_l1mpki"
470*05dd42feSIan Rogers    },
471*05dd42feSIan Rogers    {
472*05dd42feSIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L2 cache [GB / sec]",
473*05dd42feSIan Rogers        "MetricExpr": "64 * L2_LINES_IN.ALL / 1e9 / duration_time",
474*05dd42feSIan Rogers        "MetricGroup": "Mem;MemoryBW",
475*05dd42feSIan Rogers        "MetricName": "tma_info_l2_cache_fill_bw"
476*05dd42feSIan Rogers    },
477*05dd42feSIan Rogers    {
478*05dd42feSIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L2 cache [GB / sec]",
479*05dd42feSIan Rogers        "MetricExpr": "tma_info_l2_cache_fill_bw",
480*05dd42feSIan Rogers        "MetricGroup": "Mem;MemoryBW",
481*05dd42feSIan Rogers        "MetricName": "tma_info_l2_cache_fill_bw_1t"
482*05dd42feSIan Rogers    },
483*05dd42feSIan Rogers    {
484*05dd42feSIan Rogers        "BriefDescription": "L2 cache true misses per kilo instruction for retired demand loads",
485*05dd42feSIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L2_MISS / INST_RETIRED.ANY",
486*05dd42feSIan Rogers        "MetricGroup": "Backend;CacheMisses;Mem",
487*05dd42feSIan Rogers        "MetricName": "tma_info_l2mpki"
488*05dd42feSIan Rogers    },
489*05dd42feSIan Rogers    {
490*05dd42feSIan Rogers        "BriefDescription": "Average per-thread data access bandwidth to the L3 cache [GB / sec]",
491*05dd42feSIan Rogers        "MetricExpr": "0",
492*05dd42feSIan Rogers        "MetricGroup": "Mem;MemoryBW;Offcore",
493*05dd42feSIan Rogers        "MetricName": "tma_info_l3_cache_access_bw_1t"
494*05dd42feSIan Rogers    },
495*05dd42feSIan Rogers    {
496*05dd42feSIan Rogers        "BriefDescription": "Average per-core data fill bandwidth to the L3 cache [GB / sec]",
497*05dd42feSIan Rogers        "MetricExpr": "64 * LONGEST_LAT_CACHE.MISS / 1e9 / duration_time",
498*05dd42feSIan Rogers        "MetricGroup": "Mem;MemoryBW",
499*05dd42feSIan Rogers        "MetricName": "tma_info_l3_cache_fill_bw"
500*05dd42feSIan Rogers    },
501*05dd42feSIan Rogers    {
502*05dd42feSIan Rogers        "BriefDescription": "Average per-thread data fill bandwidth to the L3 cache [GB / sec]",
503*05dd42feSIan Rogers        "MetricExpr": "tma_info_l3_cache_fill_bw",
504*05dd42feSIan Rogers        "MetricGroup": "Mem;MemoryBW",
505*05dd42feSIan Rogers        "MetricName": "tma_info_l3_cache_fill_bw_1t"
506*05dd42feSIan Rogers    },
507*05dd42feSIan Rogers    {
508*05dd42feSIan Rogers        "BriefDescription": "L3 cache true misses per kilo instruction for retired demand loads",
509*05dd42feSIan Rogers        "MetricExpr": "1e3 * MEM_LOAD_UOPS_RETIRED.L3_MISS / INST_RETIRED.ANY",
510*05dd42feSIan Rogers        "MetricGroup": "CacheMisses;Mem",
511*05dd42feSIan Rogers        "MetricName": "tma_info_l3mpki"
512*05dd42feSIan Rogers    },
513*05dd42feSIan Rogers    {
514*05dd42feSIan Rogers        "BriefDescription": "Average Latency for L2 cache miss demand Loads",
515*05dd42feSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS.DEMAND_DATA_RD",
516*05dd42feSIan Rogers        "MetricGroup": "Memory_Lat;Offcore",
517*05dd42feSIan Rogers        "MetricName": "tma_info_load_l2_miss_latency"
518*05dd42feSIan Rogers    },
519*05dd42feSIan Rogers    {
520*05dd42feSIan Rogers        "BriefDescription": "Average Parallel L2 cache miss demand Loads",
521*05dd42feSIan Rogers        "MetricExpr": "OFFCORE_REQUESTS_OUTSTANDING.DEMAND_DATA_RD / OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DEMAND_DATA_RD",
522*05dd42feSIan Rogers        "MetricGroup": "Memory_BW;Offcore",
523*05dd42feSIan Rogers        "MetricName": "tma_info_load_l2_mlp"
524*05dd42feSIan Rogers    },
525*05dd42feSIan Rogers    {
526*05dd42feSIan Rogers        "BriefDescription": "Actual Average Latency for L1 data-cache miss demand load operations (in core cycles)",
527*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
528*05dd42feSIan Rogers        "MetricExpr": "L1D_PEND_MISS.PENDING / (MEM_LOAD_UOPS_RETIRED.L1_MISS + MEM_LOAD_UOPS_RETIRED.HIT_LFB)",
529*05dd42feSIan Rogers        "MetricGroup": "Mem;MemoryBound;MemoryLat",
530*05dd42feSIan Rogers        "MetricName": "tma_info_load_miss_real_latency"
531*05dd42feSIan Rogers    },
532*05dd42feSIan Rogers    {
533*05dd42feSIan Rogers        "BriefDescription": "Average number of parallel data read requests to external memory",
534*05dd42feSIan Rogers        "MetricExpr": "UNC_C_TOR_OCCUPANCY.MISS_OPCODE@filter_opc\\=0x182@ / UNC_C_TOR_OCCUPANCY.MISS_OPCODE@filter_opc\\=0x182\\,thresh\\=1@",
535*05dd42feSIan Rogers        "MetricGroup": "Mem;MemoryBW;SoC",
536*05dd42feSIan Rogers        "MetricName": "tma_info_mem_parallel_reads",
537*05dd42feSIan Rogers        "PublicDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches"
538*05dd42feSIan Rogers    },
539*05dd42feSIan Rogers    {
540*05dd42feSIan Rogers        "BriefDescription": "Average latency of data read request to external memory (in nanoseconds)",
541*05dd42feSIan Rogers        "MetricExpr": "1e9 * (UNC_C_TOR_OCCUPANCY.MISS_OPCODE@filter_opc\\=0x182@ / UNC_C_TOR_INSERTS.MISS_OPCODE@filter_opc\\=0x182@) / (tma_info_socket_clks / duration_time)",
542*05dd42feSIan Rogers        "MetricGroup": "Mem;MemoryLat;SoC",
543*05dd42feSIan Rogers        "MetricName": "tma_info_mem_read_latency",
544*05dd42feSIan Rogers        "PublicDescription": "Average latency of data read request to external memory (in nanoseconds). Accounts for demand loads and L1/L2 prefetches. ([RKL+]memory-controller only)"
545*05dd42feSIan Rogers    },
546*05dd42feSIan Rogers    {
547*05dd42feSIan Rogers        "BriefDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss",
548*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
549*05dd42feSIan Rogers        "MetricExpr": "L1D_PEND_MISS.PENDING / L1D_PEND_MISS.PENDING_CYCLES",
550*05dd42feSIan Rogers        "MetricGroup": "Mem;MemoryBW;MemoryBound",
551*05dd42feSIan Rogers        "MetricName": "tma_info_mlp",
552*05dd42feSIan Rogers        "PublicDescription": "Memory-Level-Parallelism (average number of L1 miss demand load when there is at least one such miss. Per-Logical Processor)"
553*05dd42feSIan Rogers    },
554*05dd42feSIan Rogers    {
555*05dd42feSIan Rogers        "BriefDescription": "Utilization of the core's Page Walker(s) serving STLB misses triggered by instruction/Load/Store accesses",
556*05dd42feSIan Rogers        "MetricExpr": "(ITLB_MISSES.WALK_DURATION + DTLB_LOAD_MISSES.WALK_DURATION + DTLB_STORE_MISSES.WALK_DURATION) / tma_info_core_clks",
557*05dd42feSIan Rogers        "MetricGroup": "Mem;MemoryTLB",
558*05dd42feSIan Rogers        "MetricName": "tma_info_page_walks_utilization",
559*05dd42feSIan Rogers        "MetricThreshold": "tma_info_page_walks_utilization > 0.5"
560*05dd42feSIan Rogers    },
561*05dd42feSIan Rogers    {
562*05dd42feSIan Rogers        "BriefDescription": "Average number of Uops retired in cycles where at least one uop has retired.",
563*05dd42feSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / cpu@UOPS_RETIRED.RETIRE_SLOTS\\,cmask\\=1@",
564*05dd42feSIan Rogers        "MetricGroup": "Pipeline;Ret",
565*05dd42feSIan Rogers        "MetricName": "tma_info_retire"
566*05dd42feSIan Rogers    },
567*05dd42feSIan Rogers    {
568*05dd42feSIan Rogers        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
569*05dd42feSIan Rogers        "MetricExpr": "4 * tma_info_core_clks",
570*05dd42feSIan Rogers        "MetricGroup": "TmaL1;tma_L1_group",
571*05dd42feSIan Rogers        "MetricName": "tma_info_slots"
572*05dd42feSIan Rogers    },
573*05dd42feSIan Rogers    {
574*05dd42feSIan Rogers        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
575*05dd42feSIan Rogers        "MetricExpr": "(1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / (CPU_CLK_UNHALTED.REF_XCLK_ANY / 2) if #SMT_on else 0)",
576*05dd42feSIan Rogers        "MetricGroup": "SMT",
577*05dd42feSIan Rogers        "MetricName": "tma_info_smt_2t_utilization"
578*05dd42feSIan Rogers    },
579*05dd42feSIan Rogers    {
580*05dd42feSIan Rogers        "BriefDescription": "Socket actual clocks when any core is active on that socket",
581*05dd42feSIan Rogers        "MetricExpr": "cbox_0@event\\=0x0@",
582*05dd42feSIan Rogers        "MetricGroup": "SoC",
583*05dd42feSIan Rogers        "MetricName": "tma_info_socket_clks"
584*05dd42feSIan Rogers    },
585*05dd42feSIan Rogers    {
586*05dd42feSIan Rogers        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
587*05dd42feSIan Rogers        "MetricExpr": "tma_info_clks / CPU_CLK_UNHALTED.REF_TSC",
588*05dd42feSIan Rogers        "MetricGroup": "Power",
589*05dd42feSIan Rogers        "MetricName": "tma_info_turbo_utilization"
590*05dd42feSIan Rogers    },
591*05dd42feSIan Rogers    {
592*05dd42feSIan Rogers        "BriefDescription": "Uops Per Instruction",
593*05dd42feSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
594*05dd42feSIan Rogers        "MetricGroup": "Pipeline;Ret;Retire",
595*05dd42feSIan Rogers        "MetricName": "tma_info_uoppi",
596*05dd42feSIan Rogers        "MetricThreshold": "tma_info_uoppi > 1.05"
597*05dd42feSIan Rogers    },
598*05dd42feSIan Rogers    {
599*05dd42feSIan Rogers        "BriefDescription": "Instruction per taken branch",
600*05dd42feSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / BR_INST_RETIRED.NEAR_TAKEN",
601*05dd42feSIan Rogers        "MetricGroup": "Branches;Fed;FetchBW",
602*05dd42feSIan Rogers        "MetricName": "tma_info_uptb",
603*05dd42feSIan Rogers        "MetricThreshold": "tma_info_uptb < 6"
604*05dd42feSIan Rogers    },
605*05dd42feSIan Rogers    {
606*05dd42feSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses",
607*05dd42feSIan Rogers        "MetricExpr": "(14 * ITLB_MISSES.STLB_HIT + ITLB_MISSES.WALK_DURATION) / tma_info_clks",
608*05dd42feSIan Rogers        "MetricGroup": "BigFoot;FetchLat;MemoryTLB;TopdownL3;tma_L3_group;tma_fetch_latency_group",
609*05dd42feSIan Rogers        "MetricName": "tma_itlb_misses",
610*05dd42feSIan Rogers        "MetricThreshold": "tma_itlb_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
611*05dd42feSIan Rogers        "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses. Sample with: ITLB_MISSES.WALK_COMPLETED",
612*05dd42feSIan Rogers        "ScaleUnit": "100%"
613*05dd42feSIan Rogers    },
614*05dd42feSIan Rogers    {
615*05dd42feSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled without loads missing the L1 data cache",
616*05dd42feSIan Rogers        "MetricExpr": "max((min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.STALLS_LDM_PENDING) - CYCLE_ACTIVITY.STALLS_L1D_PENDING) / tma_info_clks, 0)",
617*05dd42feSIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_issueL1;tma_issueMC;tma_memory_bound_group",
618*05dd42feSIan Rogers        "MetricName": "tma_l1_bound",
619*05dd42feSIan Rogers        "MetricThreshold": "tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
620*05dd42feSIan 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",
621*05dd42feSIan Rogers        "ScaleUnit": "100%"
622*05dd42feSIan Rogers    },
623*05dd42feSIan Rogers    {
624*05dd42feSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled due to L2 cache accesses by loads",
625*05dd42feSIan Rogers        "MetricExpr": "(CYCLE_ACTIVITY.STALLS_L1D_PENDING - CYCLE_ACTIVITY.STALLS_L2_PENDING) / tma_info_clks",
626*05dd42feSIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
627*05dd42feSIan Rogers        "MetricName": "tma_l2_bound",
628*05dd42feSIan Rogers        "MetricThreshold": "tma_l2_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
629*05dd42feSIan 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",
630*05dd42feSIan Rogers        "ScaleUnit": "100%"
631*05dd42feSIan Rogers    },
632*05dd42feSIan Rogers    {
633*05dd42feSIan Rogers        "BriefDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core",
634*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_SMT",
635*05dd42feSIan Rogers        "MetricExpr": "MEM_LOAD_UOPS_RETIRED.L3_HIT / (MEM_LOAD_UOPS_RETIRED.L3_HIT + 7 * MEM_LOAD_UOPS_RETIRED.L3_MISS) * CYCLE_ACTIVITY.STALLS_L2_PENDING / tma_info_clks",
636*05dd42feSIan Rogers        "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
637*05dd42feSIan Rogers        "MetricName": "tma_l3_bound",
638*05dd42feSIan Rogers        "MetricThreshold": "tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
639*05dd42feSIan 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",
640*05dd42feSIan Rogers        "ScaleUnit": "100%"
641*05dd42feSIan Rogers    },
642*05dd42feSIan Rogers    {
643*05dd42feSIan Rogers        "BriefDescription": "This metric represents fraction of cycles with demand load accesses that hit the L3 cache under unloaded scenarios (possibly L3 latency limited)",
644*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
645*05dd42feSIan Rogers        "MetricExpr": "41 * (MEM_LOAD_UOPS_RETIRED.L3_HIT * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) / tma_info_clks",
646*05dd42feSIan Rogers        "MetricGroup": "MemoryLat;TopdownL4;tma_L4_group;tma_issueLat;tma_l3_bound_group",
647*05dd42feSIan Rogers        "MetricName": "tma_l3_hit_latency",
648*05dd42feSIan Rogers        "MetricThreshold": "tma_l3_hit_latency > 0.1 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
649*05dd42feSIan 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",
650*05dd42feSIan Rogers        "ScaleUnit": "100%"
651*05dd42feSIan Rogers    },
652*05dd42feSIan Rogers    {
653*05dd42feSIan Rogers        "BriefDescription": "This metric represents fraction of cycles CPU was stalled due to Length Changing Prefixes (LCPs)",
654*05dd42feSIan Rogers        "MetricExpr": "ILD_STALL.LCP / tma_info_clks",
655*05dd42feSIan Rogers        "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB",
656*05dd42feSIan Rogers        "MetricName": "tma_lcp",
657*05dd42feSIan Rogers        "MetricThreshold": "tma_lcp > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
658*05dd42feSIan 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_dsb_coverage, tma_info_iptb",
659*05dd42feSIan Rogers        "ScaleUnit": "100%"
660*05dd42feSIan Rogers    },
661*05dd42feSIan Rogers    {
662*05dd42feSIan 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)",
663*05dd42feSIan Rogers        "MetricExpr": "tma_retiring - tma_heavy_operations",
664*05dd42feSIan Rogers        "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group",
665*05dd42feSIan Rogers        "MetricName": "tma_light_operations",
666*05dd42feSIan Rogers        "MetricThreshold": "tma_light_operations > 0.6",
667*05dd42feSIan 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",
668*05dd42feSIan Rogers        "ScaleUnit": "100%"
669*05dd42feSIan Rogers    },
670*05dd42feSIan Rogers    {
671*05dd42feSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Load operations",
672*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS_NMI",
673*05dd42feSIan Rogers        "MetricExpr": "(UOPS_DISPATCHED_PORT.PORT_2 + UOPS_DISPATCHED_PORT.PORT_3 + UOPS_DISPATCHED_PORT.PORT_7 - UOPS_DISPATCHED_PORT.PORT_4) / (2 * tma_info_core_clks)",
674*05dd42feSIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
675*05dd42feSIan Rogers        "MetricName": "tma_load_op_utilization",
676*05dd42feSIan Rogers        "MetricThreshold": "tma_load_op_utilization > 0.6",
677*05dd42feSIan 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",
678*05dd42feSIan Rogers        "ScaleUnit": "100%"
679*05dd42feSIan Rogers    },
680*05dd42feSIan Rogers    {
681*05dd42feSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from local memory",
682*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
683*05dd42feSIan Rogers        "MetricExpr": "200 * (MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) / tma_info_clks",
684*05dd42feSIan Rogers        "MetricGroup": "Server;TopdownL5;tma_L5_group;tma_mem_latency_group",
685*05dd42feSIan Rogers        "MetricName": "tma_local_dram",
686*05dd42feSIan Rogers        "MetricThreshold": "tma_local_dram > 0.1 & (tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
687*05dd42feSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from local memory. Caching will improve the latency and increase performance. Sample with: MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM_PS",
688*05dd42feSIan Rogers        "ScaleUnit": "100%"
689*05dd42feSIan Rogers    },
690*05dd42feSIan Rogers    {
691*05dd42feSIan Rogers        "BriefDescription": "This metric represents fraction of cycles the CPU spent handling cache misses due to lock operations",
692*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
693*05dd42feSIan 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_clks",
694*05dd42feSIan Rogers        "MetricGroup": "Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_l1_bound_group",
695*05dd42feSIan Rogers        "MetricName": "tma_lock_latency",
696*05dd42feSIan Rogers        "MetricThreshold": "tma_lock_latency > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
697*05dd42feSIan 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",
698*05dd42feSIan Rogers        "ScaleUnit": "100%"
699*05dd42feSIan Rogers    },
700*05dd42feSIan Rogers    {
701*05dd42feSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Machine Clears",
702*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
703*05dd42feSIan Rogers        "MetricExpr": "tma_bad_speculation - tma_branch_mispredicts",
704*05dd42feSIan Rogers        "MetricGroup": "BadSpec;MachineClears;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueMC;tma_issueSyncxn",
705*05dd42feSIan Rogers        "MetricName": "tma_machine_clears",
706*05dd42feSIan Rogers        "MetricThreshold": "tma_machine_clears > 0.1 & tma_bad_speculation > 0.15",
707*05dd42feSIan 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",
708*05dd42feSIan Rogers        "ScaleUnit": "100%"
709*05dd42feSIan Rogers    },
710*05dd42feSIan Rogers    {
711*05dd42feSIan 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)",
712*05dd42feSIan Rogers        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, cpu@OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD\\,cmask\\=6@) / tma_info_clks",
713*05dd42feSIan Rogers        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueBW",
714*05dd42feSIan Rogers        "MetricName": "tma_mem_bandwidth",
715*05dd42feSIan Rogers        "MetricThreshold": "tma_mem_bandwidth > 0.2 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
716*05dd42feSIan 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_dram_bw_use, tma_sq_full",
717*05dd42feSIan Rogers        "ScaleUnit": "100%"
718*05dd42feSIan Rogers    },
719*05dd42feSIan Rogers    {
720*05dd42feSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory (DRAM)",
721*05dd42feSIan Rogers        "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD) / tma_info_clks - tma_mem_bandwidth",
722*05dd42feSIan Rogers        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueLat",
723*05dd42feSIan Rogers        "MetricName": "tma_mem_latency",
724*05dd42feSIan Rogers        "MetricThreshold": "tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
725*05dd42feSIan 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",
726*05dd42feSIan Rogers        "ScaleUnit": "100%"
727*05dd42feSIan Rogers    },
728*05dd42feSIan Rogers    {
729*05dd42feSIan Rogers        "BriefDescription": "This metric represents fraction of slots the Memory subsystem within the Backend was a bottleneck",
730*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
731*05dd42feSIan 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) + (cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ - (cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@ if tma_info_ipc > 1.8 else cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@)) / 2 - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB) if #SMT_on else min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.CYCLES_NO_EXECUTE) + cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ - (cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@ if tma_info_ipc > 1.8 else cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@) - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB) * tma_backend_bound",
732*05dd42feSIan Rogers        "MetricGroup": "Backend;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group",
733*05dd42feSIan Rogers        "MetricName": "tma_memory_bound",
734*05dd42feSIan Rogers        "MetricThreshold": "tma_memory_bound > 0.2 & tma_backend_bound > 0.2",
735*05dd42feSIan 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).",
736*05dd42feSIan Rogers        "ScaleUnit": "100%"
737*05dd42feSIan Rogers    },
738*05dd42feSIan Rogers    {
739*05dd42feSIan Rogers        "BriefDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit",
740*05dd42feSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * IDQ.MS_UOPS / tma_info_slots",
741*05dd42feSIan Rogers        "MetricGroup": "MicroSeq;TopdownL3;tma_L3_group;tma_heavy_operations_group;tma_issueMC;tma_issueMS",
742*05dd42feSIan Rogers        "MetricName": "tma_microcode_sequencer",
743*05dd42feSIan Rogers        "MetricThreshold": "tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1",
744*05dd42feSIan 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",
745*05dd42feSIan Rogers        "ScaleUnit": "100%"
746*05dd42feSIan Rogers    },
747*05dd42feSIan Rogers    {
748*05dd42feSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles in which CPU was likely limited due to the MITE pipeline (the legacy decode pipeline)",
749*05dd42feSIan Rogers        "MetricExpr": "(IDQ.ALL_MITE_CYCLES_ANY_UOPS - IDQ.ALL_MITE_CYCLES_4_UOPS) / tma_info_core_clks / 2",
750*05dd42feSIan Rogers        "MetricGroup": "DSBmiss;FetchBW;TopdownL3;tma_L3_group;tma_fetch_bandwidth_group",
751*05dd42feSIan Rogers        "MetricName": "tma_mite",
752*05dd42feSIan Rogers        "MetricThreshold": "tma_mite > 0.1 & (tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35)",
753*05dd42feSIan 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.",
754*05dd42feSIan Rogers        "ScaleUnit": "100%"
755*05dd42feSIan Rogers    },
756*05dd42feSIan Rogers    {
757*05dd42feSIan 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)",
758*05dd42feSIan Rogers        "MetricExpr": "2 * IDQ.MS_SWITCHES / tma_info_clks",
759*05dd42feSIan Rogers        "MetricGroup": "FetchLat;MicroSeq;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueMC;tma_issueMS;tma_issueMV;tma_issueSO",
760*05dd42feSIan Rogers        "MetricName": "tma_ms_switches",
761*05dd42feSIan Rogers        "MetricThreshold": "tma_ms_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)",
762*05dd42feSIan 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",
763*05dd42feSIan Rogers        "ScaleUnit": "100%"
764*05dd42feSIan Rogers    },
765*05dd42feSIan Rogers    {
766*05dd42feSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 0 ([SNB+] ALU; [HSW+] ALU and 2nd branch)",
767*05dd42feSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_0 / tma_info_core_clks",
768*05dd42feSIan Rogers        "MetricGroup": "Compute;TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
769*05dd42feSIan Rogers        "MetricName": "tma_port_0",
770*05dd42feSIan Rogers        "MetricThreshold": "tma_port_0 > 0.6",
771*05dd42feSIan 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",
772*05dd42feSIan Rogers        "ScaleUnit": "100%"
773*05dd42feSIan Rogers    },
774*05dd42feSIan Rogers    {
775*05dd42feSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 1 (ALU)",
776*05dd42feSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_1 / tma_info_core_clks",
777*05dd42feSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
778*05dd42feSIan Rogers        "MetricName": "tma_port_1",
779*05dd42feSIan Rogers        "MetricThreshold": "tma_port_1 > 0.6",
780*05dd42feSIan 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",
781*05dd42feSIan Rogers        "ScaleUnit": "100%"
782*05dd42feSIan Rogers    },
783*05dd42feSIan Rogers    {
784*05dd42feSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 2 ([SNB+]Loads and Store-address; [ICL+] Loads)",
785*05dd42feSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_2 / tma_info_core_clks",
786*05dd42feSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
787*05dd42feSIan Rogers        "MetricName": "tma_port_2",
788*05dd42feSIan Rogers        "MetricThreshold": "tma_port_2 > 0.6",
789*05dd42feSIan 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",
790*05dd42feSIan Rogers        "ScaleUnit": "100%"
791*05dd42feSIan Rogers    },
792*05dd42feSIan Rogers    {
793*05dd42feSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 3 ([SNB+]Loads and Store-address; [ICL+] Loads)",
794*05dd42feSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_3 / tma_info_core_clks",
795*05dd42feSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_load_op_utilization_group",
796*05dd42feSIan Rogers        "MetricName": "tma_port_3",
797*05dd42feSIan Rogers        "MetricThreshold": "tma_port_3 > 0.6",
798*05dd42feSIan 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",
799*05dd42feSIan Rogers        "ScaleUnit": "100%"
800*05dd42feSIan Rogers    },
801*05dd42feSIan Rogers    {
802*05dd42feSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 4 (Store-data)",
803*05dd42feSIan Rogers        "MetricExpr": "tma_store_op_utilization",
804*05dd42feSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_issueSpSt;tma_store_op_utilization_group",
805*05dd42feSIan Rogers        "MetricName": "tma_port_4",
806*05dd42feSIan Rogers        "MetricThreshold": "tma_port_4 > 0.6",
807*05dd42feSIan 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",
808*05dd42feSIan Rogers        "ScaleUnit": "100%"
809*05dd42feSIan Rogers    },
810*05dd42feSIan Rogers    {
811*05dd42feSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 5 ([SNB+] Branches and ALU; [HSW+] ALU)",
812*05dd42feSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_5 / tma_info_core_clks",
813*05dd42feSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
814*05dd42feSIan Rogers        "MetricName": "tma_port_5",
815*05dd42feSIan Rogers        "MetricThreshold": "tma_port_5 > 0.6",
816*05dd42feSIan 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",
817*05dd42feSIan Rogers        "ScaleUnit": "100%"
818*05dd42feSIan Rogers    },
819*05dd42feSIan Rogers    {
820*05dd42feSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 6 ([HSW+]Primary Branch and simple ALU)",
821*05dd42feSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_6 / tma_info_core_clks",
822*05dd42feSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_alu_op_utilization_group;tma_issue2P",
823*05dd42feSIan Rogers        "MetricName": "tma_port_6",
824*05dd42feSIan Rogers        "MetricThreshold": "tma_port_6 > 0.6",
825*05dd42feSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 6 ([HSW+]Primary Branch and simple ALU). Sample with: UOPS_DISPATCHED_PORT.PORT_6. Related metrics: tma_fp_scalar, tma_fp_vector, tma_fp_vector_512b, tma_port_0, tma_port_1, tma_port_5, tma_ports_utilized_2",
826*05dd42feSIan Rogers        "ScaleUnit": "100%"
827*05dd42feSIan Rogers    },
828*05dd42feSIan Rogers    {
829*05dd42feSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 7 ([HSW+]simple Store-address)",
830*05dd42feSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_7 / tma_info_core_clks",
831*05dd42feSIan Rogers        "MetricGroup": "TopdownL6;tma_L6_group;tma_store_op_utilization_group",
832*05dd42feSIan Rogers        "MetricName": "tma_port_7",
833*05dd42feSIan Rogers        "MetricThreshold": "tma_port_7 > 0.6",
834*05dd42feSIan Rogers        "PublicDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port 7 ([HSW+]simple Store-address). Sample with: UOPS_DISPATCHED_PORT.PORT_7",
835*05dd42feSIan Rogers        "ScaleUnit": "100%"
836*05dd42feSIan Rogers    },
837*05dd42feSIan Rogers    {
838*05dd42feSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU performance was potentially limited due to Core computation issues (non divider-related)",
839*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
840*05dd42feSIan Rogers        "MetricExpr": "(min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.CYCLES_NO_EXECUTE) + (cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ - (cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@ if tma_info_ipc > 1.8 else cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@)) / 2 - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB if #SMT_on else min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.CYCLES_NO_EXECUTE) + cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ - (cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@ if tma_info_ipc > 1.8 else cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@) - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB - RESOURCE_STALLS.SB - min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.STALLS_LDM_PENDING)) / tma_info_clks",
841*05dd42feSIan Rogers        "MetricGroup": "PortsUtil;TopdownL3;tma_L3_group;tma_core_bound_group",
842*05dd42feSIan Rogers        "MetricName": "tma_ports_utilization",
843*05dd42feSIan Rogers        "MetricThreshold": "tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)",
844*05dd42feSIan 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.",
845*05dd42feSIan Rogers        "ScaleUnit": "100%"
846*05dd42feSIan Rogers    },
847*05dd42feSIan Rogers    {
848*05dd42feSIan 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)",
849*05dd42feSIan 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_clks)",
850*05dd42feSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
851*05dd42feSIan Rogers        "MetricName": "tma_ports_utilized_0",
852*05dd42feSIan Rogers        "MetricThreshold": "tma_ports_utilized_0 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
853*05dd42feSIan 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.",
854*05dd42feSIan Rogers        "ScaleUnit": "100%"
855*05dd42feSIan Rogers    },
856*05dd42feSIan Rogers    {
857*05dd42feSIan 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)",
858*05dd42feSIan Rogers        "MetricExpr": "((cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ - cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@) / 2 if #SMT_on else (cpu@UOPS_EXECUTED.CORE\\,cmask\\=1@ - cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@) / tma_info_core_clks)",
859*05dd42feSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issueL1;tma_ports_utilization_group",
860*05dd42feSIan Rogers        "MetricName": "tma_ports_utilized_1",
861*05dd42feSIan Rogers        "MetricThreshold": "tma_ports_utilized_1 > 0.2 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
862*05dd42feSIan 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",
863*05dd42feSIan Rogers        "ScaleUnit": "100%"
864*05dd42feSIan Rogers    },
865*05dd42feSIan Rogers    {
866*05dd42feSIan 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)",
867*05dd42feSIan Rogers        "MetricExpr": "((cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@ - cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@) / 2 if #SMT_on else (cpu@UOPS_EXECUTED.CORE\\,cmask\\=2@ - cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@) / tma_info_core_clks)",
868*05dd42feSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_issue2P;tma_ports_utilization_group",
869*05dd42feSIan Rogers        "MetricName": "tma_ports_utilized_2",
870*05dd42feSIan Rogers        "MetricThreshold": "tma_ports_utilized_2 > 0.15 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
871*05dd42feSIan 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",
872*05dd42feSIan Rogers        "ScaleUnit": "100%"
873*05dd42feSIan Rogers    },
874*05dd42feSIan Rogers    {
875*05dd42feSIan 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).",
876*05dd42feSIan Rogers        "MetricExpr": "(cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@ / 2 if #SMT_on else cpu@UOPS_EXECUTED.CORE\\,cmask\\=3@) / tma_info_core_clks",
877*05dd42feSIan Rogers        "MetricGroup": "PortsUtil;TopdownL4;tma_L4_group;tma_ports_utilization_group",
878*05dd42feSIan Rogers        "MetricName": "tma_ports_utilized_3m",
879*05dd42feSIan Rogers        "MetricThreshold": "tma_ports_utilized_3m > 0.7 & (tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2))",
880*05dd42feSIan Rogers        "ScaleUnit": "100%"
881*05dd42feSIan Rogers    },
882*05dd42feSIan Rogers    {
883*05dd42feSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote cache in other sockets including synchronizations issues",
884*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
885*05dd42feSIan Rogers        "MetricExpr": "(200 * (MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) + 180 * (MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD)))) / tma_info_clks",
886*05dd42feSIan Rogers        "MetricGroup": "Offcore;Server;Snoop;TopdownL5;tma_L5_group;tma_issueSyncxn;tma_mem_latency_group",
887*05dd42feSIan Rogers        "MetricName": "tma_remote_cache",
888*05dd42feSIan Rogers        "MetricThreshold": "tma_remote_cache > 0.05 & (tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
889*05dd42feSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote cache in other sockets including synchronizations issues. This is caused often due to non-optimal NUMA allocations. #link to NUMA article. Sample with: MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM_PS;MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD_PS. Related metrics: tma_contested_accesses, tma_data_sharing, tma_false_sharing, tma_machine_clears",
890*05dd42feSIan Rogers        "ScaleUnit": "100%"
891*05dd42feSIan Rogers    },
892*05dd42feSIan Rogers    {
893*05dd42feSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote memory",
894*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
895*05dd42feSIan Rogers        "MetricExpr": "310 * (MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM * (1 + MEM_LOAD_UOPS_RETIRED.HIT_LFB / (MEM_LOAD_UOPS_RETIRED.L2_HIT + MEM_LOAD_UOPS_RETIRED.L3_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HIT + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_HITM + MEM_LOAD_UOPS_L3_HIT_RETIRED.XSNP_MISS + MEM_LOAD_UOPS_L3_MISS_RETIRED.LOCAL_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_HITM + MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_FWD))) / tma_info_clks",
896*05dd42feSIan Rogers        "MetricGroup": "Server;Snoop;TopdownL5;tma_L5_group;tma_mem_latency_group",
897*05dd42feSIan Rogers        "MetricName": "tma_remote_dram",
898*05dd42feSIan Rogers        "MetricThreshold": "tma_remote_dram > 0.1 & (tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)))",
899*05dd42feSIan Rogers        "PublicDescription": "This metric estimates fraction of cycles while the memory subsystem was handling loads from remote memory. This is caused often due to non-optimal NUMA allocations. #link to NUMA article. Sample with: MEM_LOAD_UOPS_L3_MISS_RETIRED.REMOTE_DRAM_PS",
900*05dd42feSIan Rogers        "ScaleUnit": "100%"
901*05dd42feSIan Rogers    },
902*05dd42feSIan Rogers    {
903*05dd42feSIan Rogers        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired",
904*05dd42feSIan Rogers        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / tma_info_slots",
905*05dd42feSIan Rogers        "MetricGroup": "TmaL1;TopdownL1;tma_L1_group",
906*05dd42feSIan Rogers        "MetricName": "tma_retiring",
907*05dd42feSIan Rogers        "MetricThreshold": "tma_retiring > 0.7 | tma_heavy_operations > 0.1",
908*05dd42feSIan 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",
909*05dd42feSIan Rogers        "ScaleUnit": "100%"
910*05dd42feSIan Rogers    },
911*05dd42feSIan Rogers    {
912*05dd42feSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles handling memory load split accesses - load that cross 64-byte cache line boundary",
913*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
914*05dd42feSIan Rogers        "MetricExpr": "tma_info_load_miss_real_latency * LD_BLOCKS.NO_SR / tma_info_clks",
915*05dd42feSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
916*05dd42feSIan Rogers        "MetricName": "tma_split_loads",
917*05dd42feSIan Rogers        "MetricThreshold": "tma_split_loads > 0.2 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
918*05dd42feSIan 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",
919*05dd42feSIan Rogers        "ScaleUnit": "100%"
920*05dd42feSIan Rogers    },
921*05dd42feSIan Rogers    {
922*05dd42feSIan Rogers        "BriefDescription": "This metric represents rate of split store accesses",
923*05dd42feSIan Rogers        "MetricExpr": "2 * MEM_UOPS_RETIRED.SPLIT_STORES / tma_info_core_clks",
924*05dd42feSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_issueSpSt;tma_store_bound_group",
925*05dd42feSIan Rogers        "MetricName": "tma_split_stores",
926*05dd42feSIan Rogers        "MetricThreshold": "tma_split_stores > 0.2 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
927*05dd42feSIan 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",
928*05dd42feSIan Rogers        "ScaleUnit": "100%"
929*05dd42feSIan Rogers    },
930*05dd42feSIan Rogers    {
931*05dd42feSIan 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)",
932*05dd42feSIan Rogers        "MetricExpr": "(OFFCORE_REQUESTS_BUFFER.SQ_FULL / 2 if #SMT_on else OFFCORE_REQUESTS_BUFFER.SQ_FULL) / tma_info_core_clks",
933*05dd42feSIan Rogers        "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_issueBW;tma_l3_bound_group",
934*05dd42feSIan Rogers        "MetricName": "tma_sq_full",
935*05dd42feSIan Rogers        "MetricThreshold": "tma_sq_full > 0.3 & (tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
936*05dd42feSIan 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_dram_bw_use, tma_mem_bandwidth",
937*05dd42feSIan Rogers        "ScaleUnit": "100%"
938*05dd42feSIan Rogers    },
939*05dd42feSIan Rogers    {
940*05dd42feSIan 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",
941*05dd42feSIan Rogers        "MetricExpr": "RESOURCE_STALLS.SB / tma_info_clks",
942*05dd42feSIan Rogers        "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group",
943*05dd42feSIan Rogers        "MetricName": "tma_store_bound",
944*05dd42feSIan Rogers        "MetricThreshold": "tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)",
945*05dd42feSIan 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",
946*05dd42feSIan Rogers        "ScaleUnit": "100%"
947*05dd42feSIan Rogers    },
948*05dd42feSIan Rogers    {
949*05dd42feSIan 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",
950*05dd42feSIan Rogers        "MetricExpr": "13 * LD_BLOCKS.STORE_FORWARD / tma_info_clks",
951*05dd42feSIan Rogers        "MetricGroup": "TopdownL4;tma_L4_group;tma_l1_bound_group",
952*05dd42feSIan Rogers        "MetricName": "tma_store_fwd_blk",
953*05dd42feSIan Rogers        "MetricThreshold": "tma_store_fwd_blk > 0.1 & (tma_l1_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
954*05dd42feSIan 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.",
955*05dd42feSIan Rogers        "ScaleUnit": "100%"
956*05dd42feSIan Rogers    },
957*05dd42feSIan Rogers    {
958*05dd42feSIan Rogers        "BriefDescription": "This metric estimates fraction of cycles the CPU spent handling L1D store misses",
959*05dd42feSIan Rogers        "MetricConstraint": "NO_GROUP_EVENTS",
960*05dd42feSIan 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_clks",
961*05dd42feSIan Rogers        "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_issueRFO;tma_issueSL;tma_store_bound_group",
962*05dd42feSIan Rogers        "MetricName": "tma_store_latency",
963*05dd42feSIan Rogers        "MetricThreshold": "tma_store_latency > 0.1 & (tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))",
964*05dd42feSIan 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",
965*05dd42feSIan Rogers        "ScaleUnit": "100%"
966*05dd42feSIan Rogers    },
967*05dd42feSIan Rogers    {
968*05dd42feSIan Rogers        "BriefDescription": "This metric represents Core fraction of cycles CPU dispatched uops on execution port for Store operations",
969*05dd42feSIan Rogers        "MetricExpr": "UOPS_DISPATCHED_PORT.PORT_4 / tma_info_core_clks",
970*05dd42feSIan Rogers        "MetricGroup": "TopdownL5;tma_L5_group;tma_ports_utilized_3m_group",
971*05dd42feSIan Rogers        "MetricName": "tma_store_op_utilization",
972*05dd42feSIan Rogers        "MetricThreshold": "tma_store_op_utilization > 0.6",
973*05dd42feSIan Rogers        "ScaleUnit": "100%"
974*05dd42feSIan Rogers    },
975*05dd42feSIan Rogers    {
976*05dd42feSIan Rogers        "BriefDescription": "This metric serves as an approximation of legacy x87 usage",
977*05dd42feSIan Rogers        "MetricExpr": "INST_RETIRED.X87 * tma_info_uoppi / UOPS_RETIRED.RETIRE_SLOTS",
978*05dd42feSIan Rogers        "MetricGroup": "Compute;TopdownL4;tma_L4_group;tma_fp_arith_group",
979*05dd42feSIan Rogers        "MetricName": "tma_x87_use",
980*05dd42feSIan Rogers        "MetricThreshold": "tma_x87_use > 0.1",
981*05dd42feSIan 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.",
982*05dd42feSIan Rogers        "ScaleUnit": "100%"
9835e49f732SAndi Kleen    }
9845e49f732SAndi Kleen]
985