high resolution timers and timer interrupt thrashing

bill4carson bill4carson at gmail.com
Mon May 12 22:09:30 EDT 2014



On 2014年04月21日 01:54, Sudharsan Vijayaraghavan wrote:
> Hi All,
>
> With CONFIG_HIGH_RES_TIMERS configured and a whole lot of timer_create with
> interval of less than jiffy (i.e., few nano seconds) we are bound to
> get timer interrupts
> less than a jiffy because set_next_event will configure for expires
> less than jiffy.
>
> This means we are thrashing the system with more timer interrupts,
> perhaps to extent
> of almost every clock tick, is my understanding correct?

Yes, with hrtimer enabled, timer interrupt could be more frequently ever than before.
The effort of hrtimer is to enable high resolution timing for user land application
like video/audio like wise.

You can google why hrtimer was made to solve what kind of problem.

> Given this is it not dangerous to configure CONFIG_HIGH_RES_TIMERS
> Please give your thoughts
>
> Thanks,
> Sudharsan
>
> _______________________________________________
> Kernelnewbies mailing list
> Kernelnewbies at kernelnewbies.org
> http://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies
>

-- 
八百里秦川尘土飞扬,三千万老陕齐吼秦腔。

--bill



More information about the Kernelnewbies mailing list