Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Seasons Greetings from a new platform :-)
@ 1997-12-16 15:39 David Alan Gilbert
  0 siblings, 0 replies; 22+ messages in thread
From: David Alan Gilbert @ 1997-12-16 15:39 UTC (permalink / raw)


Przemek Klosowski wrote:

> However, when there is a branch or a conditional operation,
> i.e. instruction N+1 executes differently based on the result of
> instruction N, this pipeline has to stop and wait for the result of
> N. Since on average there is a branch/conditional every 10 or so
> instructions, a simple pipeline might be stalled 10-20% of the time.
> 
> Speculative execution means that the CPU executes code for either
> outcome for the test, but stores the results in temporary hidden
> registers, keeping track of what data comes from such speculation.
> When the actual predicate becomes known, the CPU picks up the data
> calculated for the correct value of the predicate, and discards the
> alternative computation. 

No - you don't have to execute both possibilities to qualify for saying a 
processor does speculative execution - and I doubt that the 21264 does
do both possibilities.

All that speculative execution means is executing an instruction
when your not sure if its going to execute or not. So consider
a little loop:

          set x 1000
  loop
          some-work
          decr x        <- I mean x=x-1
          if x>0 goback to loop
          something-else

When we get to the 'if' we could stop there and
wait for the decrement to finish and then go back to the loop.
But thats slow.

With speculative execution we make a guess; in this case 'hmm
a backward branch - thats probably a loop, lets guess thats done'.
So we make a note of the current state (not quite..) and start executing
some-work.  If the branch happened thats fine, we don't do anything else.
If the branch didn't happen then we restore the state from the note
we made and then carry on at something else. (The not quite is
the fact that we have to include the state of the not finished
stuff before the branch).

Now this is fairly efficient - if we are good at guessing we rarely
throw any work away - although we do need that hardware to hold
the state just in case we are wrong.

If we're desperate for more speed we go and execute both sides - so
we always execute some-work and something-else and then choose the
appropriate result.  But thats hopelessly unefficent - you waste
50% of your work. OK if your desperate for all out speed - but its
complex, and its a waste of 50% of your work. This is still a form
of speculative execution - but its a more aggressive one.

So how does the superscalar help - well say the loop bodies were REALLY
simple; you could execute an instruction of one loop on one functional
unit and an instruction of the next loop on another functuional unit.
So we might be able to do the some-work on one functiuonal unit
while doing the decr of the previous loop on another functional
unit (probably while working out the branch at the same time).

If the loop bodies are interdependent then you still have to wait
for results - so in the example above you couldn't run two decr's
in parallel because one needs the result of the other

With superscalar you really need some speculative execution otherwise
you wait around for branches most of the time and never actually
have any instructions to feed your functional units with.
If your a good guesser then you can keep two (on a good day) of your
4 functional units busy. The art is in getting the compiler to generate
code which is organised so that it can keep as many functional
units on the run as possible.

So are there any dhrystone figures for the 21264 yet? (and I thought
it was going to be clocked faster?).

Dave

-- 
----------------------------------------------------------------------
- David Alan Gilbert - WARNING! This is a beta release .signature    -
- Work:    dg @ cogency.co.uk        -    0161-428-9444              -
- Home:    gro.gilbert @ treblig.org -                               -
----------------------------------------------------------------------

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: Seasons Greetings from a new platform :-)
@ 1997-12-16 14:40 Przemek Klosowski
  0 siblings, 0 replies; 22+ messages in thread
From: Przemek Klosowski @ 1997-12-16 14:40 UTC (permalink / raw)


mike@clove.com asks

  I've heard of `speculative execution' in the stock market, but
  ... what is this in a microprocessor?

Briefly, modern CPUs are heavily pipelined, meaning that any given
moment they are handling several instructions in different stages of
completion (e.g.  they may be writing out results of one instruction,
calculating the results of another one, fetching the operands for a
third one and fetching/decoding a fourth one). This works rather well
for code that simply runs through a long sequence of instructions,
resulting in an average one or more machine instructions completed per
clock cycle, even though the actual instruction operation is much longer.

