Skip to content

Commit d818bdf

Browse files
committed
add kernel util and core c6
Signed-off-by: Harper, Jason M <[email protected]>
1 parent 2ebef0c commit d818bdf

File tree

2 files changed

+53
-4
lines changed

2 files changed

+53
-4
lines changed

cmd/metrics/resources/base.html

Lines changed: 51 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -520,6 +520,17 @@
520520
]
521521
}
522522

523+
let kernel_util = {
524+
...base_line,
525+
series: [
526+
{
527+
name: "Kernel Utilization %",
528+
type: 'line',
529+
data: <<.KERNELUTIL>>,
530+
}
531+
]
532+
}
533+
523534
let cpi = {
524535
...base_line,
525536
series: [
@@ -617,6 +628,16 @@
617628
]
618629
}
619630

631+
let c6_core = {
632+
...base_line,
633+
series: [
634+
{
635+
name: "Core C6 Residency %",
636+
type: 'line',
637+
data: <<.C6CORE>>,
638+
}
639+
]
640+
}
620641

621642
const diffreport = (e) => {
622643
let reader = new FileReader();
@@ -760,16 +781,29 @@
760781
<Grid container style={{ borderBottom: "1px solid rgba(0, 0, 0, 0.1)", paddingBottom: "24px" }}>
761782
<Grid item xs={5}>
762783
<Typography variant="h2">
763-
CPU utilization
784+
CPU Utilization
764785
</Typography>
765786
<Typography variant="body1">
766-
Percentage of time spent in the active CPU power state C0. When a core is not being utilized it can go into lower power states to reduce idle energy consumption.
787+
Percentage of time spent in the active CPU power state C0. When a core is not being utilized it can go into lower power states to reduce idle energy consumption. Higher CPU utilization generally indicates that the system is being effectively used, but very high utilization (e.g., consistently above 80-90%) may lead to performance bottlenecks if the CPU becomes a limiting factor for application performance.
767788
</Typography>
768789
</Grid>
769790
<Grid item xs={7}>
770791
<ReactECharts style={{ minHeight: "250px" }} option={cpu_util} />
771792
</Grid>
772793
</Grid>
794+
<Grid container style={{ borderBottom: "1px solid rgba(0, 0, 0, 0.1)", paddingBottom: "24px" }}>
795+
<Grid item xs={5}>
796+
<Typography variant="h2">
797+
CPU Utilization in Kernel Mode
798+
</Typography>
799+
<Typography variant="body1">
800+
The percentage of CPU time spent executing system-level operations, such as handling hardware interrupts and running operating system kernel code, rather than user-level applications. This metric helps identify if high CPU usage is due to system overhead or application demands.
801+
</Typography>
802+
</Grid>
803+
<Grid item xs={7}>
804+
<ReactECharts style={{ minHeight: "250px" }} option={kernel_util} />
805+
</Grid>
806+
</Grid>
773807
<Grid container style={{ borderBottom: "1px solid rgba(0, 0, 0, 0.1)", paddingBottom: "24px" }}>
774808
<Grid item xs={5}>
775809
<Typography variant="h2">
@@ -786,7 +820,7 @@
786820
<Grid container>
787821
<Grid item xs={5}>
788822
<Typography variant="h2">
789-
CPU operating frequency (in GHz)
823+
CPU Operating Frequency (in GHz)
790824
</Typography>
791825
<Typography variant="body1">
792826
This is the speed of the CPU clock. Higher frequencies allow faster execution. Usually servers are able to change their frequency based on utilization to conserve energy or turbo for short periods of time to boost performance.
@@ -858,7 +892,7 @@
858892
<ReactECharts style={{ minHeight: "250px" }} option={package_power} />
859893
</Grid>
860894
</Grid>
861-
<Grid container>
895+
<Grid container style={{ borderBottom: "1px solid rgba(0, 0, 0, 0.1)", paddingBottom: "24px" }}>
862896
<Grid item xs={5}>
863897
<Typography variant="h2">
864898
DRAM Power
@@ -871,6 +905,19 @@
871905
<ReactECharts style={{ minHeight: "250px" }} option={dram_power} />
872906
</Grid>
873907
</Grid>
908+
<Grid container>
909+
<Grid item xs={5}>
910+
<Typography variant="h2">
911+
Core C6 State Residency Percentage
912+
</Typography>
913+
<Typography variant="body1">
914+
The average percentage of time the cores spent in the C6 low power state. C6 is a deep core idle state where the core's internal clocks are stopped and the core voltage is reduced. This state saves more power than lighter C-states, but it takes longer to enter and exit, which can impact performance if the core needs to become active again quickly.
915+
</Typography>
916+
</Grid>
917+
<Grid item xs={7}>
918+
<ReactECharts style={{ minHeight: "250px" }} option={c6_core} />
919+
</Grid>
920+
</Grid>
874921
</TabPanel>
875922
<TabPanel
876923
value={systemTabs}

cmd/metrics/summary.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -460,6 +460,7 @@ func (mg *MetricGroup) loadHTMLTemplateValues(metadata Metadata, metricDefinitio
460460
{"TMABADSPECULATION", []string{"TMA_Bad_Speculation(%)", "Pipeline Utilization - Bad Speculation (%)", "bad_speculation"}},
461461
// CPU Tab
462462
{"CPUUTIL", []string{"CPU utilization %", "CPU utilization %", ""}},
463+
{"KERNELUTIL", []string{"CPU utilization % in kernel mode", "CPU utilization% in kernel mode", ""}},
463464
{"CPIDATA", []string{"CPI", "CPI", ""}},
464465
{"CPUFREQ", []string{"CPU operating frequency (in GHz)", "CPU operating frequency (in GHz)", ""}},
465466
// Memory Tab
@@ -473,6 +474,7 @@ func (mg *MetricGroup) loadHTMLTemplateValues(metadata Metadata, metricDefinitio
473474
// Power Tab
474475
{"PKGPOWER", []string{"package power (watts)", "package power (watts)", ""}},
475476
{"DRAMPOWER", []string{"DRAM power (watts)", "", ""}},
477+
{"C6CORE", []string{"core c6 residency %", "", ""}},
476478
}
477479
// replace the template variables with the series data
478480
for tIdx, tmpl := range templateReplace {

0 commit comments

Comments
 (0)