How to get cpu utilization through code with least overhead?
Mulyadi Santosa
mulyadi.santosa at gmail.com
Thu Jul 28 13:45:33 EDT 2011
On Fri, Jul 29, 2011 at 00:38, Vaibhav Jain <vjoss197 at gmail.com> 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
More information about the Kernelnewbies
mailing list