From owner-freebsd-hackers Thu Sep 2 13:17:31 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from uni4nn.gn.iaf.nl (osmium.gn.iaf.nl [193.67.144.12]) by hub.freebsd.org (Postfix) with ESMTP id 2B3C815B89; Thu, 2 Sep 1999 13:17:21 -0700 (PDT) (envelope-from wilko@yedi.iaf.nl) Received: from yedi.iaf.nl (uucp@localhost) by uni4nn.gn.iaf.nl (8.9.2/8.9.2) with UUCP id WAA03199; Thu, 2 Sep 1999 22:02:26 +0200 (MET DST) Received: (from wilko@localhost) by yedi.iaf.nl (8.9.3/8.9.3) id VAA06448; Thu, 2 Sep 1999 21:15:53 +0200 (CEST) (envelope-from wilko) From: Wilko Bulte Message-Id: <199909021915.VAA06448@yedi.iaf.nl> Subject: Re: CFD: "bogomips" CPU performance metric In-Reply-To: <37CEB68D.848BDAF8@sftw.com> from Nick Sayer at "Sep 2, 1999 10:40:30 am" To: nsayer@FreeBSD.ORG Date: Thu, 2 Sep 1999 21:15:53 +0200 (CEST) Cc: freebsd-hackers@FreeBSD.ORG X-Organisation: Private FreeBSD site - Arnhem, The Netherlands X-pgp-info: PGP public key at 'finger wilko@freefall.freebsd.org' X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG As Nick Sayer wrote ... > so long as > they don't break anything in the process. > > I would like to generate a number that will hopefully be reasonably > compatible with > the one Linux spits out. The best method I have come up with is to have > a similar > (the same?) count down loop in assembler. Have it count down from > 1,000,000 and > see how much nanotime() has gone by. NANSPERSEC/nansused = bogomips. > A 1 bogomips machine will take an extra second to do this (anything > likely to be > even able to run FreeBSD should exceed 1 BM - yes, ha ha), and a kBM CPU > > can do it in 1 ms. Perhaps in the future a prescaler might be required, > but > this whole thing is just really chrome anyway. > > Would anyone scream and projectile-vomit if I added this to identcpu.c? I really don't see any merit in adding Linux-isms like this. Sounds a bit like the 'hack of the day' to me. I feel FreeBSD is well respected for it's stability etc. Not for it's 'me too' Linux-isms without any practical use. Mind you, I don't say Linux does not have stuff that is useful for inclusion in FreeBSD. I just stay BogoMips is what it calls itself: bogus, and should be kept from the FreeBSD kernel. Just my Dfl 0.02 W/ -- | / o / / _ Arnhem, The Netherlands - Powered by FreeBSD - |/|/ / / /( (_) Bulte WWW : http://www.tcja.nl http://www.freebsd.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message