High irq load (Re: [PATCH] i386: Selectable Frequency of the Timer Interrupt)

Linus Torvalds
2005-07-13T22:49:34Z

On Wed, 13 Jul 2005, Jan Engelhardt wrote:
>
> No, some kernel code causes a triple-fault-and-reboot when the HZ is >=
> 10KHz. Maybe the highest possible value is 8192 Hz, not sure.

Can you post the triple-fault message? It really shouldn't triple-fault,
although it _will_ obviously spend all time just doing timer interrupts,
so it shouldn't get much (if any) real work done either.

A triple fault implies that there's something strange going on, like the
timer interrupt allowing itself to interrupt itself (ie we migt get a
timer interrupt that takes so long that another timer interrupt happens
while the first one is still running).

The irq code should protect against that kind of nested irq's, though,
which is why I'd like to hear more about this. It might be somebody
touching the timer chip at an inopportune time without holding the proper
locks, or something nasty - a real bug that you just don't see normally
and that a high timer frequency just happens to make obvious.

There should be no conceptual "highest possible HZ", although there are
certainly obvious practical limits to it (both on the timer hw itself, and
just the fact that at some point we'll spend all time on the timer
interrupt and won't get anything done..)

Linus