Diagnosing and Rectifying CPU Faults
Use the Kunpeng Health Inspector to collect and diagnose server information. Fix the detected CPU performance issue and verify the result.
Prerequisites
The Kunpeng Health Inspector is installed in /home/devkit-kspect-x.x.x-Linux-aarch64.
Diagnosing CPU Issues
- Go to the tool directory.
1cd /home/devkit-kspect-x.x.x-Linux-aarch64
- Collect all information and view diagnosis suggestions.
1./kspect -s all

The diagnostic information indicates that the CPU core frequency has decreased.
- View CPU details.
Scroll down to the CPU details area. It is found that the CPU is in energy saving mode.

- Perform a CPU pressure test to check the CPU performance.
Switch to the pressure test tool directory and perform a CPU pressure test. Check that the pressure test tool has been compiled. For details about the compilation, see GitHub.
1 2
cd /home/SuperPI ./pi_css5 $((1<<20))
The pressure test duration is 6.78 seconds.

- Change the CPU mode to the performance mode.
1cpupower frequency-set -g performance
- Perform the CPU pressure test again.
1./pi_css5 $((1<<20))
The pressure test duration is 2.6 seconds, indicating that the CPU performance is improved and the mode is successfully changed.

- Collect all information again and view the diagnosis suggestions and CPU details.
1 2
cd /home/devkit-kspect-x.x.x-Linux-aarch64 ./kspect -s all
The diagnostic information shows no CPU details. The CPU mode issue has been resolved.
