From owner-cvs-all@FreeBSD.ORG Sun Nov 27 13:35:13 2005 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 93B8616A41F; Sun, 27 Nov 2005 13:35:13 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from sakura.ninth-nine.com (sakura.ninth-nine.com [219.127.74.120]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8888643D62; Sun, 27 Nov 2005 13:35:12 +0000 (GMT) (envelope-from nork@FreeBSD.org) Received: from nadesico.ninth-nine.com (nadesico.ninth-nine.com [219.127.74.122]) by sakura.ninth-nine.com (8.13.3/8.13.3/NinthNine) with ESMTP id jARDZ9Eq088075; Sun, 27 Nov 2005 22:35:10 +0900 (JST) (envelope-from nork@FreeBSD.org) Date: Sun, 27 Nov 2005 22:35:09 +0900 From: Norikatsu Shigemura To: Robert Watson Message-Id: <20051127223509.8913eafe.nork@FreeBSD.org> In-Reply-To: <20051127131838.F81764@fledge.watson.org> References: <200511270055.jAR0tIkF032480@repoman.freebsd.org> <20051127005622.H81764@fledge.watson.org> <20051127234937.X28222@delplex.bde.org> <20051127131838.F81764@fledge.watson.org> X-Mailer: Sylpheed version 2.1.7 (GTK+ 2.8.7; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (sakura.ninth-nine.com [219.127.74.121]); Sun, 27 Nov 2005 22:35:11 +0900 (JST) Cc: cvs-src@FreeBSD.org, src-committers@FreeBSD.org, cvs-all@FreeBSD.org, bde@zeta.org.au Subject: Re: cvs commit: src/sys/sys time.h src/sys/kern kern_time.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2005 13:35:13 -0000 On Sun, 27 Nov 2005 13:23:00 +0000 (GMT) Robert Watson wrote: > > time(3) should use the environment variable too, since the fast version > > gives a value that is both imprecise and wrong. It inherits bugs from > > the kernel's time_second variable. time_second is not the current time > > truncated, but is the (current time less up to about tc_tick/HZ) > > truncated. It lags the current time by more than 1 second for up to > > about tc_tick/HZ seconds before every rollover of the correct truncated > > time. > Yes -- this is a mistake in the current library wrapper. All interfaces > modified to be "fast" or "precise" should be controlled by the > environmental variable so that testing is more consistent (i.e., other > than wrapping costs, the non-configured version should behave identically > to the non-wrapped version). I think that to use libmap.conf(5) is a best solution:-), if someone want to use low resolution version. I didn't confirm following setting: # All binaries use low resolution version on /usr/local/bin/ [/usr/local/bin/] libc.so.6 libwrapper.so.1 Of cource, you can use mysql only, and no more controll by environment variable.