From owner-freebsd-acpi@FreeBSD.ORG Thu May 17 17:59:26 2007 Return-Path: X-Original-To: acpi@freebsd.org Delivered-To: freebsd-acpi@FreeBSD.ORG Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7106216A404 for ; Thu, 17 May 2007 17:59:26 +0000 (UTC) (envelope-from nate@root.org) Received: from root.org (root.org [67.118.192.226]) by mx1.freebsd.org (Postfix) with ESMTP id 3DEDB13C459 for ; Thu, 17 May 2007 17:59:26 +0000 (UTC) (envelope-from nate@root.org) Received: (qmail 87207 invoked from network); 17 May 2007 17:59:26 -0000 Received: from ppp-71-139-42-13.dsl.snfc21.pacbell.net (HELO ?10.0.5.18?) (nate-mail@71.139.42.13) by root.org with ESMTPA; 17 May 2007 17:59:26 -0000 Message-ID: <464C97F0.5000709@root.org> Date: Thu, 17 May 2007 10:59:12 -0700 From: Nate Lawson User-Agent: Thunderbird 2.0.0.0 (X11/20070424) MIME-Version: 1.0 To: Peter Jeremy References: <20070515050404.GK49628@obelix.dsto.defence.gov.au> <1179249135.1149.21.camel@vonnegut> <20070516032813.GB3773@obelix.dsto.defence.gov.au> <464AAC1E.7060002@root.org> <20070516193130.GG1162@turion.vk2pj.dyndns.org> In-Reply-To: <20070516193130.GG1162@turion.vk2pj.dyndns.org> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: acpi@freebsd.org Subject: Re: PowerTOP for FreeBSD ? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 May 2007 17:59:26 -0000 Peter Jeremy wrote: > On 2007-May-16 00:00:46 -0700, Nate Lawson wrote: >> Normally timers tick every 1 us on FreeBSD. > > Unless something has changed massively, tradtiionally, hardclock > interrupts every 1msec and statclick interrupts at 128Hz (approx > 8msec). > Oops, yes it's every 1 ms (1/1000 sec). I didn't bother mentioning stat clock since it's derived from hardclock and that's the only one that makes the CPU exit its idle state. >> Most interrupts are >> serviced with no work to be performed, so it's just wasted computation. > > Using the lapic timer is an excellent example of this. By default it > runs at 2000Hz to run hardclock() every 1msec and statclock() every > 7.5 msec - just under 50% of the interrupts are completely wasted. > Absolutely. -- Nate