xref: /freebsd/lib/libpmc/pmu-events/arch/x86/amdzen4/recommended.json (revision 278d6950943a9fec2bddb037b547c04a847c54ba)
1*278d6950SAlexander Motin[
2*278d6950SAlexander Motin  {
3*278d6950SAlexander Motin    "MetricName": "branch_misprediction_ratio",
4*278d6950SAlexander Motin    "BriefDescription": "Execution-time branch misprediction ratio (non-speculative).",
5*278d6950SAlexander Motin    "MetricExpr": "d_ratio(ex_ret_brn_misp, ex_ret_brn)",
6*278d6950SAlexander Motin    "MetricGroup": "branch_prediction",
7*278d6950SAlexander Motin    "ScaleUnit": "100%"
8*278d6950SAlexander Motin  },
9*278d6950SAlexander Motin  {
10*278d6950SAlexander Motin    "EventName": "all_data_cache_accesses",
11*278d6950SAlexander Motin    "EventCode": "0x29",
12*278d6950SAlexander Motin    "BriefDescription": "All data cache accesses.",
13*278d6950SAlexander Motin    "UMask": "0x07"
14*278d6950SAlexander Motin  },
15*278d6950SAlexander Motin  {
16*278d6950SAlexander Motin    "MetricName": "all_l2_cache_accesses",
17*278d6950SAlexander Motin    "BriefDescription": "All L2 cache accesses.",
18*278d6950SAlexander Motin    "MetricExpr": "l2_request_g1.all_no_prefetch + l2_pf_hit_l2.all + l2_pf_miss_l2_hit_l3.all + l2_pf_miss_l2_l3.all",
19*278d6950SAlexander Motin    "MetricGroup": "l2_cache"
20*278d6950SAlexander Motin  },
21*278d6950SAlexander Motin  {
22*278d6950SAlexander Motin    "MetricName": "l2_cache_accesses_from_l1_ic_misses",
23*278d6950SAlexander Motin    "BriefDescription": "L2 cache accesses from L1 instruction cache misses (including prefetch).",
24*278d6950SAlexander Motin    "MetricExpr": "l2_request_g1.cacheable_ic_read",
25*278d6950SAlexander Motin    "MetricGroup": "l2_cache"
26*278d6950SAlexander Motin  },
27*278d6950SAlexander Motin  {
28*278d6950SAlexander Motin    "MetricName": "l2_cache_accesses_from_l1_dc_misses",
29*278d6950SAlexander Motin    "BriefDescription": "L2 cache accesses from L1 data cache misses (including prefetch).",
30*278d6950SAlexander Motin    "MetricExpr": "l2_request_g1.all_dc",
31*278d6950SAlexander Motin    "MetricGroup": "l2_cache"
32*278d6950SAlexander Motin  },
33*278d6950SAlexander Motin  {
34*278d6950SAlexander Motin    "MetricName": "l2_cache_accesses_from_l2_hwpf",
35*278d6950SAlexander Motin    "BriefDescription": "L2 cache accesses from L2 cache hardware prefetcher.",
36*278d6950SAlexander Motin    "MetricExpr": "l2_pf_hit_l2.all + l2_pf_miss_l2_hit_l3.all + l2_pf_miss_l2_l3.all",
37*278d6950SAlexander Motin    "MetricGroup": "l2_cache"
38*278d6950SAlexander Motin  },
39*278d6950SAlexander Motin  {
40*278d6950SAlexander Motin    "MetricName": "all_l2_cache_misses",
41*278d6950SAlexander Motin    "BriefDescription": "All L2 cache misses.",
42*278d6950SAlexander Motin    "MetricExpr": "l2_cache_req_stat.ic_dc_miss_in_l2 + l2_pf_miss_l2_hit_l3.all + l2_pf_miss_l2_l3.all",
43*278d6950SAlexander Motin    "MetricGroup": "l2_cache"
44*278d6950SAlexander Motin  },
45*278d6950SAlexander Motin  {
46*278d6950SAlexander Motin    "MetricName": "l2_cache_misses_from_l1_ic_miss",
47*278d6950SAlexander Motin    "BriefDescription": "L2 cache misses from L1 instruction cache misses.",
48*278d6950SAlexander Motin    "MetricExpr": "l2_cache_req_stat.ic_fill_miss",
49*278d6950SAlexander Motin    "MetricGroup": "l2_cache"
50*278d6950SAlexander Motin  },
51*278d6950SAlexander Motin  {
52*278d6950SAlexander Motin    "MetricName": "l2_cache_misses_from_l1_dc_miss",
53*278d6950SAlexander Motin    "BriefDescription": "L2 cache misses from L1 data cache misses.",
54*278d6950SAlexander Motin    "MetricExpr": "l2_cache_req_stat.ls_rd_blk_c",
55*278d6950SAlexander Motin    "MetricGroup": "l2_cache"
56*278d6950SAlexander Motin  },
57*278d6950SAlexander Motin  {
58*278d6950SAlexander Motin    "MetricName": "l2_cache_misses_from_l2_hwpf",
59*278d6950SAlexander Motin    "BriefDescription": "L2 cache misses from L2 cache hardware prefetcher.",
60*278d6950SAlexander Motin    "MetricExpr": "l2_pf_miss_l2_hit_l3.all + l2_pf_miss_l2_l3.all",
61*278d6950SAlexander Motin    "MetricGroup": "l2_cache"
62*278d6950SAlexander Motin  },
63*278d6950SAlexander Motin  {
64*278d6950SAlexander Motin    "MetricName": "all_l2_cache_hits",
65*278d6950SAlexander Motin    "BriefDescription": "All L2 cache hits.",
66*278d6950SAlexander Motin    "MetricExpr": "l2_cache_req_stat.ic_dc_hit_in_l2 + l2_pf_hit_l2.all",
67*278d6950SAlexander Motin    "MetricGroup": "l2_cache"
68*278d6950SAlexander Motin  },
69*278d6950SAlexander Motin  {
70*278d6950SAlexander Motin    "MetricName": "l2_cache_hits_from_l1_ic_miss",
71*278d6950SAlexander Motin    "BriefDescription": "L2 cache hits from L1 instruction cache misses.",
72*278d6950SAlexander Motin    "MetricExpr": "l2_cache_req_stat.ic_hit_in_l2",
73*278d6950SAlexander Motin    "MetricGroup": "l2_cache"
74*278d6950SAlexander Motin  },
75*278d6950SAlexander Motin  {
76*278d6950SAlexander Motin    "MetricName": "l2_cache_hits_from_l1_dc_miss",
77*278d6950SAlexander Motin    "BriefDescription": "L2 cache hits from L1 data cache misses.",
78*278d6950SAlexander Motin    "MetricExpr": "l2_cache_req_stat.dc_hit_in_l2",
79*278d6950SAlexander Motin    "MetricGroup": "l2_cache"
80*278d6950SAlexander Motin  },
81*278d6950SAlexander Motin  {
82*278d6950SAlexander Motin    "MetricName": "l2_cache_hits_from_l2_hwpf",
83*278d6950SAlexander Motin    "BriefDescription": "L2 cache hits from L2 cache hardware prefetcher.",
84*278d6950SAlexander Motin    "MetricExpr": "l2_pf_hit_l2.all",
85*278d6950SAlexander Motin    "MetricGroup": "l2_cache"
86*278d6950SAlexander Motin  },
87*278d6950SAlexander Motin  {
88*278d6950SAlexander Motin    "MetricName": "l3_cache_accesses",
89*278d6950SAlexander Motin    "BriefDescription": "L3 cache accesses.",
90*278d6950SAlexander Motin    "MetricExpr": "l3_lookup_state.all_coherent_accesses_to_l3",
91*278d6950SAlexander Motin    "MetricGroup": "l3_cache"
92*278d6950SAlexander Motin  },
93*278d6950SAlexander Motin  {
94*278d6950SAlexander Motin    "MetricName": "l3_misses",
95*278d6950SAlexander Motin    "BriefDescription": "L3 misses (including cacheline state change requests).",
96*278d6950SAlexander Motin    "MetricExpr": "l3_lookup_state.l3_miss",
97*278d6950SAlexander Motin    "MetricGroup": "l3_cache"
98*278d6950SAlexander Motin  },
99*278d6950SAlexander Motin  {
100*278d6950SAlexander Motin    "MetricName": "l3_read_miss_latency",
101*278d6950SAlexander Motin    "BriefDescription": "Average L3 read miss latency (in core clocks).",
102*278d6950SAlexander Motin    "MetricExpr": "(l3_xi_sampled_latency.all * 10) / l3_xi_sampled_latency_requests.all",
103*278d6950SAlexander Motin    "MetricGroup": "l3_cache",
104*278d6950SAlexander Motin    "ScaleUnit": "1core clocks"
105*278d6950SAlexander Motin  },
106*278d6950SAlexander Motin  {
107*278d6950SAlexander Motin    "MetricName": "op_cache_fetch_miss_ratio",
108*278d6950SAlexander Motin    "BriefDescription": "Op cache miss ratio for all fetches.",
109*278d6950SAlexander Motin    "MetricExpr": "d_ratio(op_cache_hit_miss.op_cache_miss, op_cache_hit_miss.all_op_cache_accesses)",
110*278d6950SAlexander Motin    "ScaleUnit": "100%"
111*278d6950SAlexander Motin  },
112*278d6950SAlexander Motin  {
113*278d6950SAlexander Motin    "MetricName": "ic_fetch_miss_ratio",
114*278d6950SAlexander Motin    "BriefDescription": "Instruction cache miss ratio for all fetches. An instruction cache miss will not be counted by this metric if it is an OC hit.",
115*278d6950SAlexander Motin    "MetricExpr": "d_ratio(ic_tag_hit_miss.instruction_cache_miss, ic_tag_hit_miss.all_instruction_cache_accesses)",
116*278d6950SAlexander Motin    "ScaleUnit": "100%"
117*278d6950SAlexander Motin  },
118*278d6950SAlexander Motin  {
119*278d6950SAlexander Motin    "MetricName": "l1_data_cache_fills_from_memory",
120*278d6950SAlexander Motin    "BriefDescription": "L1 data cache fills from DRAM or MMIO in any NUMA node.",
121*278d6950SAlexander Motin    "MetricExpr": "ls_any_fills_from_sys.dram_io_all",
122*278d6950SAlexander Motin    "MetricGroup": "l1_dcache"
123*278d6950SAlexander Motin  },
124*278d6950SAlexander Motin  {
125*278d6950SAlexander Motin    "MetricName": "l1_data_cache_fills_from_remote_node",
126*278d6950SAlexander Motin    "BriefDescription": "L1 data cache fills from a different NUMA node.",
127*278d6950SAlexander Motin    "MetricExpr": "ls_any_fills_from_sys.far_all",
128*278d6950SAlexander Motin    "MetricGroup": "l1_dcache"
129*278d6950SAlexander Motin  },
130*278d6950SAlexander Motin  {
131*278d6950SAlexander Motin    "MetricName": "l1_data_cache_fills_from_same_ccx",
132*278d6950SAlexander Motin    "BriefDescription": "L1 data cache fills from within the same CCX.",
133*278d6950SAlexander Motin    "MetricExpr": "ls_any_fills_from_sys.local_all",
134*278d6950SAlexander Motin    "MetricGroup": "l1_dcache"
135*278d6950SAlexander Motin  },
136*278d6950SAlexander Motin  {
137*278d6950SAlexander Motin    "MetricName": "l1_data_cache_fills_from_different_ccx",
138*278d6950SAlexander Motin    "BriefDescription": "L1 data cache fills from another CCX cache in any NUMA node.",
139*278d6950SAlexander Motin    "MetricExpr": "ls_any_fills_from_sys.remote_cache",
140*278d6950SAlexander Motin    "MetricGroup": "l1_dcache"
141*278d6950SAlexander Motin  },
142*278d6950SAlexander Motin  {
143*278d6950SAlexander Motin    "MetricName": "all_l1_data_cache_fills",
144*278d6950SAlexander Motin    "BriefDescription": "All L1 data cache fills.",
145*278d6950SAlexander Motin    "MetricExpr": "ls_any_fills_from_sys.all",
146*278d6950SAlexander Motin    "MetricGroup": "l1_dcache"
147*278d6950SAlexander Motin  },
148*278d6950SAlexander Motin  {
149*278d6950SAlexander Motin    "MetricName": "l1_demand_data_cache_fills_from_local_l2",
150*278d6950SAlexander Motin    "BriefDescription": "L1 demand data cache fills from local L2 cache.",
151*278d6950SAlexander Motin    "MetricExpr": "ls_dmnd_fills_from_sys.local_l2",
152*278d6950SAlexander Motin    "MetricGroup": "l1_dcache"
153*278d6950SAlexander Motin  },
154*278d6950SAlexander Motin  {
155*278d6950SAlexander Motin    "MetricName": "l1_demand_data_cache_fills_from_same_ccx",
156*278d6950SAlexander Motin    "BriefDescription": "L1 demand data cache fills from within the same CCX.",
157*278d6950SAlexander Motin    "MetricExpr": "ls_dmnd_fills_from_sys.local_ccx",
158*278d6950SAlexander Motin    "MetricGroup": "l1_dcache"
159*278d6950SAlexander Motin  },
160*278d6950SAlexander Motin  {
161*278d6950SAlexander Motin    "MetricName": "l1_demand_data_cache_fills_from_near_cache",
162*278d6950SAlexander Motin    "BriefDescription": "L1 demand data cache fills from another CCX cache in the same NUMA node.",
163*278d6950SAlexander Motin    "MetricExpr": "ls_dmnd_fills_from_sys.near_cache",
164*278d6950SAlexander Motin    "MetricGroup": "l1_dcache"
165*278d6950SAlexander Motin  },
166*278d6950SAlexander Motin  {
167*278d6950SAlexander Motin    "MetricName": "l1_demand_data_cache_fills_from_near_memory",
168*278d6950SAlexander Motin    "BriefDescription": "L1 demand data cache fills from DRAM or MMIO in the same NUMA node.",
169*278d6950SAlexander Motin    "MetricExpr": "ls_dmnd_fills_from_sys.dram_io_near",
170*278d6950SAlexander Motin    "MetricGroup": "l1_dcache"
171*278d6950SAlexander Motin  },
172*278d6950SAlexander Motin  {
173*278d6950SAlexander Motin    "MetricName": "l1_demand_data_cache_fills_from_far_cache",
174*278d6950SAlexander Motin    "BriefDescription": "L1 demand data cache fills from another CCX cache in a different NUMA node.",
175*278d6950SAlexander Motin    "MetricExpr": "ls_dmnd_fills_from_sys.far_cache",
176*278d6950SAlexander Motin    "MetricGroup": "l1_dcache"
177*278d6950SAlexander Motin  },
178*278d6950SAlexander Motin  {
179*278d6950SAlexander Motin    "MetricName": "l1_demand_data_cache_fills_from_far_memory",
180*278d6950SAlexander Motin    "BriefDescription": "L1 demand data cache fills from DRAM or MMIO in a different NUMA node.",
181*278d6950SAlexander Motin    "MetricExpr": "ls_dmnd_fills_from_sys.dram_io_far",
182*278d6950SAlexander Motin    "MetricGroup": "l1_dcache"
183*278d6950SAlexander Motin  },
184*278d6950SAlexander Motin  {
185*278d6950SAlexander Motin    "MetricName": "l1_itlb_misses",
186*278d6950SAlexander Motin    "BriefDescription": "L1 instruction TLB misses.",
187*278d6950SAlexander Motin    "MetricExpr": "bp_l1_tlb_miss_l2_tlb_hit + bp_l1_tlb_miss_l2_tlb_miss.all",
188*278d6950SAlexander Motin    "MetricGroup": "tlb"
189*278d6950SAlexander Motin  },
190*278d6950SAlexander Motin  {
191*278d6950SAlexander Motin    "MetricName": "l2_itlb_misses",
192*278d6950SAlexander Motin    "BriefDescription": "L2 instruction TLB misses and instruction page walks.",
193*278d6950SAlexander Motin    "MetricExpr": "bp_l1_tlb_miss_l2_tlb_miss.all",
194*278d6950SAlexander Motin    "MetricGroup": "tlb"
195*278d6950SAlexander Motin  },
196*278d6950SAlexander Motin  {
197*278d6950SAlexander Motin    "MetricName": "l1_dtlb_misses",
198*278d6950SAlexander Motin    "BriefDescription": "L1 data TLB misses.",
199*278d6950SAlexander Motin    "MetricExpr": "ls_l1_d_tlb_miss.all",
200*278d6950SAlexander Motin    "MetricGroup": "tlb"
201*278d6950SAlexander Motin  },
202*278d6950SAlexander Motin  {
203*278d6950SAlexander Motin    "MetricName": "l2_dtlb_misses",
204*278d6950SAlexander Motin    "BriefDescription": "L2 data TLB misses and data page walks.",
205*278d6950SAlexander Motin    "MetricExpr": "ls_l1_d_tlb_miss.all_l2_miss",
206*278d6950SAlexander Motin    "MetricGroup": "tlb"
207*278d6950SAlexander Motin  },
208*278d6950SAlexander Motin  {
209*278d6950SAlexander Motin    "MetricName": "all_tlbs_flushed",
210*278d6950SAlexander Motin    "BriefDescription": "All TLBs flushed.",
211*278d6950SAlexander Motin    "MetricExpr": "ls_tlb_flush.all",
212*278d6950SAlexander Motin    "MetricGroup": "tlb"
213*278d6950SAlexander Motin  },
214*278d6950SAlexander Motin  {
215*278d6950SAlexander Motin    "MetricName": "macro_ops_dispatched",
216*278d6950SAlexander Motin    "BriefDescription": "Macro-ops dispatched.",
217*278d6950SAlexander Motin    "MetricExpr": "de_src_op_disp.all",
218*278d6950SAlexander Motin    "MetricGroup": "decoder"
219*278d6950SAlexander Motin  },
220*278d6950SAlexander Motin  {
221*278d6950SAlexander Motin    "MetricName": "sse_avx_stalls",
222*278d6950SAlexander Motin    "BriefDescription": "Mixed SSE/AVX stalls.",
223*278d6950SAlexander Motin    "MetricExpr": "fp_disp_faults.sse_avx_all"
224*278d6950SAlexander Motin  },
225*278d6950SAlexander Motin  {
226*278d6950SAlexander Motin    "MetricName": "macro_ops_retired",
227*278d6950SAlexander Motin    "BriefDescription": "Macro-ops retired.",
228*278d6950SAlexander Motin    "MetricExpr": "ex_ret_ops"
229*278d6950SAlexander Motin  },
230*278d6950SAlexander Motin  {
231*278d6950SAlexander Motin    "MetricName": "dram_read_data_for_local_processor",
232*278d6950SAlexander Motin    "BriefDescription": "DRAM read data for local processor.",
233*278d6950SAlexander Motin    "MetricExpr": "local_processor_read_data_beats_cs0 + local_processor_read_data_beats_cs1 + local_processor_read_data_beats_cs2 + local_processor_read_data_beats_cs3 + local_processor_read_data_beats_cs4 + local_processor_read_data_beats_cs5 + local_processor_read_data_beats_cs6 + local_processor_read_data_beats_cs7 + local_processor_read_data_beats_cs8 + local_processor_read_data_beats_cs9 + local_processor_read_data_beats_cs10 + local_processor_read_data_beats_cs11",
234*278d6950SAlexander Motin    "MetricGroup": "data_fabric",
235*278d6950SAlexander Motin    "PerPkg": "1",
236*278d6950SAlexander Motin    "ScaleUnit": "6.103515625e-5MiB"
237*278d6950SAlexander Motin  },
238*278d6950SAlexander Motin  {
239*278d6950SAlexander Motin    "MetricName": "dram_write_data_for_local_processor",
240*278d6950SAlexander Motin    "BriefDescription": "DRAM write data for local processor.",
241*278d6950SAlexander Motin    "MetricExpr": "local_processor_write_data_beats_cs0 + local_processor_write_data_beats_cs1 + local_processor_write_data_beats_cs2 + local_processor_write_data_beats_cs3 + local_processor_write_data_beats_cs4 + local_processor_write_data_beats_cs5 + local_processor_write_data_beats_cs6 + local_processor_write_data_beats_cs7 + local_processor_write_data_beats_cs8 + local_processor_write_data_beats_cs9 + local_processor_write_data_beats_cs10 + local_processor_write_data_beats_cs11",
242*278d6950SAlexander Motin    "MetricGroup": "data_fabric",
243*278d6950SAlexander Motin    "PerPkg": "1",
244*278d6950SAlexander Motin    "ScaleUnit": "6.103515625e-5MiB"
245*278d6950SAlexander Motin  },
246*278d6950SAlexander Motin  {
247*278d6950SAlexander Motin    "MetricName": "dram_read_data_for_remote_processor",
248*278d6950SAlexander Motin    "BriefDescription": "DRAM read data for remote processor.",
249*278d6950SAlexander Motin    "MetricExpr": "remote_processor_read_data_beats_cs0 + remote_processor_read_data_beats_cs1 + remote_processor_read_data_beats_cs2 + remote_processor_read_data_beats_cs3 + remote_processor_read_data_beats_cs4 + remote_processor_read_data_beats_cs5 + remote_processor_read_data_beats_cs6 + remote_processor_read_data_beats_cs7 + remote_processor_read_data_beats_cs8 + remote_processor_read_data_beats_cs9 + remote_processor_read_data_beats_cs10 + remote_processor_read_data_beats_cs11",
250*278d6950SAlexander Motin    "MetricGroup": "data_fabric",
251*278d6950SAlexander Motin    "PerPkg": "1",
252*278d6950SAlexander Motin    "ScaleUnit": "6.103515625e-5MiB"
253*278d6950SAlexander Motin  },
254*278d6950SAlexander Motin  {
255*278d6950SAlexander Motin    "MetricName": "dram_write_data_for_remote_processor",
256*278d6950SAlexander Motin    "BriefDescription": "DRAM write data for remote processor.",
257*278d6950SAlexander Motin    "MetricExpr": "remote_processor_write_data_beats_cs0 + remote_processor_write_data_beats_cs1 + remote_processor_write_data_beats_cs2 + remote_processor_write_data_beats_cs3 + remote_processor_write_data_beats_cs4 + remote_processor_write_data_beats_cs5 + remote_processor_write_data_beats_cs6 + remote_processor_write_data_beats_cs7 + remote_processor_write_data_beats_cs8 + remote_processor_write_data_beats_cs9 + remote_processor_write_data_beats_cs10 + remote_processor_write_data_beats_cs11",
258*278d6950SAlexander Motin    "MetricGroup": "data_fabric",
259*278d6950SAlexander Motin    "PerPkg": "1",
260*278d6950SAlexander Motin    "ScaleUnit": "6.103515625e-5MiB"
261*278d6950SAlexander Motin  },
262*278d6950SAlexander Motin  {
263*278d6950SAlexander Motin    "MetricName": "local_socket_upstream_dma_read_data",
264*278d6950SAlexander Motin    "BriefDescription": "Local socket upstream DMA read data.",
265*278d6950SAlexander Motin    "MetricExpr": "local_socket_upstream_read_beats_iom0 + local_socket_upstream_read_beats_iom1 + local_socket_upstream_read_beats_iom2 + local_socket_upstream_read_beats_iom3",
266*278d6950SAlexander Motin    "MetricGroup": "data_fabric",
267*278d6950SAlexander Motin    "PerPkg": "1",
268*278d6950SAlexander Motin    "ScaleUnit": "6.103515625e-5MiB"
269*278d6950SAlexander Motin  },
270*278d6950SAlexander Motin  {
271*278d6950SAlexander Motin    "MetricName": "local_socket_upstream_dma_write_data",
272*278d6950SAlexander Motin    "BriefDescription": "Local socket upstream DMA write data.",
273*278d6950SAlexander Motin    "MetricExpr": "local_socket_upstream_write_beats_iom0 + local_socket_upstream_write_beats_iom1 + local_socket_upstream_write_beats_iom2 + local_socket_upstream_write_beats_iom3",
274*278d6950SAlexander Motin    "MetricGroup": "data_fabric",
275*278d6950SAlexander Motin    "PerPkg": "1",
276*278d6950SAlexander Motin    "ScaleUnit": "6.103515625e-5MiB"
277*278d6950SAlexander Motin  },
278*278d6950SAlexander Motin  {
279*278d6950SAlexander Motin    "MetricName": "remote_socket_upstream_dma_read_data",
280*278d6950SAlexander Motin    "BriefDescription": "Remote socket upstream DMA read data.",
281*278d6950SAlexander Motin    "MetricExpr": "remote_socket_upstream_read_beats_iom0 + remote_socket_upstream_read_beats_iom1 + remote_socket_upstream_read_beats_iom2 + remote_socket_upstream_read_beats_iom3",
282*278d6950SAlexander Motin    "MetricGroup": "data_fabric",
283*278d6950SAlexander Motin    "PerPkg": "1",
284*278d6950SAlexander Motin    "ScaleUnit": "6.103515625e-5MiB"
285*278d6950SAlexander Motin  },
286*278d6950SAlexander Motin  {
287*278d6950SAlexander Motin    "MetricName": "remote_socket_upstream_dma_write_data",
288*278d6950SAlexander Motin    "BriefDescription": "Remote socket upstream DMA write data.",
289*278d6950SAlexander Motin    "MetricExpr": "remote_socket_upstream_write_beats_iom0 + remote_socket_upstream_write_beats_iom1 + remote_socket_upstream_write_beats_iom2 + remote_socket_upstream_write_beats_iom3",
290*278d6950SAlexander Motin    "MetricGroup": "data_fabric",
291*278d6950SAlexander Motin    "PerPkg": "1",
292*278d6950SAlexander Motin    "ScaleUnit": "6.103515625e-5MiB"
293*278d6950SAlexander Motin  },
294*278d6950SAlexander Motin  {
295*278d6950SAlexander Motin    "MetricName": "local_socket_inbound_data_to_cpu",
296*278d6950SAlexander Motin    "BriefDescription": "Local socket inbound data to the CPU (e.g. read data).",
297*278d6950SAlexander Motin    "MetricExpr": "local_socket_inf0_inbound_data_beats_ccm0 + local_socket_inf1_inbound_data_beats_ccm0 + local_socket_inf0_inbound_data_beats_ccm1 + local_socket_inf1_inbound_data_beats_ccm1 + local_socket_inf0_inbound_data_beats_ccm2 + local_socket_inf1_inbound_data_beats_ccm2 + local_socket_inf0_inbound_data_beats_ccm3 + local_socket_inf1_inbound_data_beats_ccm3 + local_socket_inf0_inbound_data_beats_ccm4 + local_socket_inf1_inbound_data_beats_ccm4 + local_socket_inf0_inbound_data_beats_ccm5 + local_socket_inf1_inbound_data_beats_ccm5 + local_socket_inf0_inbound_data_beats_ccm6 + local_socket_inf1_inbound_data_beats_ccm6 + local_socket_inf0_inbound_data_beats_ccm7 + local_socket_inf1_inbound_data_beats_ccm7",
298*278d6950SAlexander Motin    "MetricGroup": "data_fabric",
299*278d6950SAlexander Motin    "PerPkg": "1",
300*278d6950SAlexander Motin    "ScaleUnit": "3.0517578125e-5MiB"
301*278d6950SAlexander Motin  },
302*278d6950SAlexander Motin  {
303*278d6950SAlexander Motin    "MetricName": "local_socket_outbound_data_from_cpu",
304*278d6950SAlexander Motin    "BriefDescription": "Local socket outbound data from the CPU (e.g. write data).",
305*278d6950SAlexander Motin    "MetricExpr": "local_socket_inf0_outbound_data_beats_ccm0 + local_socket_inf1_outbound_data_beats_ccm0 + local_socket_inf0_outbound_data_beats_ccm1 + local_socket_inf1_outbound_data_beats_ccm1 + local_socket_inf0_outbound_data_beats_ccm2 + local_socket_inf1_outbound_data_beats_ccm2 + local_socket_inf0_outbound_data_beats_ccm3 + local_socket_inf1_outbound_data_beats_ccm3 + local_socket_inf0_outbound_data_beats_ccm4 + local_socket_inf1_outbound_data_beats_ccm4 + local_socket_inf0_outbound_data_beats_ccm5 + local_socket_inf1_outbound_data_beats_ccm5 + local_socket_inf0_outbound_data_beats_ccm6 + local_socket_inf1_outbound_data_beats_ccm6 + local_socket_inf0_outbound_data_beats_ccm7 + local_socket_inf1_outbound_data_beats_ccm7",
306*278d6950SAlexander Motin    "MetricGroup": "data_fabric",
307*278d6950SAlexander Motin    "PerPkg": "1",
308*278d6950SAlexander Motin    "ScaleUnit": "6.103515625e-5MiB"
309*278d6950SAlexander Motin  },
310*278d6950SAlexander Motin  {
311*278d6950SAlexander Motin    "MetricName": "remote_socket_inbound_data_to_cpu",
312*278d6950SAlexander Motin    "BriefDescription": "Remote socket inbound data to the CPU (e.g. read data).",
313*278d6950SAlexander Motin    "MetricExpr": "remote_socket_inf0_inbound_data_beats_ccm0 + remote_socket_inf1_inbound_data_beats_ccm0 + remote_socket_inf0_inbound_data_beats_ccm1 + remote_socket_inf1_inbound_data_beats_ccm1 + remote_socket_inf0_inbound_data_beats_ccm2 + remote_socket_inf1_inbound_data_beats_ccm2 + remote_socket_inf0_inbound_data_beats_ccm3 + remote_socket_inf1_inbound_data_beats_ccm3 + remote_socket_inf0_inbound_data_beats_ccm4 + remote_socket_inf1_inbound_data_beats_ccm4 + remote_socket_inf0_inbound_data_beats_ccm5 + remote_socket_inf1_inbound_data_beats_ccm5 + remote_socket_inf0_inbound_data_beats_ccm6 + remote_socket_inf1_inbound_data_beats_ccm6 + remote_socket_inf0_inbound_data_beats_ccm7 + remote_socket_inf1_inbound_data_beats_ccm7",
314*278d6950SAlexander Motin    "MetricGroup": "data_fabric",
315*278d6950SAlexander Motin    "PerPkg": "1",
316*278d6950SAlexander Motin    "ScaleUnit": "3.0517578125e-5MiB"
317*278d6950SAlexander Motin  },
318*278d6950SAlexander Motin  {
319*278d6950SAlexander Motin    "MetricName": "remote_socket_outbound_data_from_cpu",
320*278d6950SAlexander Motin    "BriefDescription": "Remote socket outbound data from the CPU (e.g. write data).",
321*278d6950SAlexander Motin    "MetricExpr": "remote_socket_inf0_outbound_data_beats_ccm0 + remote_socket_inf1_outbound_data_beats_ccm0 + remote_socket_inf0_outbound_data_beats_ccm1 + remote_socket_inf1_outbound_data_beats_ccm1 + remote_socket_inf0_outbound_data_beats_ccm2 + remote_socket_inf1_outbound_data_beats_ccm2 + remote_socket_inf0_outbound_data_beats_ccm3 + remote_socket_inf1_outbound_data_beats_ccm3 + remote_socket_inf0_outbound_data_beats_ccm4 + remote_socket_inf1_outbound_data_beats_ccm4 + remote_socket_inf0_outbound_data_beats_ccm5 + remote_socket_inf1_outbound_data_beats_ccm5 + remote_socket_inf0_outbound_data_beats_ccm6 + remote_socket_inf1_outbound_data_beats_ccm6 + remote_socket_inf0_outbound_data_beats_ccm7 + remote_socket_inf1_outbound_data_beats_ccm7",
322*278d6950SAlexander Motin    "MetricGroup": "data_fabric",
323*278d6950SAlexander Motin    "PerPkg": "1",
324*278d6950SAlexander Motin    "ScaleUnit": "6.103515625e-5MiB"
325*278d6950SAlexander Motin  },
326*278d6950SAlexander Motin  {
327*278d6950SAlexander Motin    "MetricName": "local_socket_outbound_data_from_all_links",
328*278d6950SAlexander Motin    "BriefDescription": "Outbound data from all links (local socket).",
329*278d6950SAlexander Motin    "MetricExpr": "local_socket_outbound_data_beats_link0 + local_socket_outbound_data_beats_link1 + local_socket_outbound_data_beats_link2 + local_socket_outbound_data_beats_link3 + local_socket_outbound_data_beats_link4 + local_socket_outbound_data_beats_link5 + local_socket_outbound_data_beats_link6 + local_socket_outbound_data_beats_link7",
330*278d6950SAlexander Motin    "MetricGroup": "data_fabric",
331*278d6950SAlexander Motin    "PerPkg": "1",
332*278d6950SAlexander Motin    "ScaleUnit": "6.103515625e-5MiB"
333*278d6950SAlexander Motin  },
334*278d6950SAlexander Motin  {
335*278d6950SAlexander Motin    "MetricName": "umc_data_bus_utilization",
336*278d6950SAlexander Motin    "BriefDescription": "Memory controller data bus utilization.",
337*278d6950SAlexander Motin    "MetricExpr": "d_ratio(umc_data_slot_clks.all / 2, umc_mem_clk)",
338*278d6950SAlexander Motin    "MetricGroup": "memory_controller",
339*278d6950SAlexander Motin    "PerPkg": "1",
340*278d6950SAlexander Motin    "ScaleUnit": "100%"
341*278d6950SAlexander Motin  },
342*278d6950SAlexander Motin  {
343*278d6950SAlexander Motin    "MetricName": "umc_cas_cmd_rate",
344*278d6950SAlexander Motin    "BriefDescription": "Memory controller CAS command rate.",
345*278d6950SAlexander Motin    "MetricExpr": "d_ratio(umc_cas_cmd.all * 1000, umc_mem_clk)",
346*278d6950SAlexander Motin    "MetricGroup": "memory_controller",
347*278d6950SAlexander Motin    "PerPkg": "1"
348*278d6950SAlexander Motin  },
349*278d6950SAlexander Motin  {
350*278d6950SAlexander Motin    "MetricName": "umc_cas_cmd_read_ratio",
351*278d6950SAlexander Motin    "BriefDescription": "Ratio of memory controller CAS commands for reads.",
352*278d6950SAlexander Motin    "MetricExpr": "d_ratio(umc_cas_cmd.rd, umc_cas_cmd.all)",
353*278d6950SAlexander Motin    "MetricGroup": "memory_controller",
354*278d6950SAlexander Motin    "PerPkg": "1",
355*278d6950SAlexander Motin    "ScaleUnit": "100%"
356*278d6950SAlexander Motin  },
357*278d6950SAlexander Motin  {
358*278d6950SAlexander Motin    "MetricName": "umc_cas_cmd_write_ratio",
359*278d6950SAlexander Motin    "BriefDescription": "Ratio of memory controller CAS commands for writes.",
360*278d6950SAlexander Motin    "MetricExpr": "d_ratio(umc_cas_cmd.wr, umc_cas_cmd.all)",
361*278d6950SAlexander Motin    "MetricGroup": "memory_controller",
362*278d6950SAlexander Motin    "PerPkg": "1",
363*278d6950SAlexander Motin    "ScaleUnit": "100%"
364*278d6950SAlexander Motin  },
365*278d6950SAlexander Motin  {
366*278d6950SAlexander Motin    "MetricName": "umc_mem_read_bandwidth",
367*278d6950SAlexander Motin    "BriefDescription": "Estimated memory read bandwidth.",
368*278d6950SAlexander Motin    "MetricExpr": "(umc_cas_cmd.rd * 64) / 1e6 / duration_time",
369*278d6950SAlexander Motin    "MetricGroup": "memory_controller",
370*278d6950SAlexander Motin    "PerPkg": "1",
371*278d6950SAlexander Motin    "ScaleUnit": "1MB/s"
372*278d6950SAlexander Motin  },
373*278d6950SAlexander Motin  {
374*278d6950SAlexander Motin    "MetricName": "umc_mem_write_bandwidth",
375*278d6950SAlexander Motin    "BriefDescription": "Estimated memory write bandwidth.",
376*278d6950SAlexander Motin    "MetricExpr": "(umc_cas_cmd.wr * 64) / 1e6 / duration_time",
377*278d6950SAlexander Motin    "MetricGroup": "memory_controller",
378*278d6950SAlexander Motin    "PerPkg": "1",
379*278d6950SAlexander Motin    "ScaleUnit": "1MB/s"
380*278d6950SAlexander Motin  },
381*278d6950SAlexander Motin  {
382*278d6950SAlexander Motin    "MetricName": "umc_mem_bandwidth",
383*278d6950SAlexander Motin    "BriefDescription": "Estimated combined memory bandwidth.",
384*278d6950SAlexander Motin    "MetricExpr": "(umc_cas_cmd.all * 64) / 1e6 / duration_time",
385*278d6950SAlexander Motin    "MetricGroup": "memory_controller",
386*278d6950SAlexander Motin    "PerPkg": "1",
387*278d6950SAlexander Motin    "ScaleUnit": "1MB/s"
388*278d6950SAlexander Motin  },
389*278d6950SAlexander Motin  {
390*278d6950SAlexander Motin    "MetricName": "umc_cas_cmd_read_ratio",
391*278d6950SAlexander Motin    "BriefDescription": "Ratio of memory controller CAS commands for reads.",
392*278d6950SAlexander Motin    "MetricExpr": "d_ratio(umc_cas_cmd.rd, umc_cas_cmd.all)",
393*278d6950SAlexander Motin    "MetricGroup": "memory_controller",
394*278d6950SAlexander Motin    "PerPkg": "1",
395*278d6950SAlexander Motin    "ScaleUnit": "100%"
396*278d6950SAlexander Motin  },
397*278d6950SAlexander Motin  {
398*278d6950SAlexander Motin    "MetricName": "umc_cas_cmd_rate",
399*278d6950SAlexander Motin    "BriefDescription": "Memory controller CAS command rate.",
400*278d6950SAlexander Motin    "MetricExpr": "d_ratio(umc_cas_cmd.all * 1000, umc_mem_clk)",
401*278d6950SAlexander Motin    "MetricGroup": "memory_controller",
402*278d6950SAlexander Motin    "PerPkg": "1"
403*278d6950SAlexander Motin  },
404*278d6950SAlexander Motin  {
405*278d6950SAlexander Motin    "MetricName": "umc_activate_cmd_rate",
406*278d6950SAlexander Motin    "BriefDescription": "Memory controller ACTIVATE command rate.",
407*278d6950SAlexander Motin    "MetricExpr": "d_ratio(umc_act_cmd.all * 1000, umc_mem_clk)",
408*278d6950SAlexander Motin    "MetricGroup": "memory_controller",
409*278d6950SAlexander Motin    "PerPkg": "1"
410*278d6950SAlexander Motin  },
411*278d6950SAlexander Motin  {
412*278d6950SAlexander Motin    "MetricName": "umc_precharge_cmd_rate",
413*278d6950SAlexander Motin    "BriefDescription": "Memory controller PRECHARGE command rate.",
414*278d6950SAlexander Motin    "MetricExpr": "d_ratio(umc_pchg_cmd.all * 1000, umc_mem_clk)",
415*278d6950SAlexander Motin    "MetricGroup": "memory_controller",
416*278d6950SAlexander Motin    "PerPkg": "1"
417*278d6950SAlexander Motin  }
418*278d6950SAlexander Motin]
419