Re: dynamic-hz

From: Pavel Machek
Date: Mon Dec 13 2004 - 07:44:25 EST


Hi!

> > Well most x86(64) these days have local APICs and that provides a
> > relatively inexpensive one shot timer mode.
>
> I doubt a one shot is appropriate. The irq latency is variable and we
> won't be able to atomically read tsc and rearm the one-shot timer. The
> intemediate error will propagate over time.

But that does not matter, right? Yes, one-shot timer will not fire
exactly at right place, but as long as you are reading TSC and basing
next shot on current time, error should not accumulate.
Pavel
--
Boycott Kodak -- for their patent abuse against Java.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/