Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Dramatically reduce the CPU usage of 'top'' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Dramatically reduce the CPU usage of 'top'
Authored by: ChiefTypist on Feb 21, '04 01:58:19AM

I'm the author of iPulse and the quote mentioned in the parent post...

The problem is that top (and other monitoring applications) sample the CPU usage during the time that it is scheduled to consume CPU and, as such, it will always sample itself at a higher usage than normal and everything else at a slightly lower usage.

Any calls to host_processor_info(), task_info(), thread_info() are very likely take snapshots at a point in time where usage is artificially high.

If you want to get an idea of how much CPU usage an application like top, iPulse, or Activity Monitor is using, you should use another application to sample with.



[ Reply to This | # ]
Dramatically reduce the CPU usage of 'top'
Authored by: deleted_user18 on Feb 21, '04 04:34:23AM

But why is this different on Linux? Wheter I look at a Dual-Xeon or an old Pentium III server I always get a load for top of less than 2%.



[ Reply to This | # ]