Thread (3 messages) 3 messages, 3 authors, 2000-09-15

Re: zeroing pages in the idle task?

flat view

From: Holger Bettag <hidden>
Date: 2000-09-15 13:50:28

"Timothy A. Seufert" [off-list ref] writes:

At 9:35 PM -0500 9/14/00, Takashi Oe wrote:
quoted
On Wed, 13 Sep 2000, Geert Uytterhoeven wrote:
quoted
 On the m68k, we have some code to guestimate the CPU clock based on the
 BogoMIPS (see get_cpuinfo() in arch/m68k/kernel/setup.c). Since we
 didn't care about the overhead incurred by interrupt processing, it's
 not that accurate though (I get 24.8 MHz on my 25 MHz 68040).
That thought had occured to me.  Only problem is that the relationship
between bogomips and cpu clock speed depends on, well, CPU.  For 601, it's
one to one, and, for 604, two to one, and so on.  I don't know the ratios
for 603, G3, or G4.
It gets more fun than that.  I've found that the G3's ratio varies
depending on how many of its features are turned on.  It's usually
2:1, but if the BTIC and BHT (Branch Target Instruction Cache, Branch
History Table) are turned off, it drops way down (1:1 I think, but I
may be misremembering).
Would a rewrite of the bogomips loop be an option?

In that case one could chose a sequence of dependant instructions in
the loop body, preventing possible superscalar execution. (One could
specifically use instructions that are commonly 'execution
serializing', like 'adde', to again enforce execution of only a single
instruction per clock.)

If the loop body was long enough, effects of varying branching
efficiency could also be masked. That way, bogomips should correlate
very well with actual MHz.

  Holger

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help