Date: Thu, 02 Sep 1999 10:40:30 -0700 From: Nick Sayer <nsayer@sftw.com> To: freebsd-hackers@freebsd.org Subject: CFD: "bogomips" CPU performance metric Message-ID: <37CEB68D.848BDAF8@sftw.com>
index | next in thread | raw e-mail
[-- Attachment #1 --]
Linux generates a meric of CPU performance as a byproduct of calibrating
a delay loop.
We don't require doing any such thing, and so adding it would be purely
cosmetic.
However, I allege that cosmetic things aren't in and of themselves evil,
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?
[-- Attachment #2 --]
0p *H
a0]10 + 0 *H
00D@0
*H
010 UZA10UWestern Cape10UDurbanville10U
Thawte Consulting1)0'U Thawte PF RSA IK 1998.9.16 17:551604U-Thawte Personal Freemail RSA Issuer 1998.9.160
990818170131Z
000817170131Z0\10USayer10U*Nicholas10UNicholas Sayer10 *H
nsayer@sftw.com00
*H
0 ǧ|E#>C]+w̱㪂PW r94NO60t=3I`NTM;A%3<ȋ#]l#M~<H̉888ERLS{? M0K0U0nsayer@sftw.com0U0 0U#0>`k3Xq80
*H
v30*ǂLBǃQWgT-չXqIZÙiphm
n-Gm0.{e
[V5sX5}#f4\A=<PB;T090
0
*H
010 UZA10UWestern Cape10U Cape Town10U
Thawte Consulting1(0&UCertification Services Division1$0"UThawte Personal Freemail CA1+0) *H
personal-freemail@thawte.com0
980916175534Z
000915175534Z010 UZA10UWestern Cape10UDurbanville10U
Thawte Consulting1)0'U Thawte PF RSA IK 1998.9.16 17:551604U-Thawte Personal Freemail RSA Issuer 1998.9.1600
*H
0 ĥ_!}$k kГ$h,OgCA#0v1P&T(⸛2< lO5Ov OE`АɜR*56<<5/ 7050U0 0U#0rIs4Uvr~wƲ0
*H
,ǂC>i\d+˛P@ºv<@UUy
)W(>
X[-3X5vr)BZw_'ۚ-NҍVeޕSk"z+a^zZ100010 UZA10UWestern Cape10UDurbanville10U
Thawte Consulting1)0'U Thawte PF RSA IK 1998.9.16 17:551604U-Thawte Personal Freemail RSA Issuer 1998.9.16@0 + 0 *H
1 *H
0 *H
1
990902174032Z0# *H
1qJO5q8ن0R *H
1E0C0
*H
0*H
0+0
*H
@0
*H
(0
*H
% %G;Sr9,.Z
NN.ӸRf,%w&#lHGǝW2toh~rfDлBٙ罖}4X9wP;mtCꥹaT
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?37CEB68D.848BDAF8>
