我要评分
获取效率
正确性
完整性
易理解

cpu

Command Function

Collects CPU information, including the CPU model and list.

Syntax

1
./kspect cpu [-h] (-G | -c CPU)

Parameter Description

Table 1 Parameters of the cpu command

Parameter

Option

Description

None

-

Collects all CPU information.

-h/--help

-

Obtains help information.

-G/--general

-

Displays basic CPU information.

-c/--cpu

  • n
  • n,m
  • n-m
  • all

Displays detailed information about a specified CPU core. The number of CPU cores is dynamically displayed based on the actual environment. The following provides an example of parameters:

  • To collect information about CPU core 1, enter -c 1.
  • To collect information about CPU cores 0 and 2, enter -c 0,2.
  • To collect information about CPU cores 0 to 3, enter -c 0-3.
  • To collect information about all CPU cores, enter -c all.

Example

Collect all CPU information.
1
./kspect cpu 
Figure 1 CPU information
  • If a -- is not displayed in red in the report, the related data is either unavailable or cannot be collected.
  • If the message is displayed in CPU Table indicating that the current CPU frequency is the frequency expected by the software, the current CPU frequency is obtained from sys/devices/system/cpu/cpu{}/cpufreq/scaling_cur_freq.
Table 2 Report description

Item

Description

CPU

Displays basic CPU information, including the name, architecture, mode, step, basic frequency, maximum frequency, number of cores, hyper-threading status, number of slots, number of NUMA nodes, NUMA queue list, L1/L2/L3 cache, and number of memory channels.

CPU Table

Displays details about each CPU core, including the CPU ID, physical core ID, logical core ID, slot, NUMA node, frequency, minimum performance percentage, mode, 3-level cache, forcible latency, EPB, and CPU cluster.

JSON Report

The generated report is saved in the Tool_installation_path/output/kspect-cpu-YYYYMMDD-HHMMSS directory and the file name is kspect-cpu-YYYYMMDD-HHMMSS.json.