Sunday, April 02, 2023

interpreting the Linux top command CPU usage stats

for interpreting the top command's %CPU usage stats.
  •     us: Amount of time the CPU spends executing processes for people in “user space.”
  •     sy: Amount of time spent running system “kernel space” processes.
  •     ni: Amount of time spent executing processes with a manually set nice value.
  •     id: Amount of CPU idle time.
  •     wa: Amount of time the CPU spends waiting for I/O to complete.
  •     hi: Amount of time spent servicing hardware interrupts.
  •     si: Amount of time spent servicing software interrupts.
  •     st: Amount of time lost due to running virtual machines (“steal time”).
Interestingly,
has a mistake about idle time - it says, "id is the percent of time idle (if high, CPU may be overworked)." It should be, if low, CPU may be overworked, right?

No comments:

Post a Comment