aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/perf/pmu-events/arch/x86/amdzen4/recommended.json
blob: 96e06401c6cbbe22992266cc3306e3f10dcc6262 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
[
  {
    "MetricName": "branch_misprediction_ratio",
    "BriefDescription": "Execution-time branch misprediction ratio (non-speculative).",
    "MetricExpr": "d_ratio(ex_ret_brn_misp, ex_ret_brn)",
    "MetricGroup": "branch_prediction",
    "ScaleUnit": "100%"
  },
  {
    "EventName": "all_data_cache_accesses",
    "EventCode": "0x29",
    "BriefDescription": "All data cache accesses.",
    "UMask": "0x07"
  },
  {
    "MetricName": "all_l2_cache_accesses",
    "BriefDescription": "All L2 cache accesses.",
    "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",
    "MetricGroup": "l2_cache"
  },
  {
    "MetricName": "l2_cache_accesses_from_l1_ic_misses",
    "BriefDescription": "L2 cache accesses from L1 instruction cache misses (including prefetch).",
    "MetricExpr": "l2_request_g1.cacheable_ic_read",
    "MetricGroup": "l2_cache"
  },
  {
    "MetricName": "l2_cache_accesses_from_l1_dc_misses",
    "BriefDescription": "L2 cache accesses from L1 data cache misses (including prefetch).",
    "MetricExpr": "l2_request_g1.all_dc",
    "MetricGroup": "l2_cache"
  },
  {
    "MetricName": "l2_cache_accesses_from_l2_hwpf",
    "BriefDescription": "L2 cache accesses from L2 cache hardware prefetcher.",
    "MetricExpr": "l2_pf_hit_l2.all + l2_pf_miss_l2_hit_l3.all + l2_pf_miss_l2_l3.all",
    "MetricGroup": "l2_cache"
  },
  {
    "MetricName": "all_l2_cache_misses",
    "BriefDescription": "All L2 cache misses.",
    "MetricExpr": "l2_cache_req_stat.ic_dc_miss_in_l2 + l2_pf_miss_l2_hit_l3.all + l2_pf_miss_l2_l3.all",
    "MetricGroup": "l2_cache"
  },
  {
    "MetricName": "l2_cache_misses_from_l1_ic_miss",
    "BriefDescription": "L2 cache misses from L1 instruction cache misses.",
    "MetricExpr": "l2_cache_req_stat.ic_fill_miss",
    "MetricGroup": "l2_cache"
  },
  {
    "MetricName": "l2_cache_misses_from_l1_dc_miss",
    "BriefDescription": "L2 cache misses from L1 data cache misses.",
    "MetricExpr": "l2_cache_req_stat.ls_rd_blk_c",
    "MetricGroup": "l2_cache"
  },
  {
    "MetricName": "l2_cache_misses_from_l2_hwpf",
    "BriefDescription": "L2 cache misses from L2 cache hardware prefetcher.",
    "MetricExpr": "l2_pf_miss_l2_hit_l3.all + l2_pf_miss_l2_l3.all",
    "MetricGroup": "l2_cache"
  },
  {
    "MetricName": "all_l2_cache_hits",
    "BriefDescription": "All L2 cache hits.",
    "MetricExpr": "l2_cache_req_stat.ic_dc_hit_in_l2 + l2_pf_hit_l2.all",
    "MetricGroup": "l2_cache"
  },
  {
    "MetricName": "l2_cache_hits_from_l1_ic_miss",
    "BriefDescription": "L2 cache hits from L1 instruction cache misses.",
    "MetricExpr": "l2_cache_req_stat.ic_hit_in_l2",
    "MetricGroup": "l2_cache"
  },
  {
    "MetricName": "l2_cache_hits_from_l1_dc_miss",
    "BriefDescription": "L2 cache hits from L1 data cache misses.",
    "MetricExpr": "l2_cache_req_stat.dc_hit_in_l2",
    "MetricGroup": "l2_cache"
  },
  {
    "MetricName": "l2_cache_hits_from_l2_hwpf",
    "BriefDescription": "L2 cache hits from L2 cache hardware prefetcher.",
    "MetricExpr": "l2_pf_hit_l2.all",
    "MetricGroup": "l2_cache"
  },
  {
    "MetricName": "l3_cache_accesses",
    "BriefDescription": "L3 cache accesses.",
    "MetricExpr": "l3_lookup_state.all_coherent_accesses_to_l3",
    "MetricGroup": "l3_cache"
  },
  {
    "MetricName": "l3_misses",
    "BriefDescription": "L3 misses (including cacheline state change requests).",
    "MetricExpr": "l3_lookup_state.l3_miss",
    "MetricGroup": "l3_cache"
  },
  {
    "MetricName": "l3_read_miss_latency",
    "BriefDescription": "Average L3 read miss latency (in core clocks).",
    "MetricExpr": "(l3_xi_sampled_latency.all * 10) / l3_xi_sampled_latency_requests.all",
    "MetricGroup": "l3_cache",
    "ScaleUnit": "1core clocks"
  },
  {
    "MetricName": "op_cache_fetch_miss_ratio",
    "BriefDescription": "Op cache miss ratio for all fetches.",
    "MetricExpr": "d_ratio(op_cache_hit_miss.op_cache_miss, op_cache_hit_miss.all_op_cache_accesses)",
    "ScaleUnit": "100%"
  },
  {
    "MetricName": "ic_fetch_miss_ratio",
    "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.",
    "MetricExpr": "d_ratio(ic_tag_hit_miss.instruction_cache_miss, ic_tag_hit_miss.all_instruction_cache_accesses)",
    "ScaleUnit": "100%"
  },
  {
    "MetricName": "l1_data_cache_fills_from_memory",
    "BriefDescription": "L1 data cache fills from DRAM or MMIO in any NUMA node.",
    "MetricExpr": "ls_any_fills_from_sys.dram_io_all",
    "MetricGroup": "l1_dcache"
  },
  {
    "MetricName": "l1_data_cache_fills_from_remote_node",
    "BriefDescription": "L1 data cache fills from a different NUMA node.",
    "MetricExpr": "ls_any_fills_from_sys.far_all",
    "MetricGroup": "l1_dcache"
  },
  {
    "MetricName": "l1_data_cache_fills_from_same_ccx",
    "BriefDescription": "L1 data cache fills from within the same CCX.",
    "MetricExpr": "ls_any_fills_from_sys.local_all",
    "MetricGroup": "l1_dcache"
  },
  {
    "MetricName": "l1_data_cache_fills_from_different_ccx",
    "BriefDescription": "L1 data cache fills from another CCX cache in any NUMA node.",
    "MetricExpr": "ls_any_fills_from_sys.remote_cache",
    "MetricGroup": "l1_dcache"
  },
  {
    "MetricName": "all_l1_data_cache_fills",
    "BriefDescription": "All L1 data cache fills.",
    "MetricExpr": "ls_any_fills_from_sys.all",
    "MetricGroup": "l1_dcache"
  },
  {
    "MetricName": "l1_demand_data_cache_fills_from_local_l2",
    "BriefDescription": "L1 demand data cache fills from local L2 cache.",
    "MetricExpr": "ls_dmnd_fills_from_sys.local_l2",
    "MetricGroup": "l1_dcache"
  },
  {
    "MetricName": "l1_demand_data_cache_fills_from_same_ccx",
    "BriefDescription": "L1 demand data cache fills from within the same CCX.",
    "MetricExpr": "ls_dmnd_fills_from_sys.local_ccx",
    "MetricGroup": "l1_dcache"
  },
  {
    "MetricName": "l1_demand_data_cache_fills_from_near_cache",
    "BriefDescription": "L1 demand data cache fills from another CCX cache in the same NUMA node.",
    "MetricExpr": "ls_dmnd_fills_from_sys.near_cache",
    "MetricGroup": "l1_dcache"
  },
  {
    "MetricName": "l1_demand_data_cache_fills_from_near_memory",
    "BriefDescription": "L1 demand data cache fills from DRAM or MMIO in the same NUMA node.",
    "MetricExpr": "ls_dmnd_fills_from_sys.dram_io_near",
    "MetricGroup": "l1_dcache"
  },
  {
    "MetricName": "l1_demand_data_cache_fills_from_far_cache",
    "BriefDescription": "L1 demand data cache fills from another CCX cache in a different NUMA node.",
    "MetricExpr": "ls_dmnd_fills_from_sys.far_cache",
    "MetricGroup": "l1_dcache"
  },
  {
    "MetricName": "l1_demand_data_cache_fills_from_far_memory",
    "BriefDescription": "L1 demand data cache fills from DRAM or MMIO in a different NUMA node.",
    "MetricExpr": "ls_dmnd_fills_from_sys.dram_io_far",
    "MetricGroup": "l1_dcache"
  },
  {
    "MetricName": "l1_itlb_misses",
    "BriefDescription": "L1 instruction TLB misses.",
    "MetricExpr": "bp_l1_tlb_miss_l2_tlb_hit + bp_l1_tlb_miss_l2_tlb_miss.all",
    "MetricGroup": "tlb"
  },
  {
    "MetricName": "l2_itlb_misses",
    "BriefDescription": "L2 instruction TLB misses and instruction page walks.",
    "MetricExpr": "bp_l1_tlb_miss_l2_tlb_miss.all",
    "MetricGroup": "tlb"
  },
  {
    "MetricName": "l1_dtlb_misses",
    "BriefDescription": "L1 data TLB misses.",
    "MetricExpr": "ls_l1_d_tlb_miss.all",
    "MetricGroup": "tlb"
  },
  {
    "MetricName": "l2_dtlb_misses",
    "BriefDescription": "L2 data TLB misses and data page walks.",
    "MetricExpr": "ls_l1_d_tlb_miss.all_l2_miss",
    "MetricGroup": "tlb"
  },
  {
    "MetricName": "all_tlbs_flushed",
    "BriefDescription": "All TLBs flushed.",
    "MetricExpr": "ls_tlb_flush.all",
    "MetricGroup": "tlb"
  },
  {
    "MetricName": "macro_ops_dispatched",
    "BriefDescription": "Macro-ops dispatched.",
    "MetricExpr": "de_src_op_disp.all",
    "MetricGroup": "decoder"
  },
  {
    "MetricName": "sse_avx_stalls",
    "BriefDescription": "Mixed SSE/AVX stalls.",
    "MetricExpr": "fp_disp_faults.sse_avx_all"
  },
  {
    "MetricName": "macro_ops_retired",
    "BriefDescription": "Macro-ops retired.",
    "MetricExpr": "ex_ret_ops"
  },
  {
    "MetricName": "dram_read_data_for_local_processor",
    "BriefDescription": "DRAM read data for local processor.",
    "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",
    "MetricGroup": "data_fabric",
    "PerPkg": "1",
    "ScaleUnit": "6.103515625e-5MiB"
  },
  {
    "MetricName": "dram_write_data_for_local_processor",
    "BriefDescription": "DRAM write data for local processor.",
    "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",
    "MetricGroup": "data_fabric",
    "PerPkg": "1",
    "ScaleUnit": "6.103515625e-5MiB"
  },
  {
    "MetricName": "dram_read_data_for_remote_processor",
    "BriefDescription": "DRAM read data for remote processor.",
    "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",
    "MetricGroup": "data_fabric",
    "PerPkg": "1",
    "ScaleUnit": "6.103515625e-5MiB"
  },
  {
    "MetricName": "dram_write_data_for_remote_processor",
    "BriefDescription": "DRAM write data for remote processor.",
    "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",
    "MetricGroup": "data_fabric",
    "PerPkg": "1",
    "ScaleUnit": "6.103515625e-5MiB"
  },
  {
    "MetricName": "local_socket_upstream_dma_read_data",
    "BriefDescription": "Local socket upstream DMA read data.",
    "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",
    "MetricGroup": "data_fabric",
    "PerPkg": "1",
    "ScaleUnit": "6.103515625e-5MiB"
  },
  {
    "MetricName": "local_socket_upstream_dma_write_data",
    "BriefDescription": "Local socket upstream DMA write data.",
    "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",
    "MetricGroup": "data_fabric",
    "PerPkg": "1",
    "ScaleUnit": "6.103515625e-5MiB"
  },
  {
    "MetricName": "remote_socket_upstream_dma_read_data",
    "BriefDescription": "Remote socket upstream DMA read data.",
    "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",
    "MetricGroup": "data_fabric",
    "PerPkg": "1",
    "ScaleUnit": "6.103515625e-5MiB"
  },
  {
    "MetricName": "remote_socket_upstream_dma_write_data",
    "BriefDescription": "Remote socket upstream DMA write data.",
    "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",
    "MetricGroup": "data_fabric",
    "PerPkg": "1",
    "ScaleUnit": "6.103515625e-5MiB"
  },
  {
    "MetricName": "local_socket_inbound_data_to_cpu",
    "BriefDescription": "Local socket inbound data to the CPU (e.g. read data).",
    "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",
    "MetricGroup": "data_fabric",
    "PerPkg": "1",
    "ScaleUnit": "3.0517578125e-5MiB"
  },
  {
    "MetricName": "local_socket_outbound_data_from_cpu",
    "BriefDescription": "Local socket outbound data from the CPU (e.g. write data).",
    "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",
    "MetricGroup": "data_fabric",
    "PerPkg": "1",
    "ScaleUnit": "6.103515625e-5MiB"
  },
  {
    "MetricName": "remote_socket_inbound_data_to_cpu",
    "BriefDescription": "Remote socket inbound data to the CPU (e.g. read data).",
    "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",
    "MetricGroup": "data_fabric",
    "PerPkg": "1",
    "ScaleUnit": "3.0517578125e-5MiB"
  },
  {
    "MetricName": "remote_socket_outbound_data_from_cpu",
    "BriefDescription": "Remote socket outbound data from the CPU (e.g. write data).",
    "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",
    "MetricGroup": "data_fabric",
    "PerPkg": "1",
    "ScaleUnit": "6.103515625e-5MiB"
  },
  {
    "MetricName": "local_socket_outbound_data_from_all_links",
    "BriefDescription": "Outbound data from all links (local socket).",
    "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",
    "MetricGroup": "data_fabric",
    "PerPkg": "1",
    "ScaleUnit": "6.103515625e-5MiB"
  },
  {
    "MetricName": "umc_data_bus_utilization",
    "BriefDescription": "Memory controller data bus utilization.",
    "MetricExpr": "d_ratio(umc_data_slot_clks.all / 2, umc_mem_clk)",
    "MetricGroup": "memory_controller",
    "PerPkg": "1",
    "ScaleUnit": "100%"
  },
  {
    "MetricName": "umc_cas_cmd_rate",
    "BriefDescription": "Memory controller CAS command rate.",
    "MetricExpr": "d_ratio(umc_cas_cmd.all * 1000, umc_mem_clk)",
    "MetricGroup": "memory_controller",
    "PerPkg": "1"
  },
  {
    "MetricName": "umc_cas_cmd_read_ratio",
    "BriefDescription": "Ratio of memory controller CAS commands for reads.",
    "MetricExpr": "d_ratio(umc_cas_cmd.rd, umc_cas_cmd.all)",
    "MetricGroup": "memory_controller",
    "PerPkg": "1",
    "ScaleUnit": "100%"
  },
  {
    "MetricName": "umc_cas_cmd_write_ratio",
    "BriefDescription": "Ratio of memory controller CAS commands for writes.",
    "MetricExpr": "d_ratio(umc_cas_cmd.wr, umc_cas_cmd.all)",
    "MetricGroup": "memory_controller",
    "PerPkg": "1",
    "ScaleUnit": "100%"
  },
  {
    "MetricName": "umc_mem_read_bandwidth",
    "BriefDescription": "Estimated memory read bandwidth.",
    "MetricExpr": "(umc_cas_cmd.rd * 64) / 1e6 / duration_time",
    "MetricGroup": "memory_controller",
    "PerPkg": "1",
    "ScaleUnit": "1MB/s"
  },
  {
    "MetricName": "umc_mem_write_bandwidth",
    "BriefDescription": "Estimated memory write bandwidth.",
    "MetricExpr": "(umc_cas_cmd.wr * 64) / 1e6 / duration_time",
    "MetricGroup": "memory_controller",
    "PerPkg": "1",
    "ScaleUnit": "1MB/s"
  },
  {
    "MetricName": "umc_mem_bandwidth",
    "BriefDescription": "Estimated combined memory bandwidth.",
    "MetricExpr": "(umc_cas_cmd.all * 64) / 1e6 / duration_time",
    "MetricGroup": "memory_controller",
    "PerPkg": "1",
    "ScaleUnit": "1MB/s"
  },
  {
    "MetricName": "umc_cas_cmd_read_ratio",
    "BriefDescription": "Ratio of memory controller CAS commands for reads.",
    "MetricExpr": "d_ratio(umc_cas_cmd.rd, umc_cas_cmd.all)",
    "MetricGroup": "memory_controller",
    "PerPkg": "1",
    "ScaleUnit": "100%"
  },
  {
    "MetricName": "umc_cas_cmd_rate",
    "BriefDescription": "Memory controller CAS command rate.",
    "MetricExpr": "d_ratio(umc_cas_cmd.all * 1000, umc_mem_clk)",
    "MetricGroup": "memory_controller",
    "PerPkg": "1"
  },
  {
    "MetricName": "umc_activate_cmd_rate",
    "BriefDescription": "Memory controller ACTIVATE command rate.",
    "MetricExpr": "d_ratio(umc_act_cmd.all * 1000, umc_mem_clk)",
    "MetricGroup": "memory_controller",
    "PerPkg": "1"
  },
  {
    "MetricName": "umc_precharge_cmd_rate",
    "BriefDescription": "Memory controller PRECHARGE command rate.",
    "MetricExpr": "d_ratio(umc_pchg_cmd.all * 1000, umc_mem_clk)",
    "MetricGroup": "memory_controller",
    "PerPkg": "1"
  }
]