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

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.

Figure 1 Flowchart

Prerequisites

The Kunpeng Health Inspector is installed in /home/devkit-kspect-x.x.x-Linux-aarch64.

Diagnosing CPU Issues

  1. Go to the tool directory.
    1
    cd /home/devkit-kspect-x.x.x-Linux-aarch64
    
  2. Collect all information and view diagnosis suggestions.
    1
    ./kspect -s all
    

    The diagnostic information indicates that the CPU core frequency has decreased.

  3. View CPU details.

    Scroll down to the CPU details area. It is found that the CPU is in energy saving mode.

  4. 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.

  5. Change the CPU mode to the performance mode.
    1
    cpupower frequency-set -g performance
    
  6. 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.

  7. 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.