Re: Variable timer tick rate?
From: Poul-Henning Kamp (phk_at_phk.freebsd.dk)
Date: 10/18/03
- Previous message: Nate Lawson: "Variable timer tick rate?"
- In reply to: Nate Lawson: "Variable timer tick rate?"
- Next in thread: Bruce Evans: "Re: Variable timer tick rate?"
- Reply: Bruce Evans: "Re: Variable timer tick rate?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
To: Nate Lawson <nate@root.org> Date: Sat, 18 Oct 2003 22:05:40 +0200
In message <20031018130119.T47207@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@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. _______________________________________________ freebsd-arch@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-arch To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
- Previous message: Nate Lawson: "Variable timer tick rate?"
- In reply to: Nate Lawson: "Variable timer tick rate?"
- Next in thread: Bruce Evans: "Re: Variable timer tick rate?"
- Reply: Bruce Evans: "Re: Variable timer tick rate?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|