tcp_isn_tick() / dummynet() callout madness ?

Poul-Henning Kamp phk at phk.freebsd.dk
Sun Jan 30 23:57:29 PST 2005


In message <41FDD507.2040409 at samsco.org>, Scott Long writes:

>Taskqueues really are very non-deterministic and a poor choice for
>periodic events.  They really are only suitable for events that are
>uncommon and don't require any sense whatsoever of urgency.  While the
>callout API doesn't have any real-time guarantees, there is an
>assumption that assigned callouts will be generated with a reasonable
>amount of accuracy and consistency, and not be held up by a task that
>has an indefinite run time.  Either a new dedicated kthread-based task
>needs to be created for what you propose, or the simplier approach can
>be taken of just deferring callouts that fail the trylock test to the
>end of the list.

Either of those would work for me.

-- 
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-current mailing list