Variable timer tick rate?
Poul-Henning Kamp
phk at phk.freebsd.dk
Sat Oct 18 13:05:43 PDT 2003
In message <20031018130119.T47207 at root.org>, Nate Lawson writes:
>This is an interesting approach. If there are no upcoming timeouts,
>decrease the tick rate. Of course, you have to amortize the cost of
>resetting the timer over the period of no ticks.
>
>http://kerneltrap.org/node/view/1006
Yes, unfortunately we may have a couple of timeout() (ab)users which
use it to implement "as fast as possible polling" by calling timeout
with a 1 tick argument, so last I looked (a couple of years ago)
it fired every tick.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-arch
mailing list