There are 3 general states your CPU can be in:

    • Idle, which means it has nothing to do.
    • Running a user space program, like a command shell, an email server, or a compiler.
    • Running the kernel, servicing interrupts or managing resources.

    image.png

    0.0 us UserSpace ,This tells us that the processor is spending 24.8% of its time running user space processes. A user space program is any process that doesn’t belong to the kernel. Shells, compilers, databases, web servers, and the programs associated with the desktop are all user space processes.

    3.1 SystemSpace, This is the amount of time that the CPU spent running the kernel. All the processes and system resources are handled by the Linux kernel. When a user space process needs something from the system, for example when it needs to allocate memory, perform some I/O, or it needs to create a child process, then the kernel is running.

    0.0 ni, the priority level a user space process can be tweaked by adjusting its niceness. The ni stat shows how much time the CPU spent running user space processes that have been niced. On a system where no processes have been niced then the number will be 0.
    nice 相关内容
    https://www.yuque.com/liyuan-pea35/cdnycc/vakg5w#WZ9wh

    0.0 wa, Input and output operations, like reading or writing to a disk, are slow compared to the speed of a CPU.

    0.0 hi and 0.0 si These two statistics show how much time the processor has spent servicing interrupts. hi is for hardware interrupts, and si is for software interrupts

    0.0 st This last number only applies to virtual machines. When Linux is running as a virtual machine on a hypervisor, the st (short for stolen) statistic shows how long the virtual CPU has spent waiting for the hypervisor to service another virtual CPU running on a different virtual machine.

    https://scoutapm.com/blog/understanding-linuxs-cpu-stats