From owner-freebsd-arch@FreeBSD.ORG Sun Dec 2 12:02:52 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 2E0D116A421; Sun, 2 Dec 2007 12:02:52 +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 CA2A613C459; Sun, 2 Dec 2007 12:02:51 +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 6BA7517107; Sun, 2 Dec 2007 12:02:50 +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 lB2C2ndL018444; Sun, 2 Dec 2007 12:02:50 GMT (envelope-from phk@critter.freebsd.dk) From: "Poul-Henning Kamp" In-Reply-To: Your message of "Sun, 02 Dec 2007 11:58:04 GMT." <18378.1196596684@critter.freebsd.dk> Date: Sun, 02 Dec 2007 12:02:49 +0000 Message-ID: <18443.1196596969@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: Attilio Rao , arch@freebsd.org, Robert Watson , 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:02:52 -0000 In message <18378.1196596684@critter.freebsd.dk>, "Poul-Henning Kamp" writes: >> o TCP has hot and cold CPU/cache affinity. >> >> -> The timer facility should provide strong, weak and "don't care" >> CPU affinity. The affinity should be selected for a timer as >> whole, not upon each call. > >That is the "timeout_p" you pass into timeout_init() is for. > >What values we will provide there is not decided, apart from NULL >meaning "whatever..." I guess I need to elaborate that point some more: If we want CPU affinity, what happens that that we pass a per-cpu timeout provider: timeout_init(&pcpu->timouts, ...) If we want a private timeout group for NFS we pass that in: timeout_init(&nfs_timeouts, ...) Think of the implmentation of the timeouts as an object of which we can have multiple instances with various private properties... -- 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.