Re: No 100 HZ timer !

Jamie Lokier (lk@tantalophile.demon.co.uk)
Tue, 14 Aug 2001 16:59:51 +0100


Pavel Machek wrote:
> > The testing I have done seems to indicate a lower overhead on a lightly
> > loaded system, about the same overhead with some load, and much more
> > overhead with a heavy load. To me this seems like the wrong thing to
> > do. We would like as nearly a flat overhead to load curve as we can get
>
> Why? Higher overhead is a price for better precision timers. If you rounded
> all times in "tickless" mode, you'd get about same overhead, right?

What Pavel says is true only if the data structure for holding pending
timers degrades into good O(1) insertion & deletion time in the tickless case.

I recall George Anzinger saying something about the current ticked
scheduler being able to insert timers that never reach expiry very
efficiently (simply a list insert + delete), whereas the current
tickless code could not do that.

Is that right? Is it the data structure that is taking too long to
process, when many timers that do not reach expiry are inserted? There
would be one such insertion and deletion on every context switch, right?

-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/