Why do the CPU stats vary with ps and top?
Updated -
The commands ps
and top
express CPU time differently. While ps calculates it by "total CPU time" divided by "time task is running", top shows the value as a percentage of overall CPU time.
For ps
, this means that the longer a process is running without a high CPU utilization the smaller the value of %cpu
gets (it converges...
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.