<br><br>On Saturday, April 22, 2017, Ozgur Karatas <<a href="mailto:mueddib@goosey.org">mueddib@goosey.org</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> 21.04.2017, 19:19, "Stephen Brennan" <<a href="javascript:;" onclick="_e(event, 'cvml', 'stephen@brennan.io')">stephen@brennan.io</a>>:<br>
> Hello all,<br>
><br>
<br>
Hello,<br>
<br>
> I was wondering if anyone had some information on how CPU time used by the<br>
> kernel is accounted for, e.g. in top or htop. I would imagine that kernel code<br>
> running in process code would be "billed" toward that process. What about kernel<br>
> worker threads (for example, work_structs queued for later)?<br>
><br>
> My overall goal is that I'm doing some large-scale network emulation, and I want<br>
> to ensure that the kernel is not using too much CPU time, otherwise the CPU<br>
> overhead may be messing with the results.<br>
<br>
I written to the code for myself, you can use and develop this code (open source).<br>
<br>
<a href="https://github.com/mueddib/cpustat" target="_blank">https://github.com/mueddib/<wbr>cpustat</a><br>
<br>
> Thanks,<br>
> Stephen<br>
<br>
Regards,<br>
<br>
Ozgur<br>
<br></blockquote><div><br></div><div>Hi</div><div><br></div><div>Very likely it is accounted for soft interrupt, hard interrupt and system time</div><div><br></div><div>If vm involved, steal time shall be accounted to</div><div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
______________________________<wbr>_________________<br>
Kernelnewbies mailing list<br>
<a href="javascript:;" onclick="_e(event, 'cvml', 'Kernelnewbies@kernelnewbies.org')">Kernelnewbies@kernelnewbies.org</a><br>
<a href="https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies" target="_blank">https://lists.kernelnewbies.<wbr>org/mailman/listinfo/<wbr>kernelnewbies</a><br>
</blockquote><br><br>-- <br>regards,<br><br>Mulyadi Santosa<br>Freelance Linux trainer and consultant<br><br>blog: <a href="http://the-hydra.blogspot.com">the-hydra.blogspot.com</a><br>training: <a href="http://mulyaditraining.blogspot.com">mulyaditraining.blogspot.com</a><br>