Skip to main content
replaced http://unix.stackexchange.com/ with https://unix.stackexchange.com/
Source Link

This is linked to thisthis 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?

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?

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?

Tweeted twitter.com/#!/StackUnix/status/279934403424178178
Source Link
Theodor
  • 969
  • 1
  • 8
  • 9

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?