"Expensive timeout(9) function..."

Mike Silbersack silby at silby.com
Tue Apr 1 08:53:59 PST 2003

On Tue, 1 Apr 2003, Poul-Henning Kamp wrote:

> >The _tick routines are not easy to fix, FWIW.  MII access functions are
> >quite time consuming almost any way you look at it.
> I'm not sure the _tick functions should even be called from a timeout().
> In many ways it seems preferable to me to have then run sequentially
> from a single thread, possibly via a task-queue.
> --
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20

Yeah, I suppose limiting it to one mii_tick routine per second would help
somewhat... but it's still a bad situation.

Actually, we could improve it quite a bit if someone adds NANODELAY()
(hint, hint...)  Couldn't we have a first-run nanodelay that just used
nanotime to do the counting for it?

Mike "Silby" Silbersack

More information about the freebsd-hackers mailing list