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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.