Skip to content

Commit ded3a8b

Browse files
authored
Merge pull request #335 from intel/EMR_cstate_addition
Adding C0/C6 state metrics to EMR and SPR
2 parents 48c0518 + 29c3a94 commit ded3a8b

7 files changed

+206
-8
lines changed

EMR/metrics/emeraldrapids_metrics.json

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"Header": {
33
"Copyright": "Copyright (c) 2001 - 2025 Intel Corporation. All rights reserved.",
44
"Info": "Performance Monitoring Metrics for 5th Generation Intel(R) Xeon(R) Processor Scalable Family0",
5-
"DatePublished": "06/17/2025",
6-
"Version": "1.1",
5+
"DatePublished": "09/12/2025",
6+
"Version": "1.2",
77
"Legend": "",
88
"TmaVersion": "5.1",
99
"TmaFlavor": "Full"
@@ -1093,6 +1093,60 @@
10931093
"ResolutionLevels": "CHA, SOCKET, SYSTEM",
10941094
"MetricGroup": ""
10951095
},
1096+
{
1097+
"MetricName": "cpu_cstate_c0",
1098+
"LegacyName": "metric_CPU_cstate_C0",
1099+
"Level": 1,
1100+
"BriefDescription": "The average number of cores that are in cstate C0 as observed by the power control unit (PCU).",
1101+
"UnitOfMeasure": "",
1102+
"Events": [
1103+
{
1104+
"Name": "UNC_P_CLOCKTICKS",
1105+
"Alias": "a"
1106+
},
1107+
{
1108+
"Name": "UNC_P_POWER_STATE_OCCUPANCY_CORES_C0",
1109+
"Alias": "b"
1110+
}
1111+
],
1112+
"Constants": [
1113+
{
1114+
"Name": "SOCKET_COUNT",
1115+
"Alias": "socket_count"
1116+
}
1117+
],
1118+
"Formula": "(b / a[0]) * socket_count",
1119+
"Category": "Power",
1120+
"ResolutionLevels": "SOCKET, SYSTEM",
1121+
"MetricGroup": "cpu_cstate"
1122+
},
1123+
{
1124+
"MetricName": "cpu_cstate_c6",
1125+
"LegacyName": "metric_CPU_cstate_C6",
1126+
"Level": 1,
1127+
"BriefDescription": "The average number of cores are in cstate C6 as observed by the power control unit (PCU).",
1128+
"UnitOfMeasure": "",
1129+
"Events": [
1130+
{
1131+
"Name": "UNC_P_CLOCKTICKS",
1132+
"Alias": "a"
1133+
},
1134+
{
1135+
"Name": "UNC_P_POWER_STATE_OCCUPANCY_CORES_C6",
1136+
"Alias": "b"
1137+
}
1138+
],
1139+
"Constants": [
1140+
{
1141+
"Name": "SOCKET_COUNT",
1142+
"Alias": "socket_count"
1143+
}
1144+
],
1145+
"Formula": "(b / a[0]) * socket_count",
1146+
"Category": "Power",
1147+
"ResolutionLevels": "SOCKET, SYSTEM",
1148+
"MetricGroup": "cpu_cstate"
1149+
},
10961150
{
10971151
"MetricName": "Bottleneck_Mispredictions",
10981152
"LegacyName": "metric_TMA_Bottleneck_Mispredictions",

EMR/metrics/perf/emeraldrapids_metrics_perf.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,5 +318,17 @@
318318
"MetricGroup": "",
319319
"MetricName": "io_bandwidth_write_l3_miss",
320320
"ScaleUnit": "1MB/s"
321+
},
322+
{
323+
"BriefDescription": "The average number of cores that are in cstate C0 as observed by the power control unit (PCU)",
324+
"MetricExpr": "( UNC_P_POWER_STATE_OCCUPANCY_CORES_C0 / pcu_0@UNC_P_CLOCKTICKS@ ) * #num_packages",
325+
"MetricGroup": "cpu_cstate",
326+
"MetricName": "cpu_cstate_c0"
327+
},
328+
{
329+
"BriefDescription": "The average number of cores are in cstate C6 as observed by the power control unit (PCU)",
330+
"MetricExpr": "( UNC_P_POWER_STATE_OCCUPANCY_CORES_C6 / pcu_0@UNC_P_CLOCKTICKS@ ) * #num_packages",
331+
"MetricGroup": "cpu_cstate",
332+
"MetricName": "cpu_cstate_c6"
321333
}
322334
]

