From owner-freebsd-current@FreeBSD.ORG Sat Jul 24 22:44:57 2004 Return-Path: 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 0301D16A4CE; Sat, 24 Jul 2004 22:44:57 +0000 (GMT) Received: from harmony.village.org (rover.village.org [168.103.84.182]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9457343D31; Sat, 24 Jul 2004 22:44:56 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.12.11/8.12.11) with ESMTP id i6OMgqr7030308; Sat, 24 Jul 2004 16:43:01 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Sat, 24 Jul 2004 16:43:02 -0600 (MDT) Message-Id: <20040724.164302.106549556.imp@bsdimp.com> To: bde@zeta.org.au From: "M. Warner Losh" In-Reply-To: <20040721220405.Y2346@epsplex.bde.org> References: <20040721081310.GJ22160@freebsd3.cimlogic.com.au> <20040721102620.GF1009@green.homeunix.org> <20040721220405.Y2346@epsplex.bde.org> X-Mailer: Mew version 3.3 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit cc: current@freebsd.org Subject: Re: nanosleep returning early X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Sat, 24 Jul 2004 22:44:57 -0000 In message: <20040721220405.Y2346@epsplex.bde.org> Bruce Evans writes: : The monotonic clock can also be adjusted by NTP, and normally is if there : are any NTP adjustments at all (the uptime and the time use the same : timecounter which is adjusted by NTP). NTP's adjustments are only limited : to CLOCK_REALTIME when NTP steps the clock for initialization. Stepping : the clock causes other time warps and should never be used. ntp's frequency adjustments are applied to both, for the reasons you state. ntp's phase adjustments are done only to the 'boottime' which is adjusted, from time to time, and added to the uptime to get the current time. uptime is what is returned by CLOCK_MONOTONIC. ntp's frequency adjustments are tiny and are designed so that one SI second really takes one second, not 1+-epsiolon seconds that the timing hardware may have believed it actually took. Warner