Re:Is Your Linux Version Hiding Interrupt CPU Usage from You?
by shakna on Monday February 15, 2021 @05:19AM
(#26141218)
> Does this CPU time accounting have any noticeable performance impact?
Yes.
> Select this option to enable fine granularity task irq time accounting. This is done by reading a timestamp on each transitions between softirq and hardirq state, so there can be a small performance impact.
[0] https://cateee.net/lkddb/web-lkddb/IRQ_TIME_ACCOUNTING.html
I know in some embedded usecases, there are hundreds of thousands or millions of interrupts per second, and an interrupt routine might be only tens of clock cycles long. If that's the case, an extra bunch of instructions to time how long every single interrupt takes is a substantial overhead.