Re: device polling and weird timer interrupt count from vmstat



3) Is timer int really generated on each cpu? Am i really wasting cpu
time on ~4000 ints per second?

4000 ints per second is rather nothing on any modern CPU.
Have a look at the top(1) display of an otherwise idle
system. The "%interrupt" column should be zero, even if
it's processing 4000 timer interrupts per second. As far
as I know, the cpu timer interrupt handler is very light-
weight.


Thank you for the answer. My convern is that with 4 CPUs i get 8000 ints/second.
While em generates only about 200 ints/second. As i undertand not all int handlers
are the same. Some are heavy and some are light on CPU. So, the question is
what is better (better=less CPU time): 8000 ints/sec from timer or 200 ints/sec from NIC?

--
Regards,
Artem
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: submit_bh leaves interrupts on upon return
    ... so I altered the calling sequence to call with ints on. ... > and submitting them ad hoc was causing some interrupt windows where the ... At least in 2.6 you have a much faster io scheduler and the additionally ... Jens Axboe ...
    (Linux-Kernel)
  • Re: What OS calls are ISR safe?
    ... this interrupt (it is the SD Card removal interrupt) but I do want to ... mask out non wake source interrupts ... disable Ints ...
    (microsoft.public.windowsce.platbuilder)
  • Re: shared interrupts, isrs and int-controller
    ... a int-mask register with your design. ... The OR of the outputs of the FFs is the processor's interrupt ... the main problem seems that i don't queue ints received in int-context. ...
    (comp.os.linux.embedded)
  • Re: Atmel releasing FLASH AVR32 ?
    ... A dual thread 40 MHz CPU can replace two 20 MHz CPUs. ... that a thread can only run max 1/2 or 1/3rd of the cycles ... switch at the start of the pipeline, ... equivalent to the interrupt latency. ...
    (comp.arch.embedded)
  • [PATCH] Update Documentation/DocBook/kernel-hacking.tmpl
    ... Kernel Hacking. ... not associated with any process, serving a softirq, tasklet or bh; ... For example, while a softirq is running on a CPU, no other ... but a hardware interrupt can. ...
    (Linux-Kernel)