From owner-freebsd-questions Wed Dec 6 1:33: 7 2000 From owner-freebsd-questions@FreeBSD.ORG Wed Dec 6 01:33:04 2000 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mail2.netcologne.de (mail2.netcologne.de [194.8.194.103]) by hub.freebsd.org (Postfix) with ESMTP id E67B137B401; Wed, 6 Dec 2000 01:33:03 -0800 (PST) Received: from husten.security.at12.de (dial-213-168-64-152.netcologne.de [213.168.64.152]) by mail2.netcologne.de (8.9.3/8.9.3) with ESMTP id KAA23379; Wed, 6 Dec 2000 10:32:59 +0100 (MET) Received: from localhost (localhost.security.at12.de [127.0.0.1]) by husten.security.at12.de (8.11.1/8.11.1) with ESMTP id eB69Wpg37914; Wed, 6 Dec 2000 10:32:51 +0100 (CET) (envelope-from pherman@frenchfries.net) Date: Wed, 6 Dec 2000 10:32:51 +0100 (CET) From: Paul Herman Sender: To: Charles Henrich Cc: John Baldwin , , Matt Rudderham Subject: Re: CPU Speed? In-Reply-To: <20001205205607.A93654@sigbus.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Tue, 5 Dec 2000, Charles Henrich wrote: > > [ In trying to determine the CPU speed, a program posted which pulls > machdep.tsc_freq from sysctl() ] > > Doesnt work on my P2/450 nor my P3-1Ghz machines. > I recall a small program called mhz in the lmbench port which tries to calculate the CPU speed by finding the GCD between the lengths (in ns) of two different instruction loops (whose lengths are relatively prime.) Supposedly platform independant. /usr/ports/benchmarks/lmbench -Paul. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message