Frequency and Power Consumption Analysis
The tool obtains the server's CPU frequency, temperature, power consumption, and uncore device frequency information based on the hardware driver and BMC information, helping locate service performance bottlenecks and make full use of hardware resources.
Frequency and power consumption analysis is supported for some of servers equipped with the new Kunpeng 920 processor model but not for servers equipped with Kunpeng 920.
Command Function
Obtains the server's CPU frequency, temperature, power consumption, and uncore device frequency information based on the hardware driver and BMC information.
Syntax
1 | devkit tuner turbostat [-h] [-l {0,1,2,3}] [-d <sec>] [-i <sec>] [--bmc] |
Parameter Description
Parameter |
Option |
Description |
|---|---|---|
-h/--help |
- |
Obtains help information. This parameter is optional. |
-l/--log-level |
0/1/2/3 |
Log level, which defaults to 1. This parameter is optional.
|
-d/--duration |
- |
Collection duration, in seconds. The minimum value is 1 second. By default collection never ends. You can press Ctrl+\ to cancel the task or press Ctrl+C to stop the collection and start analysis. This parameter is optional. |
-i/--interval |
- |
Collection interval, in seconds. The default value is the collection duration and the minimum value is 1 second. The maximum value cannot exceed the collection duration. This parameter is optional. If this parameter is not set, no subreports are generated. It specifies the time taken to collect data in each subreport. |
--bmc |
- |
Enables interactive input. You can enter the |
Example
- Run the following command to obtain the CPU frequency, temperature, power consumption, uncore device frequency, and BMC-related data of the server:
1devkit tuner turbostat -d 10 --bmc
-d 10 indicates that the collection duration is 10 seconds and --bmc indicates that BMC-related data is obtained.
- Enter the BMC IP address, user name, and password based on the command output to obtain the BMC-related data.
================================================================================ Version : DevKit xxx CPU Model : xxx Command : devkit tuner turbostat -d 10 --bmc ================================================================================ BMC Host IP: xx.xx.xx.xx BMC Username: Administrator BMC Password:
Command output:
Starting to collect data [WARNING]Get socket power failed, possibly due to a low kernel version: [Errno 2] No such file or directory: '/sys/class/hwmon/hwmon1/power1_average' CPU and Server Status Summary Report Time:2026/01/15 08:17:45 ================================================================================ Per NUMA Frequency Table -------------------------------------------------------------------------------- ────────────────────────────────────────────────────────── | NUMA ID | CPU Frequency (MHz) | Uncore Frequency (MHz) | ────────────────────────────────────────────────────────── | 0 | 2900.5 | 1242.18 | | 1 | 2898.64 | 1599.3 | ────────────────────────────────────────────────────────── CPU Core Frequency Table -------------------------------------------------------------------------------- ──────────────────────────────────────────────────────── | Logical ID | Physical ID | NUMA ID | Frequency (MHz) | ──────────────────────────────────────────────────────── | 0 | 0 | 0 | 2900.0 | | 1 | 0 | 0 | 2900.0 | | 2 | 1 | 0 | 2904.59 | | 3 | 1 | 0 | 2904.59 | | 4 | 2 | 0 | 2895.44 | | 5 | 2 | 0 | 2895.44 | | 6 | 3 | 0 | 2897.18 | | 7 | 3 | 0 | 2897.18 | | 8 | 4 | 0 | 2898.61 | | 9 | 4 | 0 | 2898.61 | | 10 | 5 | 0 | 2900.0 | | 11 | 5 | 0 | 2900.0 | | 12 | 6 | 0 | 2898.61 | | 13 | 6 | 0 | 2898.61 | | 14 | 7 | 0 | 2900.0 | | 15 | 7 | 0 | 2900.0 | ... | 243 | 121 | 1 | 2903.75 | | 244 | 122 | 1 | 2897.96 | | 245 | 122 | 1 | 2897.96 | | 246 | 123 | 1 | 2895.24 | | 247 | 123 | 1 | 2895.24 | | 248 | 124 | 1 | 2899.33 | | 249 | 124 | 1 | 2899.33 | | 250 | 125 | 1 | 2899.33 | | 251 | 125 | 1 | 2899.33 | | 252 | 126 | 1 | 2900.67 | | 253 | 126 | 1 | 2900.67 | | 254 | 127 | 1 | 2897.99 | | 255 | 127 | 1 | 2897.99 | ──────────────────────────────────────────────────────── Uncore(L3 Cache) Frequency Table -------------------------------------------------------------------------------- ──────────────────────────────────────────────────────────── | Uncore Device(L3 Cache) Name | NUMA ID | Frequency (MHz) | ──────────────────────────────────────────────────────────── | hisi_sccl1_l3c0 | 0 | 1242.31 | | hisi_sccl1_l3c1 | 0 | 1242.15 | | hisi_sccl1_l3c2 | 0 | 1242.32 | | hisi_sccl1_l3c3 | 0 | 1242.07 | | hisi_sccl1_l3c4 | 0 | 1242.15 | | hisi_sccl1_l3c5 | 0 | 1242.26 | | hisi_sccl1_l3c6 | 0 | 1242.17 | | hisi_sccl1_l3c7 | 0 | 1242.3 | | hisi_sccl3_l3c0 | 0 | 1242.03 | | hisi_sccl3_l3c1 | 0 | 1242.04 | | hisi_sccl3_l3c2 | 0 | 1242.15 | | hisi_sccl3_l3c3 | 0 | 1242.31 | | hisi_sccl3_l3c4 | 0 | 1242.29 | | hisi_sccl3_l3c5 | 0 | 1242.0 | | hisi_sccl3_l3c6 | 0 | 1242.27 | | hisi_sccl3_l3c7 | 0 | 1242.06 | | hisi_sccl11_l3c0 | 1 | 1599.32 | | hisi_sccl11_l3c1 | 1 | 1599.2 | | hisi_sccl11_l3c2 | 1 | 1599.34 | | hisi_sccl11_l3c3 | 1 | 1599.46 | | hisi_sccl11_l3c4 | 1 | 1599.17 | | hisi_sccl11_l3c5 | 1 | 1599.25 | | hisi_sccl11_l3c6 | 1 | 1599.31 | | hisi_sccl11_l3c7 | 1 | 1599.37 | | hisi_sccl9_l3c0 | 1 | 1599.34 | | hisi_sccl9_l3c1 | 1 | 1599.26 | | hisi_sccl9_l3c2 | 1 | 1599.26 | | hisi_sccl9_l3c3 | 1 | 1599.35 | | hisi_sccl9_l3c4 | 1 | 1599.34 | | hisi_sccl9_l3c5 | 1 | 1599.47 | | hisi_sccl9_l3c6 | 1 | 1599.25 | | hisi_sccl9_l3c7 | 1 | 1599.16 | ──────────────────────────────────────────────────────────── CPU Socket Power and Temperature Table (In-band) -------------------------------------------------------------------------------- ──────────────────────────────────────────────────────────────────────────────────────────────────────────── | CPU Socket ID | CPU Socket Power (W) | CPU Socket Die0 Temperature (C) | CPU Socket Die1 Temperature (C) | ──────────────────────────────────────────────────────────────────────────────────────────────────────────── | 0 | N/A | 35.89 | 35.92 | | 1 | N/A | 35.16 | 34.73 | ──────────────────────────────────────────────────────────────────────────────────────────────────────────── CPU Socket Temperature Table (Out-of-band, '--bmc' required) -------------------------------------------------------------------------------- ─────────────────────────────────────────────────────────────────────────────── | CPU Socket ID | CPU Socket Temperature (C) | CPU Socket Mem Temperature (C) | ─────────────────────────────────────────────────────────────────────────────── | 0 | 36.2 | 34.0 | | 1 | 35.5 | 33.0 | ─────────────────────────────────────────────────────────────────────────────── Server status Table (Out-of-band, '--bmc' required) -------------------------------------------------------------------------------- Total Server Power (W): 357.3 Total CPU Power (W): 170.8 Total Memory Power (W): 8.0 Inlet Temperature (C): 22.0 Outlet Temperature (C): 35.0
The command output displays Per NUMA Frequency, CPU Core Frequency, Uncore(L3 Cache) Frequency, CPU Socket Power and Temperature, and BMC-related information such as CPU Socket Temperature and Server status.
- Per NUMA Frequency: average frequency of CPUs and uncore devices within each
NUMA node. - CPU Core Frequency: CPU core frequency.
- Uncore(L3 Cache) Frequency: uncore device frequency.
- CPU Socket Power and Temperature: CPU power consumption and temperature.
- CPU Socket Power and Temperature: CPU temperature related to the BMC.
- Server status: server status related to the BMC. The options are as follows:
- Total Server Power (W): total server power consumption collected by the BMC.
- Total CPU Power (W): total CPU power consumption collected by the BMC.
- Total Memory Power (W): total memory power consumption collected by the BMC.
- Inlet Temperature (C): air inlet temperature collected by the BMC.
- Outlet Temperature (C): air outlet temperature collected by the BMC.
- Per NUMA Frequency: average frequency of CPUs and uncore devices within each