From owner-freebsd-arch@FreeBSD.ORG Tue Nov 14 12:03:47 2006 Return-Path: X-Original-To: freebsd-arch@freebsd.org Delivered-To: freebsd-arch@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0503416A412 for ; Tue, 14 Nov 2006 12:03:47 +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 9551743D55 for ; Tue, 14 Nov 2006 12:03:46 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (critter.freebsd.dk [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 1E03D170C0; Tue, 14 Nov 2006 12:03:45 +0000 (UTC) Received: from critter.freebsd.dk (localhost [127.0.0.1]) by critter.freebsd.dk (8.13.8/8.13.8) with ESMTP id kAEC3i7R010667; Tue, 14 Nov 2006 12:03:44 GMT (envelope-from phk@critter.freebsd.dk) To: Ivan Voras From: "Poul-Henning Kamp" In-Reply-To: Your message of "Tue, 14 Nov 2006 12:55:57 +0100." Date: Tue, 14 Nov 2006 12:03:44 +0000 Message-ID: <10666.1163505824@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: freebsd-arch@freebsd.org Subject: Re: a proposed callout API 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: Tue, 14 Nov 2006 12:03:47 -0000 In message , Ivan Voras writes: >Poul-Henning Kamp wrote: > >... >> 4. We execute all callouts on one CPU only. >... >> Short callouts, less than 2 seconds, will be stored in a binary >> heap (A tree where a node is numerically lower than its parents.) >> >> The depth of the heap is Log2(nodes) and there are very efficient >> ways to store and access the heap. >> >> Locking will be with one mutex for the heap. > >Won't that retain the 1-cpu-only "feature"? No, that will be one lock per callout-group, however we decide to use those. -- 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.