From owner-freebsd-current@FreeBSD.ORG Fri Oct 28 09:43:38 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 268A616A41F; Fri, 28 Oct 2005 09:43:38 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from phk.freebsd.dk (phk.freebsd.dk [130.225.244.222]) by mx1.FreeBSD.org (Postfix) with ESMTP id ACC2D43D48; Fri, 28 Oct 2005 09:43:37 +0000 (GMT) (envelope-from phk@critter.freebsd.dk) Received: from critter.freebsd.dk (unknown [192.168.48.2]) by phk.freebsd.dk (Postfix) with ESMTP id 28212BC50; Fri, 28 Oct 2005 09:43:33 +0000 (UTC) To: Pawel Jakub Dawidek From: "Poul-Henning Kamp" In-Reply-To: Your message of "Fri, 28 Oct 2005 11:10:16 +0200." <20051028091016.GC3596@garage.freebsd.pl> Date: Fri, 28 Oct 2005 11:43:32 +0200 Message-ID: <30513.1130492612@critter.freebsd.dk> Sender: phk@critter.freebsd.dk Cc: "Yuriy N. Shkandybin" , David Xu , Mark Kirkwood , 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: Fri, 28 Oct 2005 09:43:38 -0000 In message <20051028091016.GC3596@garage.freebsd.pl>, Pawel Jakub Dawidek write s: > >--eHhjakXzOLJAF9wJ >Content-Type: text/plain; charset=iso-8859-2 >Content-Disposition: inline >Content-Transfer-Encoding: quoted-printable > >On Fri, Oct 28, 2005 at 10:47:06AM +0200, Poul-Henning Kamp wrote: >+> In message <20051028083337.GB3596@garage.freebsd.pl>, Pawel Jakub Dawide= >k write >+> s: >+>=20 >+> >Hmm:) On mine t43: >+> > >+> > null function: 0.00403 >+> > getpid(): 0.30784 >+> > time(): 1.94495 >+> > gettimeofday(): 1.94236 >+> > >+> >Timecounter "i8254" frequency 1193182 Hz quality 0 >+>=20 >+> ...This is not relevant information, because... >+>=20 >+> >kern.timecounter.hardware: ACPI-fast >+>=20 >+> You're using the ACPI-fast timecounter. > >I thought so:) Is there a way to switch used timecounter or is this choosen >automatically? By default the timecounter with the highest score is selected (but negative scores are never selected automatically). You can override this with sysctl kern.timecounter.hardware=something where something is one of the timecounters listed in kern.timecounter.choice -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence.