From owner-freebsd-questions@FreeBSD.ORG Thu Oct 14 19:59:59 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E1FC510656E5 for ; Thu, 14 Oct 2010 19:59:59 +0000 (UTC) (envelope-from bruce@cran.org.uk) Received: from muon.cran.org.uk (muon.cran.org.uk [IPv6:2a01:348:0:15:5d59:5c40:0:1]) by mx1.freebsd.org (Postfix) with ESMTP id 777048FC1A for ; Thu, 14 Oct 2010 19:59:59 +0000 (UTC) Received: from muon.cran.org.uk (localhost [127.0.0.1]) by muon.cran.org.uk (Postfix) with ESMTP id 1F185E84ED; Thu, 14 Oct 2010 20:59:58 +0100 (BST) Received: from unknown (client-86-31-64-159.midd.adsl.virginmedia.com [86.31.64.159]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by muon.cran.org.uk (Postfix) with ESMTPSA; Thu, 14 Oct 2010 20:59:56 +0100 (BST) Date: Thu, 14 Oct 2010 20:59:54 +0100 From: Bruce Cran To: bf1783@gmail.com Message-ID: <20101014205954.00000598@unknown> In-Reply-To: References: <201010102228.33095.bruce@cran.org.uk> X-Mailer: Claws Mail 3.7.6 (GTK+ 2.16.6; i586-pc-mingw32msvc) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: bf1783@googlemail.com, freebsd-questions@freebsd.org Subject: Re: VIA EPIA 5000 and ACPI Cx levels X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Oct 2010 20:00:00 -0000 On Thu, 14 Oct 2010 19:43:36 +0000 "b. f." wrote: > I'm not sure what is going on here: if you set > hint.attimer.0.timecounter="0" and kern.eventtimer.timer="i8254" in > /boot/loader.conf, then the system should try to use the i8254 in > one-shot mode, unless you've specifically set periodic mode. If > kern.eventtimer.periodic=1, then you are _not_ using one-shot mode. > If it was 0 before your latest changes, then you were previously using > one-shot mode. But, as I wrote earlier, for kern.hz<128 and > kern.eventtimer.singlemul=1, periodic mode may result in more sleeping > than one-shot mode, though at a price. This may be what you are > seeing. Sorry, that was a typo: kern.eventtimer.periodic=0 after setting hint.attimer.0.timecounter=0. I'm seeing 145 interrupts per second now, so setting hz=100 and using singlemul mode would further decrease it - but I guess it's not something you would want to do on a router or desktop. > This or the high latency of C3 may account > for your machine not using it. Also note that you shouldn't use a > LAPIC timer if you are using C3 or deeper sleep states. Thanks. It sounds like things are working as they should then. Good to know the new timer code is working properly on this more unusual hardware! -- Bruce Cran