Thanks! Just curious to know if  this is how "top" does it.

Thanks
Vaibhav Jain

On Thu, Jul 28, 2011 at 10:45 AM, Mulyadi Santosa <[email protected]
> wrote:

> On Fri, Jul 29, 2011 at 00:38, Vaibhav Jain <[email protected]> wrote:
> > Hi,
> >
> > I need to write code to get and record the cpu utilization in certain
> > interval with the least overhead.
>
> try to derive them from /proc/loadavg or /proc/stat...
>
> --
> regards,
>
> Mulyadi Santosa
> Freelance Linux trainer and consultant
>
> blog: the-hydra.blogspot.com
> training: mulyaditraining.blogspot.com
>
_______________________________________________
Kernelnewbies mailing list
[email protected]
http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies

Reply via email to