However, when there is a branch or a conditional operation,
i.e. instruction N+1 executes differently based on the result of
instruction N, this pipeline has to stop and wait for the result of
N. Since on average there is a branch/conditional every 10 or so
instructions, a simple pipeline might be stalled 10-20% of the time.

Speculative execution means that the CPU executes code for either
outcome for the test, but stores the results in temporary hidden
registers, keeping track of what data comes from such speculation.
When the actual predicate becomes known, the CPU picks up the data
calculated for the correct value of the predicate, and discards the
alternative computation. This is of course only possible if the CPU
does have multiple independent functional units (ALUs etc) and temporary
storage; Alpha had such parallel functional units for some time now
because they help even for non-speculative code.

It turns out that with enough functional units and temporary result
storage it pays to do this extra work even though half (or 3/4 or 7/8)
of it is wasted.

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 22+ messages in thread
[parent not found: <199712151341.IAA18985@clove.com>]
* Re: Seasons Greetings from a new platform :-)
@ 1997-12-15 13:41 Mike Howard
  0 siblings, 0 replies; 22+ messages in thread
From: Mike Howard @ 1997-12-15 13:41 UTC (permalink / raw)


From: Jay.Estabrook@digital.com

   [snip]

   Now, as to *why* it might be twice what is expected, the Product Brief says:

	   "The 21264 is a four-way out-of-order-issue microprocessor
	    that performs dynamic scheduling, register renaming, and
	    speculative execution."
>>>>>>>>>>>>^^^^^^^^^^^^^^^^^^^^^^

I've heard of `speculative execution' in the stock market, but
... what is this in a microprocessor?

BTW, congratuations on your new machine.