SPR/metrics/perf/sapphirerapids_metrics_perf.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,5 +395,17 @@
395395
"MetricGroup": "",
396396
"MetricName": "io_bandwidth_write_l3_miss",
397397
"ScaleUnit": "1MB/s"
398+
},
399+
{
400+
"BriefDescription": "The average number of cores that are in cstate C0 as observed by the power control unit (PCU)",
401+
"MetricExpr": "( UNC_P_POWER_STATE_OCCUPANCY_CORES_C0 / pcu_0@UNC_P_CLOCKTICKS@ ) * #num_packages",
402+
"MetricGroup": "cpu_cstate",
403+
"MetricName": "cpu_cstate_c0"
404+
},
405+
{
406+
"BriefDescription": "The average number of cores are in cstate C6 as observed by the power control unit (PCU)",
407+
"MetricExpr": "( UNC_P_POWER_STATE_OCCUPANCY_CORES_C6 / pcu_0@UNC_P_CLOCKTICKS@ ) * #num_packages",
408+
"MetricGroup": "cpu_cstate",
409+
"MetricName": "cpu_cstate_c6"
398410
}
399411
]

SPR/metrics/perf/sapphirerapidshbm_metrics_perf.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,5 +395,17 @@
395395
"MetricGroup": "",
396396
"MetricName": "io_bandwidth_write_l3_miss",
397397
"ScaleUnit": "1MB/s"
398+
},
399+
{
400+
"BriefDescription": "The average number of cores that are in cstate C0 as observed by the power control unit (PCU)",
401+
"MetricExpr": "( UNC_P_POWER_STATE_OCCUPANCY_CORES_C0 / pcu_0@UNC_P_CLOCKTICKS@ ) * #num_packages",
402+
"MetricGroup": "cpu_cstate",
403+
"MetricName": "cpu_cstate_c0"
404+
},
405+
{
406+
"BriefDescription": "The average number of cores are in cstate C6 as observed by the power control unit (PCU)",
407+
"MetricExpr": "( UNC_P_POWER_STATE_OCCUPANCY_CORES_C6 / pcu_0@UNC_P_CLOCKTICKS@ ) * #num_packages",
408+
"MetricGroup": "cpu_cstate",
409+
"MetricName": "cpu_cstate_c6"
398410
}
399411
]

