From owner-freebsd-current@FreeBSD.ORG Sat Oct 29 00:06:41 2005 Return-Path: X-Original-To: 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 E408A16A41F; Sat, 29 Oct 2005 00:06:41 +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 C799743D68; Sat, 29 Oct 2005 00:06:37 +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 054F746B06; Fri, 28 Oct 2005 20:06:37 -0400 (EDT) Date: Sat, 29 Oct 2005 01:06:36 +0100 (BST) From: Robert Watson X-X-Sender: robert@fledge.watson.org To: Poul-Henning Kamp In-Reply-To: <35696.1130538037@critter.freebsd.dk> Message-ID: <20051029010225.P20147@fledge.watson.org> References: <35696.1130538037@critter.freebsd.dk> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: Pertti Kosunen , David Xu , "Yuriy N. Shkandybin" , current@freebsd.org Subject: Re: Timers and timing, was: MySQL Performance 6.0rc1 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: Sat, 29 Oct 2005 00:06:42 -0000 On Sat, 29 Oct 2005, Poul-Henning Kamp wrote: > You forgot to tell us what > > sysctl kern.timecounter.hardware > > was on the machine, but I pressume ACPI-fast ? Yes: kern.timecounter.hardware: ACPI-fast kern.timecounter.choice: TSC(-100) ACPI-fast(1000) i8254(0) dummy(-1000000) With TSC on SMP, you see the expected sorts of results: x 7SMP/clock_gettime_realtime + 7SMP/TSC_clock_gettime_realtime * 7SMP/clock_gettime_poor +--------------------------------------------------------------------------+ |* + x| |* + x| |* * + x x| |* * + x x| |* * + x x| |** ** ++ xx xx| ||MA_| |A| |A_M| +--------------------------------------------------------------------------+ N Min Max Median Avg Stddev x 12 1404 1450 1444 1430.0833 19.327128 + 12 571 623 616 612.91667 13.627901 Difference at 95.0% confidence -817.167 +/- 14.1587 -57.1412% +/- 0.990063% (Student's t, pooled s = 16.7221) * 12 503 566 517 527.08333 26.352362 Difference at 95.0% confidence -903 +/- 19.5659 -63.1432% +/- 1.36817% (Student's t, pooled s = 23.1083) Robert N M Watson