Kernel CPU Utilization

Mulyadi Santosa mulyadi.santosa at gmail.com
Tue Apr 25 04:58:02 EDT 2017


On Saturday, April 22, 2017, Ozgur Karatas <mueddib at goosey.org> wrote:

>
> > 21.04.2017, 19:19, "Stephen Brennan" <stephen at brennan.io <javascript:;>
> >:
> >  Hello all,
> >
>
> Hello,
>
> >  I was wondering if anyone had some information on how CPU time used by
> the
> >  kernel is accounted for, e.g. in top or htop. I would imagine that
> kernel code
> >  running in process code would be "billed" toward that process. What
> about kernel
> >  worker threads (for example, work_structs queued for later)?
> >
> >  My overall goal is that I'm doing some large-scale network emulation,
> and I want
> >  to ensure that the kernel is not using too much CPU time, otherwise the
> CPU
> >  overhead may be messing with the results.
>
> I written to the code for myself, you can use and develop this code (open
> source).
>
> https://github.com/mueddib/cpustat
>
> >  Thanks,
> >  Stephen
>
> Regards,
>
> Ozgur
>
>
Hi

Very likely it is accounted for soft interrupt, hard interrupt and system
time

If vm involved, steal time shall be accounted to


_______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org <javascript:;>
> https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>


-- 
regards,

Mulyadi Santosa
Freelance Linux trainer and consultant

blog: the-hydra.blogspot.com
training: mulyaditraining.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kernelnewbies.org/pipermail/kernelnewbies/attachments/20170425/f87ec7d1/attachment.html 


More information about the Kernelnewbies mailing list