SPR/metrics/sapphirerapids_metrics.json

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"Header": {
33
"Copyright": "Copyright (c) 2001 - 2025 Intel Corporation. All rights reserved.",
44
"Info": "Performance Monitoring Metrics for 4th Generation Intel(R) Xeon(R) Processor Scalable Family based on Sapphire Rapids microarchitecture0",
5-
"DatePublished": "06/17/2025",
6-
"Version": "1.1",
5+
"DatePublished": "09/12/2025",
6+
"Version": "1.2",
77
"Legend": "",
88
"TmaVersion": "5.1",
99
"TmaFlavor": "Full"
@@ -1312,6 +1312,60 @@
13121312
"ResolutionLevels": "CHA, SOCKET, SYSTEM",
13131313
"MetricGroup": ""
13141314
},
1315+
{
1316+
"MetricName": "cpu_cstate_c0",
1317+
"LegacyName": "metric_CPU_cstate_C0",
1318+
"Level": 1,
1319+
"BriefDescription": "The average number of cores that are in cstate C0 as observed by the power control unit (PCU).",
1320+
"UnitOfMeasure": "",
1321+
"Events": [
1322+
{
1323+
"Name": "UNC_P_CLOCKTICKS",
1324+
"Alias": "a"
1325+
},
1326+
{
1327+
"Name": "UNC_P_POWER_STATE_OCCUPANCY_CORES_C0",
1328+
"Alias": "b"
1329+
}
1330+
],
1331+
"Constants": [
1332+
{
1333+
"Name": "SOCKET_COUNT",
1334+
"Alias": "socket_count"
1335+
}
1336+
],
1337+
"Formula": "(b / a[0]) * socket_count",
1338+
"Category": "Power",
1339+
"ResolutionLevels": "SOCKET, SYSTEM",
1340+
"MetricGroup": "cpu_cstate"
1341+
},
1342+
{
1343+
"MetricName": "cpu_cstate_c6",
1344+
"LegacyName": "metric_CPU_cstate_C6",
1345+
"Level": 1,
1346+
"BriefDescription": "The average number of cores are in cstate C6 as observed by the power control unit (PCU).",
1347+
"UnitOfMeasure": "",
1348+
"Events": [
1349+
{
1350+
"Name": "UNC_P_CLOCKTICKS",
1351+
"Alias": "a"
1352+
},
1353+
{
1354+
"Name": "UNC_P_POWER_STATE_OCCUPANCY_CORES_C6",
1355+
"Alias": "b"
1356+
}
1357+
],
1358+
"Constants": [
1359+
{
1360+
"Name": "SOCKET_COUNT",
1361+
"Alias": "socket_count"
1362+
}
1363+
],
1364+
"Formula": "(b / a[0]) * socket_count",
1365+
"Category": "Power",
1366+
"ResolutionLevels": "SOCKET, SYSTEM",
1367+
"MetricGroup": "cpu_cstate"
1368+
},
13151369
{
13161370
"MetricName": "Bottleneck_Mispredictions",
13171371
"LegacyName": "metric_TMA_Bottleneck_Mispredictions",

SPR/metrics/sapphirerapidshbm_metrics.json

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
"Header": {
33
"Copyright": "Copyright (c) 2001 - 2025 Intel Corporation. All rights reserved.",
44
"Info": "Performance Monitoring Metrics for 4th Generation Intel(R) Xeon(R) Processor Scalable Family based on Sapphire Rapids microarchitecture0",
5-
"DatePublished": "06/17/2025",
6-
"Version": "1.1",
5+
"DatePublished": "09/12/2025",
6+
"Version": "1.2",
77
"Legend": "",
88
"TmaVersion": "5.1",
99
"TmaFlavor": "Full"
@@ -1312,6 +1312,60 @@
13121312
"ResolutionLevels": "CHA, SOCKET, SYSTEM",
13131313
"MetricGroup": ""
13141314
},
1315+
{
1316+
"MetricName": "cpu_cstate_c0",
1317+
"LegacyName": "metric_CPU_cstate_C0",
1318+
"Level": 1,
1319+
"BriefDescription": "The average number of cores that are in cstate C0 as observed by the power control unit (PCU).",
1320+
"UnitOfMeasure": "",
1321+
"Events": [
1322+
{
1323+
"Name": "UNC_P_CLOCKTICKS",
1324+
"Alias": "a"
1325+
},
1326+
{
1327+
"Name": "UNC_P_POWER_STATE_OCCUPANCY_CORES_C0",
1328+
"Alias": "b"
1329+
}
1330+
],
1331+
"Constants": [
1332+
{
1333+
"Name": "SOCKET_COUNT",
1334+
"Alias": "socket_count"
1335+
}
1336+
],
1337+
"Formula": "(b / a[0]) * socket_count",
1338+
"Category": "Power",
1339+
"ResolutionLevels": "SOCKET, SYSTEM",
1340+
"MetricGroup": "cpu_cstate"
1341+
},
1342+
{
1343+
"MetricName": "cpu_cstate_c6",
1344+
"LegacyName": "metric_CPU_cstate_C6",
1345+
"Level": 1,
1346+
"BriefDescription": "The average number of cores are in cstate C6 as observed by the power control unit (PCU).",
1347+
"UnitOfMeasure": "",
1348+
"Events": [
1349+
{
1350+
"Name": "UNC_P_CLOCKTICKS",
1351+
"Alias": "a"
1352+
},
1353+
{
1354+
"Name": "UNC_P_POWER_STATE_OCCUPANCY_CORES_C6",
1355+
"Alias": "b"
1356+
}
1357+
],
1358+
"Constants": [
1359+
{
1360+
"Name": "SOCKET_COUNT",
1361+
"Alias": "socket_count"
1362+
}
1363+
],
1364+
"Formula": "(b / a[0]) * socket_count",
1365+
"Category": "Power",
1366+
"ResolutionLevels": "SOCKET, SYSTEM",
1367+
"MetricGroup": "cpu_cstate"
1368+
},
13151369
{
13161370
"MetricName": "Bottleneck_Mispredictions",
13171371
"LegacyName": "metric_TMA_Bottleneck_Mispredictions",

mapfile.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,11 @@ GenuineIntel-6-8D,V1.1,/TGL/metrics/tigerlake_metrics.json,metrics,,,
142142
GenuineIntel-6-8F,V1.34,/SPR/events/sapphirerapids_core.json,core,,,
143143
GenuineIntel-6-8F,V1.34,/SPR/events/sapphirerapids_uncore.json,uncore,,,
144144
GenuineIntel-6-8F,V1.34,/SPR/events/sapphirerapids_uncore_experimental.json,uncore experimental,,,
145-
GenuineIntel-6-8F,V1.1,/SPR/metrics/sapphirerapids_metrics.json,metrics,,,
145+
GenuineIntel-6-8F,V1.2,/SPR/metrics/sapphirerapids_metrics.json,metrics,,,
146146
GenuineIntel-6-CF,V1.19,/EMR/events/emeraldrapids_core.json,core,,,
147147
GenuineIntel-6-CF,V1.19,/EMR/events/emeraldrapids_uncore.json,uncore,,,
148148
GenuineIntel-6-CF,V1.19,/EMR/events/emeraldrapids_uncore_experimental.json,uncore experimental,,,
149-
GenuineIntel-6-CF,V1.1,/EMR/metrics/emeraldrapids_metrics.json,metrics,,,
149+
GenuineIntel-6-CF,V1.2,/EMR/metrics/emeraldrapids_metrics.json,metrics,,,
150150
GenuineIntel-6-6A,V1.28,/ICX/events/icelakex_core.json,core,,,
151151
GenuineIntel-6-6A,V1.28,/ICX/events/icelakex_uncore.json,uncore,,,
152152
GenuineIntel-6-6A,V1.28,/ICX/events/icelakex_uncore_experimental.json,uncore experimental,,,

0 commit comments

Comments
 (0)