Quote:
Originally Posted by Cedrik
I think top command needs a few seconds to compute CPU usage
|
I observed the same and the values one gets with:
Code:
$ top -n 2 -b -d 60
(and I found no way to skip the initial 0.5 sec output) are more reliable in the second output. CPU usage is an integral value (at a tiny point in time there is only one process per core), hence any command giving an instant answer would have to aggregate already the last seconds, minutes,... of usage per process beforehand.