Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 05 Dec 2000 19:49:26 -0800 (PST)
From:      John Baldwin <jhb@FreeBSD.org>
To:        (Dima Dorfman) <dima@unixfreak.org>
Cc:        freebsd-questions@FreeBSD.org, (Charles Henrich) <henrich@sigbus.com>, (Otter) <otterr@telocity.com>, (Matt Rudderham) <matt@researcher.com>
Subject:   Re: CPU Speed?
Message-ID:  <XFMail.001205194926.jhb@FreeBSD.org>
In-Reply-To: <20001206023233.8112D3E09@bazooka.unixfreak.org>

next in thread | previous in thread | raw e-mail | index | archive | help

On 06-Dec-00 Dima Dorfman wrote:
> 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

This is only present for Pentium's or later.  This will not work on 386 and
486, nor will it work on an Alpha, IA/64, PPC, etc.

-- 

John Baldwin <jhb@FreeBSD.org> -- http://www.FreeBSD.org/~jhb/
PGP Key: http://www.baldwin.cx/~john/pgpkey.asc
"Power Users Use the Power to Serve!"  -  http://www.FreeBSD.org/


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?XFMail.001205194926.jhb>