Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: performance of 21164-300 vs P6-200
       [not found] <199606101248.VAA21609@atlas.rc.m-kagaku.co.jp>
@ 1996-06-11 13:58 ` Jim Nance
  0 siblings, 0 replies; 3+ messages in thread
From: Jim Nance @ 1996-06-11 13:58 UTC (permalink / raw)


> I have today tested a DEC Alpha 21164-300/2 MB cache/128 MB memory.
> It was running Linux from the Redhat AXP 3.0.3 distribution. I would
> really like to get such a machine, BUT:

Dr. Paehler,
    I will be sending you some executables privatly, but I wanted to make
some comments to the list publicly.

1) All of your programs run when compiled under Digital Unix 3.2D using the
   DECC compiler.  If I try to compile it with gcc 2.7.1 under Digital Unix,
   the program seems to run forever if I use optimization.  If I compile
   with -g, it does work.  This certainly looks like a compiler bug.
   Perhaps you could post this program to the list so that others could take
   a look at it.

2) Your program makes extensive use of float data types.  I have found
   that RISC processors handle floats poorly compared to doubles.  This
   was certainly a supprise to me the first time I noticed it, and its
   certainly not what I was taught in school.   By compiling your programs
   with cc -Dfloat=double I was able to significantly improve their
   performance.  The only case where performance went down appears to be
   cases where you are limited by memory bandwidth.  I did not get a chance
   to run these programs on the RS6000, but judging from prior experience,
   they could run up to 3X faster if you use doubles.

   Jim

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

* Re: performance of 21164-300 vs P6-200
@ 1996-06-11 15:07 David Mosberger-Tang
  0 siblings, 0 replies; 3+ messages in thread
From: David Mosberger-Tang @ 1996-06-11 15:07 UTC (permalink / raw)


>>>>> On Tue, 11 Jun 1996 09:58:30 -0400 (EDT), Jim Nance <Jim_Nance@avanticorp.com> said:

  Jim> 2) Your program makes extensive use of float data types.  I
  Jim> have found that RISC processors handle floats poorly compared
  Jim> to doubles.  This was certainly a supprise to me the first time
  Jim> I noticed it, and its certainly not what I was taught in
  Jim> school.

Is this because the program uses a lot of libm calls so that it ends
up converting between float and double all the time?  The float
operations themselves certainly are _not_ slower on the Alpha: all fp
operations have a latency of 4 cycles on the 21164 except for the
divider which has a data-dependent latency in the range of 15..31
cycles for single-precision and 22..60 cycles for double-precision.

If the problem is really due to extraneous conversions, it might be
worthwhile to try the libm that comes with glibc---it has *f variants
of all the libm functions.  Those variants operate on single-precision
floats only.  As long as an ANSI C compiler is used, this should give
performance at least as good as with double.  E.g., to compute a
single precision since, you'd call sinf() instead of sin().

	--david

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

* Re: performance of 21164-300 vs P6-200
@ 1996-06-12 20:21 Bill Broadley
  0 siblings, 0 replies; 3+ messages in thread
From: Bill Broadley @ 1996-06-12 20:21 UTC (permalink / raw)


From paehler@atlas.rc.m-kagaku.co.jp  Wed Jun 12 06:58:12 1996

>I am not quite so sure - I must admit though I'm most familiar with
>the Intel assembler right now (least anyone care for some Univac 1106
>or PDP/11 assembler code :-) - I never made it to the VAX assembler -
>a while ago I downloaded a DEC note on AXP instruction scheduling and
>recall one example (if I remember it right) where a gratuitous NOP
>thrown in somewhere was supposed to do wonders.

The 21164 has 4 pipelines (2 int, 2 fp), all 4 stall if there
is anything unresolved, i.e. waiting on cache, ram.  The 21164 has
3 kinds of noops to help the static scheduling of instructions
so that you stall all 4 pipelines less.

>I also found that the P6 is a lot less sensitive to gcc's follies
>than the P5 - if you look at gcc Intel assembler code produced
>from 'naive' high level language code, it makes you want to have
>a post-processor doing instruction scheduling. 

Yes the p6 is pretty good at making good use of any inherent parallism
in the code via out of order execution, non-blocking cache/ram, register
renaming to help with the register issue etc.

>Now out-of-order
>execution, register renaming and similar things on modern CPUs may
>take care of that to some extent

The 21164 doesn't have any of these.  Question is do other cpu's
that do, manage a better job of finding parallism in the code with silicon
in 5-10 ns, then a good compiler with the 21164.  Granted one is dynamic 
and the later is static.

> (admittedly the x86 is horrendously
>short on registers - but I think it was designed when stacks were
>the latest rage - and the 'enter' and 'leave' instructions point in
>the same direction - trying to assist high-level languages).

The 8087 was designed with a stack implementation, which was reasonable
at the time, but there was a bug in it's implementation which keeps people
from efficiently using it.  I forget the exact details, but there is a good
chapter on it in Hennesy and Pattersons Qualitative Approach to Architecture
volume 2 (or something pretty close.)  Basically 8087 was broke, and everything
since then has been compatible.  I believe it's something along the lines
of not being able to tell if the stack is full.

Probably the main reason why such an aggressive chip as the p6 gets about
1/2 the fpu of the 21164's, pa8k, mips 10k's, ultrasparcs.

-- 
Bill Broadley           Broadley@math.ucdavis.edu           UCD Math Sys-Admin
Linux is great.         http://ucdmath.ucdavis.edu/~broadley            PGP-ok

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

end of thread, other threads:[~1996-06-12 20:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-11 15:07 performance of 21164-300 vs P6-200 David Mosberger-Tang
  -- strict thread matches above, loose matches on Subject: below --
1996-06-12 20:21 Bill Broadley
     [not found] <199606101248.VAA21609@atlas.rc.m-kagaku.co.jp>
1996-06-11 13:58 ` Jim Nance

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