From owner-freebsd-questions Tue Dec 5 18:32:35 2000 From owner-freebsd-questions@FreeBSD.ORG Tue Dec 5 18:32:34 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from bazooka.unixfreak.org (bazooka.unixfreak.org [63.198.170.138]) by hub.freebsd.org (Postfix) with ESMTP id BA2C637B400 for ; Tue, 5 Dec 2000 18:32:33 -0800 (PST) Received: by bazooka.unixfreak.org (Postfix, from userid 1000) id 8112D3E09; Tue, 5 Dec 2000 18:32:33 -0800 (PST) Subject: Re: CPU Speed? To: matt@researcher.com (Matt Rudderham) Date: Tue, 5 Dec 2000 18:32:33 -0800 (PST) Cc: otterr@telocity.com (Otter), henrich@sigbus.com (Charles Henrich), freebsd-questions@FreeBSD.ORG In-Reply-To: from "Matt Rudderham" at Dec 05, 2000 10:24:01 PM X-Mailer: ELM [version 2.5 PL3] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-Id: <20001206023233.8112D3E09@bazooka.unixfreak.org> From: dima@unixfreak.org (Dima Dorfman) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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 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