Skip to main content
2 of 2
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/

Top and ps not showing the same cpu result

This is linked to this question.

When I run top I get the following result:

enter image description here

pid 3038 is using 18% cpu, however when running

enter image description here

the result is 5.5%. And this number does not appear to be changing with time (i.e. when running the same command a bit later)...

Is the ps command somehow averaging the cpu usage?

Theodor
  • 969
  • 1
  • 8
  • 9