Sobes.tech
Junior — Middle

What CPU load metrics can be viewed in the top process list in Linux?

sobes.tech AI

Answer from AI

In the top utility in Linux, you can view several metrics related to CPU load for each process:

  • %CPU — the percentage of CPU usage by the process. Shows how much CPU time the process is currently occupying.
  • PR (Priority) — the process priority, affecting CPU scheduling.
  • NI (Nice value) — the "niceness" value, which influences the process's priority.

Additionally, at the top of top, the overall CPU load by states is displayed:

  • us — time spent executing user processes.
  • sy — time spent on system (kernel) processes.
  • ni — time spent on processes with changed priority.
  • id — idle time of the CPU.
  • wa — time waiting for input/output.
  • hi and si — time handling hardware and software interrupts.

These metrics help understand which processes are loading the CPU and to what extent.