From owner-freebsd-arch@FreeBSD.ORG Sun Dec 2 12:50:24 2007 Return-Path: Delivered-To: arch@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6024B16A418; Sun, 2 Dec 2007 12:50:24 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.freebsd.org (Postfix) with ESMTP id 1EA3513C447; Sun, 2 Dec 2007 12:50:23 +0000 (UTC) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.61.3]) by phk.freebsd.dk (Postfix) with ESMTP id C7FC617105; Sun, 2 Dec 2007 12:50:22 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.14.1/8.14.1) with ESMTP id lB2CoM3r018584; Sun, 2 Dec 2007 12:50:22 GMT (envelope-from phk@critter.freebsd.dk) To: Robert Watson From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 02 Dec 2007 12:35:12 GMT." <20071202123231.G74097@fledge.watson.org> Date: Sun, 02 Dec 2007 12:50:22 +0000 Message-ID: <18583.1196599822@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Attilio Rao , arch@FreeBSD.org, Andre Oppermann Subject: Re: New "timeout" api, to replace callout X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 02 Dec 2007 12:50:24 -0000 In message <20071202123231.G74097@fledge.watson.org>, Robert Watson writes: >On Sun, 2 Dec 2007, Poul-Henning Kamp wrote: >The reason affinity is getting raised in particular is that quite a few people >are running around thinking that affinity is something that they do want and >plan to use. That's fine and good and all. But before we can play with that sort of stuff, we need some kind of instance handle on the timeout to express cpu affinity to/with. We also need to losse Hz from this API, for a large number of reasons, from efficiency to precision. And we need to get rid of the 20+ lines of "cleanup my callout" code that is infecting more and more code. This API redesign tries to address those three major problems, and getting that right is important because there are 444 sourcefiles to visit. If we find later on that we need to add timeout_fiddle_cpu_affinity(), we can add that, touching only two or three files, so that is two orders of magnitude less interesting right now. The important thing to look at this API, is that it should be able to express our intent, so that we should never need to visit all the 444 files ever again. -- 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.