-- 
Mike Howard <mike@clove.com>

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 22+ messages in thread
[parent not found: <349128C9.5DF646C5@treblig.org>]
[parent not found: <3491223D.C87F9F77@voicenet.com>]
* Re: Seasons Greetings from a new platform :-)
@ 1997-12-12 15:36 Toon Moene
  1997-12-12 11:50 ` Jay.Estabrook
  0 siblings, 1 reply; 22+ messages in thread
From: Toon Moene @ 1997-12-12 15:36 UTC (permalink / raw)


Jay wrote:

> cpu model		: EV6
> cpu variation		: 7
...
> cycle frequency [Hz]	: 400000000
...
> BogoMIPS		: 794.82
...

>  The interesting numbers to note are the BogoMIPs (800)
>  and MHz (400)... :-) :-)

Hmmm, the numbers EV*6* and *7* seem also pretty interesting to me,  
not to mention a number that I didn't see in your post, namely its  
*price* :-(

Cheers,
Toon.

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: Seasons Greetings from a new platform :-)
@ 1997-12-12 12:06 Dave Gilbert
  0 siblings, 0 replies; 22+ messages in thread
From: Dave Gilbert @ 1997-12-12 12:06 UTC (permalink / raw)


Uncle George wrote:
> 
> why would bogo migs be time 2 clock speed. doesn't the 21164 issue 4
> instructions at a time, and my bogomips would be 4 * clock ? k pasa?

Remember that Bogomips are bogus; any direct comparison between BOGOmips
is only valid on the same architecture. And the BOGOmips/clock ratio is
different for each architecture and won't be directly related to the
number of instructions it can run at once; mainly because there isn't
anything useful in the BOGOmips loops to execute.

Dave

-- 
---------------------------------------------------- Man can not live  -
 David Alan Gilbert - gro.gilbert @ treblig.org ---- by bread alone. He 
---------------------------------------------------- needs chocolate.  -

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: Seasons Greetings from a new platform :-)
@ 1997-12-12 11:55 A.Arnold
  0 siblings, 0 replies; 22+ messages in thread
From: A.Arnold @ 1997-12-12 11:55 UTC (permalink / raw)


>
>The interesting numbers to note are the BogoMIPs (800) and MHz (400)... :-)
:-)
>
>--Jay++

I see the same on my K6 machine: 200MHz and roughly 400 BogoMIPs...Still
wondering how the guys at AMD do this...

Alfred Arnold

-- 
--------------------------------------------------------------------------------
Alfred Arnold                                 Phone: +49 (2461) 61-2434
Zentralinstitut fuer Angewandte Mathematik    Fax  : +49 (2461) 61-6656
Forschungszentrum Juelich                     E-Mail: a.arnold@kfa-juelich.de
D-52425 Juelich, Germany  http://www.kfa-juelich.de/zam/ZAMPeople/arnold.html

"Nur ein geloeschtes Windows ist ein gutes Windows"
--------------------------------------------------------------------------------

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: Seasons Greetings from a new platform :-)
@ 1997-12-12 11:38 Uncle George
  0 siblings, 0 replies; 22+ messages in thread
From: Uncle George @ 1997-12-12 11:38 UTC (permalink / raw)


why would bogo migs be time 2 clock speed. doesn't the 21164 issue 4
instructions at a time, and my bogomips would be 4 * clock ? k pasa?

Dave Gilbert wrote:

> Jay.Estabrook@digital.com wrote:
> >
> > cpu                     : Alpha
> > cpu model               : EV6
> > cpu variation           : 7
> > cpu revision            : 0
>
> Would that be one of the nice new shiny 21264's???
>
> Dave
> --
> ---------------------------------------------------- Man can not live  -
>  David Alan Gilbert - gro.gilbert @ treblig.org ---- by bread alone. He
> ---------------------------------------------------- needs chocolate.  -
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: Seasons Greetings from a new platform :-)
@ 1997-12-12  9:27 Stefan Schroepfer
  0 siblings, 0 replies; 22+ messages in thread
From: Stefan Schroepfer @ 1997-12-12  9:27 UTC (permalink / raw)


Ross A. Knepper wrote:
> 
> Jay.Estabrook@digital.com wrote:
> > The interesting numbers to note are the BogoMIPs (800) and
> > MHz (400)... :-) :-)
> 
> maybe i'm just being dense, but what does it mean for a machine's
> bogomips to be greater than its clock speed?  other than that this
> is obviously a super-spiffy machine :)
> 

It means that it must be a 21264 CPU.

scr@iis.fhg.de

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: Seasons Greetings from a new platform :-)
@ 1997-12-12  9:15 Dave Gilbert
  0 siblings, 0 replies; 22+ messages in thread
From: Dave Gilbert @ 1997-12-12  9:15 UTC (permalink / raw)


Jay.Estabrook@digital.com wrote:
> 
> cpu                     : Alpha
> cpu model               : EV6
> cpu variation           : 7
> cpu revision            : 0

Would that be one of the nice new shiny 21264's???

Dave

-- 
---------------------------------------------------- Man can not live  -
 David Alan Gilbert - gro.gilbert @ treblig.org ---- by bread alone. He 
---------------------------------------------------- needs chocolate.  -

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 22+ messages in thread
* Re: Seasons Greetings from a new platform :-)
@ 1997-12-12  7:38 warp
  0 siblings, 0 replies; 22+ messages in thread
From: warp @ 1997-12-12  7:38 UTC (permalink / raw)


Jay.Estabrook@digital.com wrote:
 
> The interesting numbers to note are the BogoMIPs (800) and MHz (400)... :-) :-)

Can i have one of these babes too?;-)

Regards,
Antoine

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 22+ messages in thread
[parent not found: <3490B5A9.2F1C@agapesystems.com>]
* Re: Seasons Greetings from a new platform :-)
@ 1997-12-12  3:55 Paul Anderson
  0 siblings, 0 replies; 22+ messages in thread
From: Paul Anderson @ 1997-12-12  3:55 UTC (permalink / raw)


Jay.Estabrook@digital.com wrote:
> 
> cpu                     : Alpha
> cpu model               : EV6
> cpu variation           : 7
> cpu revision            : 0
> cpu serial number       :
> system type             : Tsunami
> system variation        : 0
> system revision         : 0
> system serial number    :
> cycle frequency [Hz]    : 400000000
> timer frequency [Hz]    : 1024.00
> page size [bytes]       : 8192
> phys. address bits      : 44
> max. addr. space #      : 255
> BogoMIPS                : 794.82
> kernel unaligned acc    : 6 (pc=fffffc00003ef798,va=fffffc00001fc4e5)
> user unaligned acc      : 0 (pc=0,va=0)
> 
> The interesting numbers to note are the BogoMIPs (800) and MHz (400)... :-) :-)
> 
> --Jay++

Nothing like the kid on the block whose dad gives him the best toy.  As
I wash the drool from my face and clear away the green gills of envy, I
wish you all the fun you can handle on the new platform. :-)

Paul Anderson

-- 
"Good morning, doctors.  I have taken the liberty of removing
Windows 95 from my hard drive."

Arthur C Clarke, author of 2001:A Space Odyssey, on the first words
he would have liked HAL, his fictional computer, to speak
_________________________________________________________

Agape Information Systems
http://www.agapesystems.com

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 22+ messages in thread
[parent not found: <199712112254.RAA12058@linux03.amt.tay1.dec.com>]
* Seasons Greetings from a new platform :-)
@ 1997-12-11 12:54 Jay.Estabrook
  0 siblings, 0 replies; 22+ messages in thread
From: Jay.Estabrook @ 1997-12-11 12:54 UTC (permalink / raw)


cpu			: Alpha
cpu model		: EV6
cpu variation		: 7
cpu revision		: 0
cpu serial number	: 
system type		: Tsunami
system variation	: 0
system revision		: 0
system serial number	: 
cycle frequency [Hz]	: 400000000
timer frequency [Hz]	: 1024.00
page size [bytes]	: 8192
phys. address bits	: 44
max. addr. space #	: 255
BogoMIPS		: 794.82
kernel unaligned acc	: 6 (pc=fffffc00003ef798,va=fffffc00001fc4e5)
user unaligned acc	: 0 (pc=0,va=0)

The interesting numbers to note are the BogoMIPs (800) and MHz (400)... :-) :-)

--Jay++

-------------------------------------------------------------------------------
  American Non Sequitur Society: we don't make sense, but we do like pizza...

Jay A Estabrook                         Alpha Migration Tools - LINUX Project
Digital Equipment Corp.                 (978) 506-4202 or (DTN) 226-4202
151 Taylor Street - TAY1-2              enet: Jay.Estabrook@digital.com
Littleton, MA 01460-1407
-------------------------------------------------------------------------------

-- 
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~1997-12-16 15:39 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <3496A0A3.31D6AF8D@cogency.co.uk>
1997-12-16  8:32 ` Seasons Greetings from a new platform :-) Jay.Estabrook
1997-12-16 15:39 David Alan Gilbert
  -- strict thread matches above, loose matches on Subject: below --
