From owner-freebsd-arch@FreeBSD.ORG Mon Dec 17 19:59:46 2012 Return-Path: Delivered-To: freebsd-arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3208DC41; Mon, 17 Dec 2012 19:59:46 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-wg0-f52.google.com (mail-wg0-f52.google.com [74.125.82.52]) by mx1.freebsd.org (Postfix) with ESMTP id 679BC8FC14; Mon, 17 Dec 2012 19:59:45 +0000 (UTC) Received: by mail-wg0-f52.google.com with SMTP id 12so2782571wgh.31 for ; Mon, 17 Dec 2012 11:59:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :content-type:content-transfer-encoding; bh=CVxVzJmOM1P1VQmTd5HRCxSNaY494vnOGnGSy77hHng=; b=0q3GrivsgQyVGHiIWG0cMfWQa9rN1+za+GLH6QWvMQ1fImO1P2LUpqnPDc1af3SLWN wHLwy95OoE5CQ+k/5MxtvapYL7yk6bYj/zfcAQHwNrANB1LLaURoxpgBxcJKhFKRkJh4 scZJZceJsO4UtccppeUK84apuNoHX/1oajlG9GVbDRTL3+xBLYvEL3BmqtKxs/tovJs0 0+478P/wmJMBHTpFjKIS/swUDvsypF1C/HVbnI40WmvmG4ZW453s5lDnaLnJelmk+pA0 AxSHmqC88cbWE2BohE7IiKWg1dRnCJFYFd2p0GIma8J+NMP/DbRadjxRizharIClRezt r4kg== Received: by 10.180.97.68 with SMTP id dy4mr17502497wib.7.1355774384480; Mon, 17 Dec 2012 11:59:44 -0800 (PST) Received: from mavbook.mavhome.dp.ua (mavhome.mavhome.dp.ua. [213.227.240.37]) by mx.google.com with ESMTPS id u6sm14120591wif.2.2012.12.17.11.59.42 (version=TLSv1/SSLv3 cipher=OTHER); Mon, 17 Dec 2012 11:59:43 -0800 (PST) Sender: Alexander Motin Message-ID: <50CF79AD.9040600@FreeBSD.org> Date: Mon, 17 Dec 2012 21:59:41 +0200 From: Alexander Motin User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:13.0) Gecko/20120628 Thunderbird/13.0.1 MIME-Version: 1.0 To: rizzo@iet.unipi.it Subject: Re: regarding r242905 ('us' argument to some callout functions) was Re: [RFC/RFT] calloutng Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Cc: Davide Italiano , freebsd-current , freebsd-arch@freebsd.org X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 17 Dec 2012 19:59:46 -0000 Hi. > I wonder why the choice is to use (actually, call) the value > "microseconds" rather use a bintime or something scaled and with a > well defined resolution. It was kind of engineering choice. I've chosen microseconds, following values used by ACPI to represent CPU sleep states exit latencies. Now that is the only usage for that value. If CPUs so much reduce wakeup latencies to make this scale too coarse, this type will be the smallest of our optimization tasks. On the other side, I have some doubts that we will be able to reach supported 2048 seconds limit on the integer side. Now even completely empty idle system has about 30 interrupts per second, that is far from 0.0005. From the other side, I don't know any system where CPUs have 2048 seconds wakeup latency. -- Alexander Motin