xref: /freebsd/lib/libpmc/pmu-events/arch/x86/jaketown/jkt-metrics.json (revision 7fdf597e96a02165cfe22ff357b857d5fa15ed8a)
1[
2    {
3        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend",
4        "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / (4 * CPU_CLK_UNHALTED.THREAD)",
5        "MetricGroup": "TopdownL1",
6        "MetricName": "Frontend_Bound",
7        "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 Machine_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."
8    },
9    {
10        "BriefDescription": "This category represents fraction of slots where the processor's Frontend undersupplies its Backend. SMT version; use when SMT is enabled and measuring per logical CPU.",
11        "MetricExpr": "IDQ_UOPS_NOT_DELIVERED.CORE / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))",
12        "MetricGroup": "TopdownL1_SMT",
13        "MetricName": "Frontend_Bound_SMT",
14        "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 Machine_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. SMT version; use when SMT is enabled and measuring per logical CPU."
15    },
16    {
17        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations",
18        "MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4 * CPU_CLK_UNHALTED.THREAD)",
19        "MetricGroup": "TopdownL1",
20        "MetricName": "Bad_Speculation",
21        "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."
22    },
23    {
24        "BriefDescription": "This category represents fraction of slots wasted due to incorrect speculations. SMT version; use when SMT is enabled and measuring per logical CPU.",
25        "MetricExpr": "( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * ( INT_MISC.RECOVERY_CYCLES_ANY / 2 ) ) / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))",
26        "MetricGroup": "TopdownL1_SMT",
27        "MetricName": "Bad_Speculation_SMT",
28        "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. SMT version; use when SMT is enabled and measuring per logical CPU."
29    },
30    {
31        "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",
32        "MetricConstraint": "NO_NMI_WATCHDOG",
33        "MetricExpr": "1 - ( (IDQ_UOPS_NOT_DELIVERED.CORE / (4 * CPU_CLK_UNHALTED.THREAD)) + (( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * INT_MISC.RECOVERY_CYCLES ) / (4 * CPU_CLK_UNHALTED.THREAD)) + (UOPS_RETIRED.RETIRE_SLOTS / (4 * CPU_CLK_UNHALTED.THREAD)) )",
34        "MetricGroup": "TopdownL1",
35        "MetricName": "Backend_Bound",
36        "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."
37    },
38    {
39        "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. SMT version; use when SMT is enabled and measuring per logical CPU.",
40        "MetricExpr": "1 - ( (IDQ_UOPS_NOT_DELIVERED.CORE / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))) + (( UOPS_ISSUED.ANY - UOPS_RETIRED.RETIRE_SLOTS + 4 * ( INT_MISC.RECOVERY_CYCLES_ANY / 2 ) ) / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))) + (UOPS_RETIRED.RETIRE_SLOTS / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))) )",
41        "MetricGroup": "TopdownL1_SMT",
42        "MetricName": "Backend_Bound_SMT",
43        "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. SMT version; use when SMT is enabled and measuring per logical CPU."
44    },
45    {
46        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired",
47        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / (4 * CPU_CLK_UNHALTED.THREAD)",
48        "MetricGroup": "TopdownL1",
49        "MetricName": "Retiring",
50        "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. "
51    },
52    {
53        "BriefDescription": "This category represents fraction of slots utilized by useful work i.e. issued uops that eventually get retired. SMT version; use when SMT is enabled and measuring per logical CPU.",
54        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / (4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) ))",
55        "MetricGroup": "TopdownL1_SMT",
56        "MetricName": "Retiring_SMT",
57        "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. SMT version; use when SMT is enabled and measuring per logical CPU."
58    },
59    {
60        "BriefDescription": "Instructions Per Cycle (per Logical Processor)",
61        "MetricExpr": "INST_RETIRED.ANY / CPU_CLK_UNHALTED.THREAD",
62        "MetricGroup": "Ret;Summary",
63        "MetricName": "IPC"
64    },
65    {
66        "BriefDescription": "Uops Per Instruction",
67        "MetricExpr": "UOPS_RETIRED.RETIRE_SLOTS / INST_RETIRED.ANY",
68        "MetricGroup": "Pipeline;Ret;Retire",
69        "MetricName": "UPI"
70    },
71    {
72        "BriefDescription": "Cycles Per Instruction (per Logical Processor)",
73        "MetricExpr": "1 / (INST_RETIRED.ANY / CPU_CLK_UNHALTED.THREAD)",
74        "MetricGroup": "Pipeline;Mem",
75        "MetricName": "CPI"
76    },
77    {
78        "BriefDescription": "Per-Logical Processor actual clocks when the Logical Processor is active.",
79        "MetricExpr": "CPU_CLK_UNHALTED.THREAD",
80        "MetricGroup": "Pipeline",
81        "MetricName": "CLKS"
82    },
83    {
84        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
85        "MetricExpr": "4 * CPU_CLK_UNHALTED.THREAD",
86        "MetricGroup": "TmaL1",
87        "MetricName": "SLOTS"
88    },
89    {
90        "BriefDescription": "Total issue-pipeline slots (per-Physical Core till ICL; per-Logical Processor ICL onward)",
91        "MetricExpr": "4 * ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )",
92        "MetricGroup": "TmaL1_SMT",
93        "MetricName": "SLOTS_SMT"
94    },
95    {
96        "BriefDescription": "The ratio of Executed- by Issued-Uops",
97        "MetricExpr": "UOPS_DISPATCHED.THREAD / UOPS_ISSUED.ANY",
98        "MetricGroup": "Cor;Pipeline",
99        "MetricName": "Execute_per_Issue",
100        "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."
101    },
102    {
103        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
104        "MetricExpr": "INST_RETIRED.ANY / CPU_CLK_UNHALTED.THREAD",
105        "MetricGroup": "Ret;SMT;TmaL1",
106        "MetricName": "CoreIPC"
107    },
108    {
109        "BriefDescription": "Instructions Per Cycle across hyper-threads (per physical core)",
110        "MetricExpr": "INST_RETIRED.ANY / ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )",
111        "MetricGroup": "Ret;SMT;TmaL1_SMT",
112        "MetricName": "CoreIPC_SMT"
113    },
114    {
115        "BriefDescription": "Floating Point Operations Per Cycle",
116        "MetricExpr": "( 1 * ( 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 ) / CPU_CLK_UNHALTED.THREAD",
117        "MetricGroup": "Ret;Flops",
118        "MetricName": "FLOPc"
119    },
120    {
121        "BriefDescription": "Floating Point Operations Per Cycle",
122        "MetricExpr": "( 1 * ( 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 ) / ( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )",
123        "MetricGroup": "Ret;Flops_SMT",
124        "MetricName": "FLOPc_SMT"
125    },
126    {
127        "BriefDescription": "Instruction-Level-Parallelism (average number of uops executed when there is at least 1 uop executed)",
128        "MetricExpr": "UOPS_DISPATCHED.THREAD / (( cpu@UOPS_DISPATCHED.CORE\\,cmask\\=1@ / 2 ) if #SMT_on else cpu@UOPS_DISPATCHED.CORE\\,cmask\\=1@)",
129        "MetricGroup": "Backend;Cor;Pipeline;PortsUtil",
130        "MetricName": "ILP"
131    },
132    {
133        "BriefDescription": "Core actual clocks when any Logical Processor is active on the Physical Core",
134        "MetricExpr": "( ( CPU_CLK_UNHALTED.THREAD / 2 ) * ( 1 + CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / CPU_CLK_UNHALTED.REF_XCLK ) )",
135        "MetricGroup": "SMT",
136        "MetricName": "CORE_CLKS"
137    },
138    {
139        "BriefDescription": "Total number of retired Instructions, Sample with: INST_RETIRED.PREC_DIST",
140        "MetricExpr": "INST_RETIRED.ANY",
141        "MetricGroup": "Summary;TmaL1",
142        "MetricName": "Instructions"
143    },
144    {
145        "BriefDescription": "Fraction of Uops delivered by the DSB (aka Decoded ICache; or Uop Cache)",
146        "MetricExpr": "IDQ.DSB_UOPS / (( IDQ.DSB_UOPS + LSD.UOPS + IDQ.MITE_UOPS + IDQ.MS_UOPS ) )",
147        "MetricGroup": "DSB;Fed;FetchBW",
148        "MetricName": "DSB_Coverage"
149    },
150    {
151        "BriefDescription": "Average CPU Utilization",
152        "MetricExpr": "CPU_CLK_UNHALTED.REF_TSC / msr@tsc@",
153        "MetricGroup": "HPC;Summary",
154        "MetricName": "CPU_Utilization"
155    },
156    {
157        "BriefDescription": "Measured Average Frequency for unhalted processors [GHz]",
158        "MetricExpr": "(CPU_CLK_UNHALTED.THREAD / CPU_CLK_UNHALTED.REF_TSC) * msr@tsc@ / 1000000000 / duration_time",
159        "MetricGroup": "Summary;Power",
160        "MetricName": "Average_Frequency"
161    },
162    {
163        "BriefDescription": "Giga Floating Point Operations Per Second",
164        "MetricExpr": "( ( 1 * ( 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 ) / 1000000000 ) / duration_time",
165        "MetricGroup": "Cor;Flops;HPC",
166        "MetricName": "GFLOPs"
167    },
168    {
169        "BriefDescription": "Average Frequency Utilization relative nominal frequency",
170        "MetricExpr": "CPU_CLK_UNHALTED.THREAD / CPU_CLK_UNHALTED.REF_TSC",
171        "MetricGroup": "Power",
172        "MetricName": "Turbo_Utilization"
173    },
174    {
175        "BriefDescription": "Fraction of cycles where both hardware Logical Processors were active",
176        "MetricExpr": "1 - CPU_CLK_UNHALTED.ONE_THREAD_ACTIVE / ( CPU_CLK_UNHALTED.REF_XCLK_ANY / 2 ) if #SMT_on else 0",
177        "MetricGroup": "SMT",
178        "MetricName": "SMT_2T_Utilization"
179    },
180    {
181        "BriefDescription": "Fraction of cycles spent in the Operating System (OS) Kernel mode",
182        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / CPU_CLK_UNHALTED.THREAD",
183        "MetricGroup": "OS",
184        "MetricName": "Kernel_Utilization"
185    },
186    {
187        "BriefDescription": "Cycles Per Instruction for the Operating System (OS) Kernel mode",
188        "MetricExpr": "CPU_CLK_UNHALTED.THREAD_P:k / INST_RETIRED.ANY_P:k",
189        "MetricGroup": "OS",
190        "MetricName": "Kernel_CPI"
191    },
192    {
193        "BriefDescription": "Average external Memory Bandwidth Use for reads and writes [GB / sec]",
194        "MetricExpr": "( 64 * ( uncore_imc@cas_count_read@ + uncore_imc@cas_count_write@ ) / 1000000000 ) / duration_time",
195        "MetricGroup": "HPC;Mem;MemoryBW;SoC",
196        "MetricName": "DRAM_BW_Use"
197    },
198    {
199        "BriefDescription": "Socket actual clocks when any core is active on that socket",
200        "MetricExpr": "cbox_0@event\\=0x0@",
201        "MetricGroup": "SoC",
202        "MetricName": "Socket_CLKS"
203    },
204    {
205        "BriefDescription": "Instructions per Far Branch ( Far Branches apply upon transition from application to operating system, handling interrupts, exceptions) [lower number means higher occurrence rate]",
206        "MetricExpr": "INST_RETIRED.ANY / BR_INST_RETIRED.FAR_BRANCH:u",
207        "MetricGroup": "Branches;OS",
208        "MetricName": "IpFarBranch"
209    },
210    {
211        "BriefDescription": "C3 residency percent per core",
212        "MetricExpr": "(cstate_core@c3\\-residency@ / msr@tsc@) * 100",
213        "MetricGroup": "Power",
214        "MetricName": "C3_Core_Residency"
215    },
216    {
217        "BriefDescription": "C6 residency percent per core",
218        "MetricExpr": "(cstate_core@c6\\-residency@ / msr@tsc@) * 100",
219        "MetricGroup": "Power",
220        "MetricName": "C6_Core_Residency"
221    },
222    {
223        "BriefDescription": "C7 residency percent per core",
224        "MetricExpr": "(cstate_core@c7\\-residency@ / msr@tsc@) * 100",
225        "MetricGroup": "Power",
226        "MetricName": "C7_Core_Residency"
227    },
228    {
229        "BriefDescription": "C2 residency percent per package",
230        "MetricExpr": "(cstate_pkg@c2\\-residency@ / msr@tsc@) * 100",
231        "MetricGroup": "Power",
232        "MetricName": "C2_Pkg_Residency"
233    },
234    {
235        "BriefDescription": "C3 residency percent per package",
236        "MetricExpr": "(cstate_pkg@c3\\-residency@ / msr@tsc@) * 100",
237        "MetricGroup": "Power",
238        "MetricName": "C3_Pkg_Residency"
239    },
240    {
241        "BriefDescription": "C6 residency percent per package",
242        "MetricExpr": "(cstate_pkg@c6\\-residency@ / msr@tsc@) * 100",
243        "MetricGroup": "Power",
244        "MetricName": "C6_Pkg_Residency"
245    },
246    {
247        "BriefDescription": "C7 residency percent per package",
248        "MetricExpr": "(cstate_pkg@c7\\-residency@ / msr@tsc@) * 100",
249        "MetricGroup": "Power",
250        "MetricName": "C7_Pkg_Residency"
251    }
252]
253