CPU usage reporting in ps versus top
Updated -
Both top
and ps
report CPU usage; however, what they report is quite a bit different.
Here's a piece from the ps
man page explaining how it calculates % cpu:
cpu utilization of the process in "##.#" format. Currently, it is the CPU time used divided by the time the process has been running (cputime/realtime ratio), expressed ...
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.