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.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content