kernelnewbies.kernelnewbies.org archive mirror
 help / color / mirror / Atom feed
* Kernel CPU Utilization
@ 2017-04-21 16:17 Stephen Brennan
  2017-04-21 17:04 ` Ozgur Karatas
  0 siblings, 1 reply; 4+ messages in thread
From: Stephen Brennan @ 2017-04-21 16:17 UTC (permalink / raw)
  To: kernelnewbies

Hello all,

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.

Thanks,
Stephen

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Kernel CPU Utilization
  2017-04-21 16:17 Kernel CPU Utilization Stephen Brennan
@ 2017-04-21 17:04 ` Ozgur Karatas
  2017-04-21 17:09   ` Ozgur Karatas
  0 siblings, 1 reply; 4+ messages in thread
From: Ozgur Karatas @ 2017-04-21 17:04 UTC (permalink / raw)
  To: kernelnewbies



21.04.2017, 19:19, "Stephen Brennan" <stephen@brennan.io>:
> 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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Kernel CPU Utilization
  2017-04-21 17:04 ` Ozgur Karatas
@ 2017-04-21 17:09   ` Ozgur Karatas
  2017-04-25  8:58     ` Mulyadi Santosa
  0 siblings, 1 reply; 4+ messages in thread
From: Ozgur Karatas @ 2017-04-21 17:09 UTC (permalink / raw)
  To: kernelnewbies


> 21.04.2017, 19:19, "Stephen Brennan" <stephen@brennan.io>:
> ?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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Kernel CPU Utilization
  2017-04-21 17:09   ` Ozgur Karatas
@ 2017-04-25  8:58     ` Mulyadi Santosa
  0 siblings, 0 replies; 4+ messages in thread
From: Mulyadi Santosa @ 2017-04-25  8:58 UTC (permalink / raw)
  To: kernelnewbies

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

>
> > 21.04.2017, 19:19, "Stephen Brennan" <stephen@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 

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-04-25  8:58 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-21 16:17 Kernel CPU Utilization Stephen Brennan
2017-04-21 17:04 ` Ozgur Karatas
2017-04-21 17:09   ` Ozgur Karatas
2017-04-25  8:58     ` Mulyadi Santosa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).