Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Oct 2005 11:43:32 +0200
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Pawel Jakub Dawidek <pjd@FreeBSD.org>
Cc:        "Yuriy N. Shkandybin" <jura@networks.ru>, David Xu <davidxu@freebsd.org>, Mark Kirkwood <markir@paradise.net.nz>, current@freebsd.org
Subject:   Re: Timers and timing, was: MySQL Performance 6.0rc1 
Message-ID:  <30513.1130492612@critter.freebsd.dk>
In-Reply-To: Your message of "Fri, 28 Oct 2005 11:10:16 %2B0200." <20051028091016.GC3596@garage.freebsd.pl> 

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?30513.1130492612>