Date: Tue, 5 Dec 2000 18:32:33 -0800 (PST) From: dima@unixfreak.org (Dima Dorfman) To: matt@researcher.com (Matt Rudderham) Cc: otterr@telocity.com (Otter), henrich@sigbus.com (Charles Henrich), freebsd-questions@FreeBSD.ORG Subject: Re: CPU Speed? Message-ID: <20001206023233.8112D3E09@bazooka.unixfreak.org> In-Reply-To: <NDBBLEKOOLGIBFPGLFEKEEKOCJAA.matt@researcher.com> from "Matt Rudderham" at Dec 05, 2000 10:24:01 PM
next in thread | previous in thread | raw e-mail | index | archive | help
Matt Rudderham wrote:
>
> > Otter wrote:
> > >
> > > > sysctl kern.clockrate
> > > kern.clockrate: { hz = 100, tick = 10000, tickadj = 5, profhz = 1024,
> > > stathz = 128 }
> >
> > This appears to be meaningless, as it is the same on all computers (I
> > tried two, and they're both identical to yours).
> Me as well, a 133MHz and a 200MHz system both come up with above response. I
> am interested in the answer now though:)
I believe this might be your answer:
dima@hornet# sysctl machdep.tsc_freq
machdep.tsc_freq: 498853267
The actual frequency is different every time you start up, and if your
application doesn't care, just round it off.
In case you're wondering how I found this, I used:
`sysctl -a | grep 498` since I know 498 is my CPU frequency as
reported by the kernel on startup.
Hope this helps
--
Dima Dorfman <dima@unixfreak.org>
Finger dima@unixfreak.org for PGP public key.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20001206023233.8112D3E09>
