From owner-freebsd-current@FreeBSD.ORG Mon Jan 31 07:57:29 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6523016A4CE; Mon, 31 Jan 2005 07:57:29 +0000 (GMT) Received: from critter.freebsd.dk (f170.freebsd.dk [212.242.86.170]) by mx1.FreeBSD.org (Postfix) with ESMTP id B561743D4C; Mon, 31 Jan 2005 07:57:28 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.1/8.13.1) with ESMTP id j0V7vR3W085989; Mon, 31 Jan 2005 08:57:27 +0100 (CET) (envelope-from phk@critter.freebsd.dk) To: Scott Long From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 30 Jan 2005 23:49:43 MST." <41FDD507.2040409@samsco.org> Date: Mon, 31 Jan 2005 08:57:27 +0100 Message-ID: <85988.1107158247@critter.freebsd.dk> Sender: phk@critter.freebsd.dk cc: Mike Silbersack cc: Robert Watson cc: current@freebsd.org cc: Colin Percival Subject: Re: tcp_isn_tick() / dummynet() callout madness ? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Jan 2005 07:57:29 -0000 In message <41FDD507.2040409@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@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.