[ECOS] Re: Cpu utilization
Mon Apr 28 07:34:00 GMT 2008
On 2008-04-26, Shilpa <email@example.com> wrote:
> Hi all
> I am looking for how to calculate the CPU utilization in the switch. Iam
> using ECOS and the processor is MPC8245. I kindly request you to guide me
> in calculation.
The usual method is to increment a counter in a loop in the
idle task. Look at the timer delta for a fixed period of time
(1 second, 10 seconds, etc.). CPU utilization is roughly
proportional to the inverse of that delta value.
Grant Edwards grante Yow! Yow! I just went
at below the poverty line!
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
More information about the Ecos-discuss