From owner-freebsd-hackers Thu Sep 2 17:49:43 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from sumatra.americantv.com (sumatra.americantv.com [208.139.222.227]) by hub.freebsd.org (Postfix) with ESMTP id 1ACF514F9D for ; Thu, 2 Sep 1999 17:49:36 -0700 (PDT) (envelope-from jlemon@americantv.com) Received: from right.PCS (right.PCS [148.105.10.31]) by sumatra.americantv.com (8.8.5/8.8.5) with ESMTP id TAA28572; Thu, 2 Sep 1999 19:47:33 -0500 (CDT) Received: from free.pcs (free.PCS [148.105.10.51]) by right.PCS (8.8.5/8.6.4) with ESMTP id TAA28569; Thu, 2 Sep 1999 19:47:32 -0500 (CDT) Received: (from jlemon@localhost) by free.pcs (8.8.6/8.8.5) id TAA16433; Thu, 2 Sep 1999 19:47:31 -0500 (CDT) Date: Thu, 2 Sep 1999 19:47:31 -0500 (CDT) From: Jonathan Lemon Message-Id: <199909030047.TAA16433@free.pcs> To: jkh@zippy.cdrom.com, hackers@freebsd.org Subject: Re: CFD: "bogomips" CPU performance metric X-Newsgroups: local.mail.freebsd-hackers In-Reply-To: References: Organization: Architecture and Operating System Fanatics Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article you write: >> CPU: Pentium/P54C (132.73-MHz 586-class CPU) >> Origin = "GenuineIntel" Id = 0x52c Stepping=12 >> Features=0x1bf >> >> Seems more precise and informative. For 386/486 based hardware >> someone could adapt one of the numerous CPU speed detection routines >> out there. > >Indeed. In fact, if someone is truly motivated to go and find >something to do, rather than adding a BogoMIPS counter why not instead >figure out some way to add CPU speed detection to SMP machines? As >anyone with an SMP box knows, that speed information is disabled for >various reasons. What I want is a simple new readable sysctl, something like: hw.clockrate: 132 I think that this would be useful both for development (how fast is that stupid machine down in the bunker?), and system admininstration (who needs a cpu upgrade this year?). Doing this for Pentium and better systems should be trivial. Doing it for 486 and lower would just add a timing loop. Doing it for SMP would be harder. hw.cpu0.clockrate: 233 hw.cpu1.clockrate: 233 Possibly? The implementer gets to pick a better name than these. -- Jonathan To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message