From owner-freebsd-current@FreeBSD.ORG Thu Jun 1 20:42:12 2006 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 050BF16BB07 for ; Thu, 1 Jun 2006 20:42:12 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73CB143D5A for ; Thu, 1 Jun 2006 20:42:11 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from [131.106.58.208] (72-255-64-173.client.stsn.net [72.255.64.173]) (authenticated bits=0) by server.baldwin.cx (8.13.4/8.13.4) with ESMTP id k51Kg4T6081134; Thu, 1 Jun 2006 16:42:09 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: freebsd-current@freebsd.org Date: Thu, 1 Jun 2006 14:41:07 -0400 User-Agent: KMail/1.9.1 References: <20060529153103.GA17178@obiwan.tataz.chchile.org> <20060530223226.GT1890@obiwan.tataz.chchile.org> In-Reply-To: <20060530223226.GT1890@obiwan.tataz.chchile.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200606011441.07494.jhb@freebsd.org> X-Virus-Scanned: ClamAV 0.87.1/1505/Thu Jun 1 14:29:37 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-4.0 required=4.2 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham version=3.1.0 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on server.baldwin.cx Cc: Jeremie Le Hen Subject: Re: [fbsd] timer goes sluggish X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Jun 2006 20:42:35 -0000 On Tuesday 30 May 2006 18:32, Jeremie Le Hen wrote: > Hi, > > On Mon, May 29, 2006 at 05:31:03PM +0200, Jeremie Le Hen wrote: > > Hi, > > > > I won't write too much, the following session will tell much more: > > > > % jarjarbinks:root# ntpdate -b chronos.cru.fr > > % 29 May 17:08:44 ntpdate[4254]: step time server 195.220.94.163 offset 0.000273 sec > > % jarjarbinks:root# sysctl kern.timecounter.hardware > > % kern.timecounter.hardware: ACPI-fast > > % jarjarbinks:root# while : ; do date ; sleep 1 ; done > > % Mon May 29 17:08:56 CEST 2006 > > % Mon May 29 17:09:03 CEST 2006 > > % Mon May 29 17:09:09 CEST 2006 > > % Mon May 29 17:09:16 CEST 2006 > > % Mon May 29 17:09:22 CEST 2006 > > % ^C > > Sometimes, I feel dumb. > > I noticed that the clock sped up when the CPU makes heavy computing, > which meant there was some power saving on idleness. > > I dug a bit I found that hw.acpi.cpu.cx_lowest=C4. > Setting it hw.acpi.cpu.cx_lowest=C1 makes the clock goes ``in time'' :). If you are using APIC, try disabling APIC and see if it works ok with higher Cx states. -- John Baldwin