3 ms·
Does this CPU time accounting have any noticeable performance impact? I know in some embedded usecases, there are hundreds of thousands or millions of interrup
by londons_explore 6y ago
Does this CPU time accounting have any noticeable performance impact?
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.
- shakna 6y ago> 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 https://cateee.net/lkddb/web-lkddb/IRQ_TIME_ACCOUNTING.html