1997-12-16 14:40 Przemek Klosowski
     [not found] <199712151341.IAA18985@clove.com>
1997-12-15 22:33 ` Tom Linden
1997-12-15 13:41 Mike Howard
     [not found] <349128C9.5DF646C5@treblig.org>
1997-12-12  9:17 ` Jay.Estabrook
1997-12-13  4:38 ` George
     [not found] <3491223D.C87F9F77@voicenet.com>
1997-12-12 19:50 ` Richard Henderson
1997-12-12 15:36 Toon Moene
1997-12-12 11:50 ` Jay.Estabrook
1997-12-12 12:06 Dave Gilbert
1997-12-12 11:55 A.Arnold
1997-12-12 11:38 Uncle George
1997-12-12  9:27 Stefan Schroepfer
1997-12-12  9:15 Dave Gilbert
1997-12-12  7:38 warp
     [not found] <3490B5A9.2F1C@agapesystems.com>
1997-12-12  6:07 ` Ross A. Knepper
1997-12-12  3:55 Paul Anderson
     [not found] <199712112254.RAA12058@linux03.amt.tay1.dec.com>
1997-12-11 22:06 ` Chris Price
1997-12-12  2:10 ` Christopher F. Miller
1997-12-13  1:50 ` Jakob 'Sparky' Kaivo - MCP
1997-12-11 12:54 Jay.Estabrook

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox