From owner-freebsd-current@FreeBSD.ORG Tue Nov 1 08:02:04 2005 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 0DCE416A41F for ; Tue, 1 Nov 2005 08:02:04 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from cyrus.watson.org (cyrus.watson.org [209.31.154.42]) by mx1.FreeBSD.org (Postfix) with ESMTP id 932CC43D48 for ; Tue, 1 Nov 2005 08:02:03 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from fledge.watson.org (fledge.watson.org [209.31.154.41]) by cyrus.watson.org (Postfix) with ESMTP id 83C2C46B17; Tue, 1 Nov 2005 03:02:02 -0500 (EST) Date: Tue, 1 Nov 2005 08:02:02 +0000 (GMT) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: "M. Warner Losh" In-Reply-To: <20051031.215329.115777034.imp@bsdimp.com> Message-ID: <20051101080018.R18382@fledge.watson.org> References: <4365EF7B.1020706@freebsd.org> <81213.1130754398@critter.freebsd.dk> <20051031.215329.115777034.imp@bsdimp.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: phk@phk.freebsd.dk, freebsd-current@freebsd.org Subject: Re: TSC instead of ACPI: powerd doesn't work anymore (to be expected?) 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: Tue, 01 Nov 2005 08:02:04 -0000 On Mon, 31 Oct 2005, M. Warner Losh wrote: > In message: <81213.1130754398@critter.freebsd.dk> > "Poul-Henning Kamp" writes: > : I am going to insist that clock_gettime(CLOCK_REALTIME, CLOCK_UPTIME) > : remain precise. > > 1ms is way too imprecise for the stuff we do at work. We need 3-4 more > orders of magnitude at a minimum from the time keeping system. Ideally, > through well documented interfaces. While I agree that for many consumers, sub-1ms accuracy is too low, I suggest that as a vendor of atomic clocks, your company is in fact not the average consumer of timing information. :-). One nice thing about the Linux TSC model, despite its limitations, is that it provides a middle ground between incrementing the clock in ticks and providing a more continuous measure of time, by allowing interpolation between ticks. Robert N M Watson