1[ 2 { 3 "BriefDescription": "C2 residency percent per package", 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / TSC", 5 "MetricGroup": "Power", 6 "MetricName": "C2_Pkg_Residency", 7 "ScaleUnit": "100%" 8 }, 9 { 10 "BriefDescription": "C3 residency percent per core", 11 "MetricExpr": "cstate_core@c3\\-residency@ / TSC", 12 "MetricGroup": "Power", 13 "MetricName": "C3_Core_Residency", 14 "ScaleUnit": "100%" 15 }, 16 { 17 "BriefDescription": "C3 residency percent per package", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / TSC", 19 "MetricGroup": "Power", 20 "MetricName": "C3_Pkg_Residency", 21 "ScaleUnit": "100%" 22 }, 23 { 24 "BriefDescription": "C6 residency percent per core", 25 "MetricExpr": "cstate_core@c6\\-residency@ / TSC", 26 "MetricGroup": "Power", 27 "MetricName": "C6_Core_Residency", 28 "ScaleUnit": "100%" 29 }, 30 { 31 "BriefDescription": "C6 residency percent per package", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / TSC", 33 "MetricGroup": "Power", 34 "MetricName": "C6_Pkg_Residency", 35 "ScaleUnit": "100%" 36 }, 37 { 38 "BriefDescription": "C7 residency percent per core", 39 "MetricExpr": "cstate_core@c7\\-residency@ / TSC", 40 "MetricGroup": "Power", 41 "MetricName": "C7_Core_Residency", 42 "ScaleUnit": "100%" 43 }, 44 { 45 "BriefDescription": "C7 residency percent per package", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / TSC", 47 "MetricGroup": "Power", 48 "MetricName": "C7_Pkg_Residency", 49 "ScaleUnit": "100%" 50 }, 51 { 52 "BriefDescription": "Uncore frequency per die [GHZ]", 53 "MetricExpr": "tma_info_socket_clks / #num_dies / duration_time / 1e9", 54 "MetricGroup": "SoC", 55 "MetricName": "UNCORE_FREQ" 56 }, 57 { 58 "BriefDescription": "Percentage of cycles spent in System Management Interrupts.", 59 "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)", 60 "MetricGroup": "smi", 61 "MetricName": "smi_cycles", 62 "MetricThreshold": "smi_cycles > 0.1", 63 "ScaleUnit": "100%" 64 }, 65 { 66 "BriefDescription": "Number of SMI interrupts.", 67 "MetricExpr": "msr@smi@", 68 "MetricGroup": "smi", 69 "MetricName": "smi_num", 70 "ScaleUnit": "1SMI#" 71 }, 72 { 73 "BriefDescription": "This 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", 74 "MetricConstraint": "NO_GROUP_EVENTS_NMI", 75 "MetricExpr": "1 - (tma_frontend_bound + tma_bad_speculation + tma_retiring)", 76 "MetricGroup": "TmaL1;TopdownL1;tma_L1_group", 77 "MetricName": "tma_backend_bound", 78 "MetricThreshold": "tma_backend_bound > 0.2", 79 "MetricgroupNoGroup": "TopdownL1", 80 "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.", 81 "ScaleUnit": "100%" 82 }, 83 { 84 "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations", 85 "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", 86 "MetricGroup": "TmaL1;TopdownL1;tma_L1_group", 87 "MetricName": "tma_bad_speculation", 88 "MetricThreshold": "tma_bad_speculation > 0.15", 89 "MetricgroupNoGroup": "TopdownL1", 90 "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.", 91 "ScaleUnit": "100%" 92 }, 93 { 94 "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Branch Misprediction", 95 "MetricConstraint": "NO_GROUP_EVENTS", 96 "MetricExpr": "BR_MISP_RETIRED.ALL_BRANCHES / (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT) * tma_bad_speculation", 97 "MetricGroup": "BadSpec;BrMispredicts;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueBM", 98 "MetricName": "tma_branch_mispredicts", 99 "MetricThreshold": "tma_branch_mispredicts > 0.1 & tma_bad_speculation > 0.15", 100 "MetricgroupNoGroup": "TopdownL2", 101 "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", 102 "ScaleUnit": "100%" 103 }, 104 { 105 "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Branch Resteers", 106 "MetricExpr": "12 * (BR_MISP_RETIRED.ALL_BRANCHES + MACHINE_CLEARS.COUNT + BACLEARS.ANY) / tma_info_clks", 107 "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group", 108 "MetricName": "tma_branch_resteers", 109 "MetricThreshold": "tma_branch_resteers > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)", 110 "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", 111 "ScaleUnit": "100%" 112 }, 113 { 114 "BriefDescription": "This metric represents fraction of slots where Core non-memory issues were of a bottleneck", 115 "MetricConstraint": "NO_GROUP_EVENTS", 116 "MetricExpr": "tma_backend_bound - tma_memory_bound", 117 "MetricGroup": "Backend;Compute;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group", 118 "MetricName": "tma_core_bound", 119 "MetricThreshold": "tma_core_bound > 0.1 & tma_backend_bound > 0.2", 120 "MetricgroupNoGroup": "TopdownL2", 121 "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).", 122 "ScaleUnit": "100%" 123 }, 124 { 125 "BriefDescription": "This metric represents fraction of cycles where the Divider unit was active", 126 "MetricExpr": "ARITH.FPU_DIV_ACTIVE / tma_info_core_clks", 127 "MetricGroup": "TopdownL3;tma_L3_group;tma_core_bound_group", 128 "MetricName": "tma_divider", 129 "MetricThreshold": "tma_divider > 0.2 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)", 130 "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", 131 "ScaleUnit": "100%" 132 }, 133 { 134 "BriefDescription": "This metric estimates how often the CPU was stalled on accesses to external memory (DRAM) by loads", 135 "MetricConstraint": "NO_GROUP_EVENTS_SMT", 136 "MetricExpr": "(1 - MEM_LOAD_UOPS_RETIRED.LLC_HIT / (MEM_LOAD_UOPS_RETIRED.LLC_HIT + 7 * MEM_LOAD_UOPS_RETIRED.LLC_MISS)) * CYCLE_ACTIVITY.STALLS_L2_PENDING / tma_info_clks", 137 "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group", 138 "MetricName": "tma_dram_bound", 139 "MetricThreshold": "tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)", 140 "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", 141 "ScaleUnit": "100%" 142 }, 143 { 144 "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to switches from DSB to MITE pipelines", 145 "MetricExpr": "DSB2MITE_SWITCHES.PENALTY_CYCLES / tma_info_clks", 146 "MetricGroup": "DSBmiss;FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB", 147 "MetricName": "tma_dsb_switches", 148 "MetricThreshold": "tma_dsb_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)", 149 "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_lcp", 150 "ScaleUnit": "100%" 151 }, 152 { 153 "BriefDescription": "This metric roughly estimates the fraction of cycles where the Data TLB (DTLB) was missed by load accesses", 154 "MetricExpr": "(7 * DTLB_LOAD_MISSES.STLB_HIT + DTLB_LOAD_MISSES.WALK_DURATION) / tma_info_clks", 155 "MetricGroup": "MemoryTLB;TopdownL4;tma_L4_group;tma_issueTLB;tma_l1_bound_group", 156 "MetricName": "tma_dtlb_load", 157 "MetricThreshold": "tma_dtlb_load > 0.1", 158 "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", 159 "ScaleUnit": "100%" 160 }, 161 { 162 "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend bandwidth issues", 163 "MetricExpr": "tma_frontend_bound - tma_fetch_latency", 164 "MetricGroup": "FetchBW;Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group;tma_issueFB", 165 "MetricName": "tma_fetch_bandwidth", 166 "MetricThreshold": "tma_fetch_bandwidth > 0.1 & tma_frontend_bound > 0.15 & tma_info_ipc / 4 > 0.35", 167 "MetricgroupNoGroup": "TopdownL2", 168 "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_lcp", 169 "ScaleUnit": "100%" 170 }, 171 { 172 "BriefDescription": "This metric represents fraction of slots the CPU was stalled due to Frontend latency issues", 173 "MetricExpr": "4 * min(CPU_CLK_UNHALTED.THREAD, IDQ_UOPS_NOT_DELIVERED.CYCLES_0_UOPS_DELIV.CORE) / tma_info_slots", 174 "MetricGroup": "Frontend;TmaL2;TopdownL2;tma_L2_group;tma_frontend_bound_group", 175 "MetricName": "tma_fetch_latency", 176 "MetricThreshold": "tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15", 177 "MetricgroupNoGroup": "TopdownL2", 178 "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", 179 "ScaleUnit": "100%" 180 }, 181 { 182 "BriefDescription": "This metric represents overall arithmetic floating-point (FP) operations fraction the CPU has executed (retired)", 183 "MetricExpr": "tma_x87_use + tma_fp_scalar + tma_fp_vector", 184 "MetricGroup": "HPC;TopdownL3;tma_L3_group;tma_light_operations_group", 185 "MetricName": "tma_fp_arith", 186 "MetricThreshold": "tma_fp_arith > 0.2 & tma_light_operations > 0.6", 187 "PublicDescription": "This metric represents overall arithmetic floating-point (FP) operations fraction the CPU has executed (retired). Note this metric's value may exceed its parent due to use of \"Uops\" CountDomain and FMA double-counting.", 188 "ScaleUnit": "100%" 189 }, 190 { 191 "BriefDescription": "This metric approximates arithmetic floating-point (FP) scalar uops fraction the CPU has retired", 192 "MetricExpr": "(FP_COMP_OPS_EXE.SSE_SCALAR_SINGLE + FP_COMP_OPS_EXE.SSE_SCALAR_DOUBLE) / UOPS_DISPATCHED.THREAD", 193 "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P", 194 "MetricName": "tma_fp_scalar", 195 "MetricThreshold": "tma_fp_scalar > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)", 196 "PublicDescription": "This metric approximates arithmetic floating-point (FP) scalar uops fraction the CPU has retired. May overcount due to FMA double counting. Related metrics: tma_fp_vector, tma_fp_vector_512b, tma_port_6, tma_ports_utilized_2", 197 "ScaleUnit": "100%" 198 }, 199 { 200 "BriefDescription": "This metric approximates arithmetic floating-point (FP) vector uops fraction the CPU has retired aggregated across all vector widths", 201 "MetricExpr": "(FP_COMP_OPS_EXE.SSE_PACKED_DOUBLE + FP_COMP_OPS_EXE.SSE_PACKED_SINGLE + SIMD_FP_256.PACKED_SINGLE + SIMD_FP_256.PACKED_DOUBLE) / UOPS_DISPATCHED.THREAD", 202 "MetricGroup": "Compute;Flops;TopdownL4;tma_L4_group;tma_fp_arith_group;tma_issue2P", 203 "MetricName": "tma_fp_vector", 204 "MetricThreshold": "tma_fp_vector > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)", 205 "PublicDescription": "This metric approximates arithmetic floating-point (FP) vector uops fraction the CPU has retired aggregated across all vector widths. May overcount due to FMA double counting. Related metrics: tma_fp_scalar, tma_fp_vector_512b, tma_port_6, tma_ports_utilized_2", 206 "ScaleUnit": "100%" 207 }, 208 { 209 "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend", 210 "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / tma_info_slots", 211 "MetricGroup": "PGO;TmaL1;TopdownL1;tma_L1_group", 212 "MetricName": "tma_frontend_bound", 213 "MetricThreshold": "tma_frontend_bound > 0.15", 214 "MetricgroupNoGroup": "TopdownL1", 215 "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.", 216 "ScaleUnit": "100%" 217 }, 218 { 219 "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", 220 "MetricExpr": "tma_microcode_sequencer", 221 "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group", 222 "MetricName": "tma_heavy_operations", 223 "MetricThreshold": "tma_heavy_operations > 0.1", 224 "MetricgroupNoGroup": "TopdownL2", 225 "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.", 226 "ScaleUnit": "100%" 227 }, 228 { 229 "BriefDescription": "Measured Average Frequency for unhalted processors [GHz]", 230 "MetricExpr": "tma_info_turbo_utilization * TSC / 1e9 / duration_time", 231 "MetricGroup": "Power;Summary", 232 "MetricName": "tma_info_average_frequency" 233 }, 234 { 235 "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.", 236 "MetricExpr": "CPU_CLK_UNHALTED.THREAD", 237 "MetricGroup": "Pipeline", 238 "MetricName": "tma_info_clks" 239 }, 240 { 241 "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core", 242 "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))", 243 "MetricGroup": "SMT", 244 "MetricName": "tma_info_core_clks" 245 }, 246 { 247 "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)", 248 "MetricExpr": "INST_RETIRED.ANY / tma_info_core_clks", 249 "MetricGroup": "Ret;SMT;TmaL1;tma_L1_group", 250 "MetricName": "tma_info_coreipc" 251 }, 252 { 253 "BriefDescription": "Cycles Per Instruction (per Logical Processor)", 254 "MetricExpr": "1 / tma_info_ipc", 255 "MetricGroup": "Mem;Pipeline", 256 "MetricName": "tma_info_cpi" 257 }, 258 { 259 "BriefDescription": "Average CPU Utilization", 260 "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / TSC", 261 "MetricGroup": "HPC;Summary", 262 "MetricName": "tma_info_cpu_utilization" 263 }, 264 { 265 "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]", 266 "MetricExpr": "64 * (UNC_M_CAS_COUNT.RD + UNC_M_CAS_COUNT.WR) / 1e9 / duration_time", 267 "MetricGroup": "HPC;Mem;MemoryBW;SoC;tma_issueBW", 268 "MetricName": "tma_info_dram_bw_use", 269 "PublicDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]. Related metrics: tma_mem_bandwidth" 270 }, 271 { 272 "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)", 273 "MetricExpr": "IDQ.DSB_UOPS / (IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS)", 274 "MetricGroup": "DSB;Fed;FetchBW;tma_issueFB", 275 "MetricName": "tma_info_dsb_coverage", 276 "MetricThreshold": "tma_info_dsb_coverage < 0.7 & tma_info_ipc / 4 > 0.35", 277 "PublicDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache). Related metrics: tma_dsb_switches, tma_fetch_bandwidth, tma_lcp" 278 }, 279 { 280 "BriefDescription": "The ratio of Executed- by Issued-Uops", 281 "MetricExpr": "UOPS_DISPATCHED.THREAD / UOPS_ISSUED.ANY", 282 "MetricGroup": "Cor;Pipeline", 283 "MetricName": "tma_info_execute_per_issue", 284 "PublicDescription": "The ratio of Executed- by Issued-Uops. Ratio > 1 suggests high rate of uop micro-fusions. Ratio < 1 suggest high rate of \"execute\" at rename stage." 285 }, 286 { 287 "BriefDescription": "Floating Point Operations Per Cycle", 288 "MetricExpr": "(FP_COMP_OPS_EXE.SSE_SCALAR_SINGLE + FP_COMP_OPS_EXE.SSE_SCALAR_DOUBLE + 2 * FP_COMP_OPS_EXE.SSE_PACKED_DOUBLE + 4 * (FP_COMP_OPS_EXE.SSE_PACKED_SINGLE + SIMD_FP_256.PACKED_DOUBLE) + 8 * SIMD_FP_256.PACKED_SINGLE) / tma_info_core_clks", 289 "MetricGroup": "Flops;Ret", 290 "MetricName": "tma_info_flopc" 291 }, 292 { 293 "BriefDescription": "Giga Floating Point Operations Per Second", 294 "MetricExpr": "(FP_COMP_OPS_EXE.SSE_SCALAR_SINGLE + FP_COMP_OPS_EXE.SSE_SCALAR_DOUBLE + 2 * FP_COMP_OPS_EXE.SSE_PACKED_DOUBLE + 4 * (FP_COMP_OPS_EXE.SSE_PACKED_SINGLE + SIMD_FP_256.PACKED_DOUBLE) + 8 * SIMD_FP_256.PACKED_SINGLE) / 1e9 / duration_time", 295 "MetricGroup": "Cor;Flops;HPC", 296 "MetricName": "tma_info_gflops", 297 "PublicDescription": "Giga Floating Point Operations Per Second. Aggregate across all supported options of: FP precisions, scalar and vector instructions, vector-width and AMX engine." 298 }, 299 { 300 "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is execution) per-core", 301 "MetricExpr": "UOPS_DISPATCHED.THREAD / (cpu@UOPS_DISPATCHED.CORE\\,cmask\\=1@ / 2 if #SMT_on else cpu@UOPS_DISPATCHED.CORE\\,cmask\\=1@)", 302 "MetricGroup": "Backend;Cor;Pipeline;PortsUtil", 303 "MetricName": "tma_info_ilp" 304 }, 305 { 306 "BriefDescription": "Total number of retired Instructions", 307 "MetricExpr": "INST_RETIRED.ANY", 308 "MetricGroup": "Summary;TmaL1;tma_L1_group", 309 "MetricName": "tma_info_instructions", 310 "PublicDescription": "Total number of retired Instructions. Sample with: INST_RETIRED.PREC_DIST" 311 }, 312 { 313 "BriefDescription": "Instructions Per Cycle (per Logical Processor)", 314 "MetricExpr": "INST_RETIRED.ANY / tma_info_clks", 315 "MetricGroup": "Ret;Summary", 316 "MetricName": "tma_info_ipc" 317 }, 318 { 319 "BriefDescription": "Instructions per Far Branch ( Far Branches apply upon transition from application to operating system, handling interrupts, exceptions) [lower number means higher occurrence rate]", 320 "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u", 321 "MetricGroup": "Branches;OS", 322 "MetricName": "tma_info_ipfarbranch", 323 "MetricThreshold": "tma_info_ipfarbranch < 1e6" 324 }, 325 { 326 "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode", 327 "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k", 328 "MetricGroup": "OS", 329 "MetricName": "tma_info_kernel_cpi" 330 }, 331 { 332 "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode", 333 "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD", 334 "MetricGroup": "OS", 335 "MetricName": "tma_info_kernel_utilization", 336 "MetricThreshold": "tma_info_kernel_utilization > 0.05" 337 }, 338 { 339 "BriefDescription": "Average number of parallel data read requests to external memory", 340 "MetricExpr": "UNC_C_TOR_OCCUPANCY.MISS_OPCODE@filter_opc\\=0x182@ / UNC_C_TOR_OCCUPANCY.MISS_OPCODE@filter_opc\\=0x182\\,thresh\\=1@", 341 "MetricGroup": "Mem;MemoryBW;SoC", 342 "MetricName": "tma_info_mem_parallel_reads", 343 "PublicDescription": "Average number of parallel data read requests to external memory. Accounts for demand loads and L1/L2 prefetches" 344 }, 345 { 346 "BriefDescription": "Average latency of data read request to external memory (in nanoseconds)", 347 "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)", 348 "MetricGroup": "Mem;MemoryLat;SoC", 349 "MetricName": "tma_info_mem_read_latency", 350 "PublicDescription": "Average latency of data read request to external memory (in nanoseconds). Accounts for demand loads and L1/L2 prefetches. ([RKL+]memory-controller only)" 351 }, 352 { 353 "BriefDescription": "Average number of Uops retired in cycles where at least one uop has retired.", 354 "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / cpu@UOPS_RETIRED.RETIRE_SLOTS\\,cmask\\=1@", 355 "MetricGroup": "Pipeline;Ret", 356 "MetricName": "tma_info_retire" 357 }, 358 { 359 "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)", 360 "MetricExpr": "4 * tma_info_core_clks", 361 "MetricGroup": "TmaL1;tma_L1_group", 362 "MetricName": "tma_info_slots" 363 }, 364 { 365 "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active", 366 "MetricExpr": "(1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / (CPU_CLK_UNHALTED.REF_XCLK_ANY / 2) if #SMT_on else 0)", 367 "MetricGroup": "SMT", 368 "MetricName": "tma_info_smt_2t_utilization" 369 }, 370 { 371 "BriefDescription": "Socket actual clocks when any core is active on that socket", 372 "MetricExpr": "cbox_0@event\\=0x0@", 373 "MetricGroup": "SoC", 374 "MetricName": "tma_info_socket_clks" 375 }, 376 { 377 "BriefDescription": "Average Frequency Utilization relative nominal frequency", 378 "MetricExpr": "tma_info_clks / CPU_CLK_UNHALTED.REF_TSC", 379 "MetricGroup": "Power", 380 "MetricName": "tma_info_turbo_utilization" 381 }, 382 { 383 "BriefDescription": "Uops Per Instruction", 384 "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY", 385 "MetricGroup": "Pipeline;Ret;Retire", 386 "MetricName": "tma_info_uoppi", 387 "MetricThreshold": "tma_info_uoppi > 1.05" 388 }, 389 { 390 "BriefDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses", 391 "MetricExpr": "(12 * ITLB_MISSES.STLB_HIT + ITLB_MISSES.WALK_DURATION) / tma_info_clks", 392 "MetricGroup": "BigFoot;FetchLat;MemoryTLB;TopdownL3;tma_L3_group;tma_fetch_latency_group", 393 "MetricName": "tma_itlb_misses", 394 "MetricThreshold": "tma_itlb_misses > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)", 395 "PublicDescription": "This metric represents fraction of cycles the CPU was stalled due to Instruction TLB (ITLB) misses. Sample with: ITLB_MISSES.WALK_COMPLETED", 396 "ScaleUnit": "100%" 397 }, 398 { 399 "BriefDescription": "This metric estimates how often the CPU was stalled due to loads accesses to L3 cache or contended with a sibling Core", 400 "MetricConstraint": "NO_GROUP_EVENTS_SMT", 401 "MetricExpr": "MEM_LOAD_UOPS_RETIRED.LLC_HIT / (MEM_LOAD_UOPS_RETIRED.LLC_HIT + 7 * MEM_LOAD_UOPS_RETIRED.LLC_MISS) * CYCLE_ACTIVITY.STALLS_L2_PENDING / tma_info_clks", 402 "MetricGroup": "CacheMisses;MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group", 403 "MetricName": "tma_l3_bound", 404 "MetricThreshold": "tma_l3_bound > 0.05 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)", 405 "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", 406 "ScaleUnit": "100%" 407 }, 408 { 409 "BriefDescription": "This metric represents fraction of cycles CPU was stalled due to Length Changing Prefixes (LCPs)", 410 "MetricExpr": "ILD_STALL.LCP / tma_info_clks", 411 "MetricGroup": "FetchLat;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueFB", 412 "MetricName": "tma_lcp", 413 "MetricThreshold": "tma_lcp > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)", 414 "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", 415 "ScaleUnit": "100%" 416 }, 417 { 418 "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)", 419 "MetricExpr": "tma_retiring - tma_heavy_operations", 420 "MetricGroup": "Retire;TmaL2;TopdownL2;tma_L2_group;tma_retiring_group", 421 "MetricName": "tma_light_operations", 422 "MetricThreshold": "tma_light_operations > 0.6", 423 "MetricgroupNoGroup": "TopdownL2", 424 "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", 425 "ScaleUnit": "100%" 426 }, 427 { 428 "BriefDescription": "This metric represents fraction of slots the CPU has wasted due to Machine Clears", 429 "MetricConstraint": "NO_GROUP_EVENTS", 430 "MetricExpr": "tma_bad_speculation - tma_branch_mispredicts", 431 "MetricGroup": "BadSpec;MachineClears;TmaL2;TopdownL2;tma_L2_group;tma_bad_speculation_group;tma_issueMC;tma_issueSyncxn", 432 "MetricName": "tma_machine_clears", 433 "MetricThreshold": "tma_machine_clears > 0.1 & tma_bad_speculation > 0.15", 434 "MetricgroupNoGroup": "TopdownL2", 435 "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_l1_bound, tma_microcode_sequencer, tma_ms_switches, tma_remote_cache", 436 "ScaleUnit": "100%" 437 }, 438 { 439 "BriefDescription": "This metric estimates fraction of cycles where the core's performance was likely hurt due to approaching bandwidth limits of external memory (DRAM)", 440 "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, cpu@OFFCORE_REQUESTS_OUTSTANDING.ALL_DATA_RD\\,cmask\\=6@) / tma_info_clks", 441 "MetricGroup": "MemoryBW;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueBW", 442 "MetricName": "tma_mem_bandwidth", 443 "MetricThreshold": "tma_mem_bandwidth > 0.2 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))", 444 "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_info_dram_bw_use", 445 "ScaleUnit": "100%" 446 }, 447 { 448 "BriefDescription": "This metric estimates fraction of cycles where the performance was likely hurt due to latency from external memory (DRAM)", 449 "MetricExpr": "min(CPU_CLK_UNHALTED.THREAD, OFFCORE_REQUESTS_OUTSTANDING.CYCLES_WITH_DATA_RD) / tma_info_clks - tma_mem_bandwidth", 450 "MetricGroup": "MemoryLat;Offcore;TopdownL4;tma_L4_group;tma_dram_bound_group;tma_issueLat", 451 "MetricName": "tma_mem_latency", 452 "MetricThreshold": "tma_mem_latency > 0.1 & (tma_dram_bound > 0.1 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2))", 453 "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: ", 454 "ScaleUnit": "100%" 455 }, 456 { 457 "BriefDescription": "This metric represents fraction of slots the Memory subsystem within the Backend was a bottleneck", 458 "MetricConstraint": "NO_GROUP_EVENTS", 459 "MetricExpr": "(min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.STALLS_L1D_PENDING) + RESOURCE_STALLS.SB) / (min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.CYCLES_NO_DISPATCH) + cpu@UOPS_DISPATCHED.THREAD\\,cmask\\=1@ - (cpu@UOPS_DISPATCHED.THREAD\\,cmask\\=3@ if tma_info_ipc > 1.8 else cpu@UOPS_DISPATCHED.THREAD\\,cmask\\=2@) - (RS_EVENTS.EMPTY_CYCLES if tma_fetch_latency > 0.1 else 0) + RESOURCE_STALLS.SB) * tma_backend_bound", 460 "MetricGroup": "Backend;TmaL2;TopdownL2;tma_L2_group;tma_backend_bound_group", 461 "MetricName": "tma_memory_bound", 462 "MetricThreshold": "tma_memory_bound > 0.2 & tma_backend_bound > 0.2", 463 "MetricgroupNoGroup": "TopdownL2", 464 "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).", 465 "ScaleUnit": "100%" 466 }, 467 { 468 "BriefDescription": "This metric represents fraction of slots the CPU was retiring uops fetched by the Microcode Sequencer (MS) unit", 469 "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / UOPS_ISSUED.ANY * IDQ.MS_UOPS / tma_info_slots", 470 "MetricGroup": "MicroSeq;TopdownL3;tma_L3_group;tma_heavy_operations_group;tma_issueMC;tma_issueMS", 471 "MetricName": "tma_microcode_sequencer", 472 "MetricThreshold": "tma_microcode_sequencer > 0.05 & tma_heavy_operations > 0.1", 473 "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", 474 "ScaleUnit": "100%" 475 }, 476 { 477 "BriefDescription": "This metric estimates the fraction of cycles when the CPU was stalled due to switches of uop delivery to the Microcode Sequencer (MS)", 478 "MetricExpr": "3 * IDQ.MS_SWITCHES / tma_info_clks", 479 "MetricGroup": "FetchLat;MicroSeq;TopdownL3;tma_L3_group;tma_fetch_latency_group;tma_issueMC;tma_issueMS;tma_issueMV;tma_issueSO", 480 "MetricName": "tma_ms_switches", 481 "MetricThreshold": "tma_ms_switches > 0.05 & (tma_fetch_latency > 0.1 & tma_frontend_bound > 0.15)", 482 "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", 483 "ScaleUnit": "100%" 484 }, 485 { 486 "BriefDescription": "This metric estimates fraction of cycles the CPU performance was potentially limited due to Core computation issues (non divider-related)", 487 "MetricConstraint": "NO_GROUP_EVENTS", 488 "MetricExpr": "(min(CPU_CLK_UNHALTED.THREAD, CYCLE_ACTIVITY.CYCLES_NO_DISPATCH) + cpu@UOPS_DISPATCHED.THREAD\\,cmask\\=1@ - (cpu@UOPS_DISPATCHED.THREAD\\,cmask\\=3@ if tma_info_ipc > 1.8 else cpu@UOPS_DISPATCHED.THREAD\\,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_L1D_PENDING)) / tma_info_clks", 489 "MetricGroup": "PortsUtil;TopdownL3;tma_L3_group;tma_core_bound_group", 490 "MetricName": "tma_ports_utilization", 491 "MetricThreshold": "tma_ports_utilization > 0.15 & (tma_core_bound > 0.1 & tma_backend_bound > 0.2)", 492 "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.", 493 "ScaleUnit": "100%" 494 }, 495 { 496 "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired", 497 "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / tma_info_slots", 498 "MetricGroup": "TmaL1;TopdownL1;tma_L1_group", 499 "MetricName": "tma_retiring", 500 "MetricThreshold": "tma_retiring > 0.7 | tma_heavy_operations > 0.1", 501 "MetricgroupNoGroup": "TopdownL1", 502 "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", 503 "ScaleUnit": "100%" 504 }, 505 { 506 "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", 507 "MetricExpr": "RESOURCE_STALLS.SB / tma_info_clks", 508 "MetricGroup": "MemoryBound;TmaL3mem;TopdownL3;tma_L3_group;tma_memory_bound_group", 509 "MetricName": "tma_store_bound", 510 "MetricThreshold": "tma_store_bound > 0.2 & (tma_memory_bound > 0.2 & tma_backend_bound > 0.2)", 511 "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", 512 "ScaleUnit": "100%" 513 }, 514 { 515 "BriefDescription": "This metric serves as an approximation of legacy x87 usage", 516 "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS * FP_COMP_OPS_EXE.X87 / UOPS_DISPATCHED.THREAD", 517 "MetricGroup": "Compute;TopdownL4;tma_L4_group;tma_fp_arith_group", 518 "MetricName": "tma_x87_use", 519 "MetricThreshold": "tma_x87_use > 0.1 & (tma_fp_arith > 0.2 & tma_light_operations > 0.6)", 520 "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.", 521 "ScaleUnit": "100%" 522 } 523] 524