Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* why is cc so slow on the Alpha?
@ 1993-07-10  6:30 Mark Hahn
  1993-07-10 17:11 ` Paul Repacholi
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Mark Hahn @ 1993-07-10  6:30 UTC (permalink / raw)


We are lucky enough to have an HP 735 and an alpha 3400.  It's pretty hard
not to notice, though, that compilation on the alpha is vastly slower.
It seems to spend most of the time in 'as1'.  Is there a reason for this?

regards, mark hahn.
--
this space intentionally left non-blank.	hahn@neurocog.lrdc.pitt.edu


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

* Re: why is cc so slow on the Alpha?
  1993-07-10  6:30 why is cc so slow on the Alpha? Mark Hahn
@ 1993-07-10 17:11 ` Paul Repacholi
  1993-07-10 18:37   ` Bill Broadley
  1993-07-10 17:20 ` Ron Natalie
  1993-07-11 17:24 ` Donald Lindsay
  2 siblings, 1 reply; 9+ messages in thread
From: Paul Repacholi @ 1993-07-10 17:11 UTC (permalink / raw)


In article <16252@blue.cis.pitt.edu>, hahn@neurocog.lrdc.pitt.edu (Mark Hahn) writes:
> We are lucky enough to have an HP 735 and an alpha 3400.  It's pretty hard
> not to notice, though, that compilation on the alpha is vastly slower.
> It seems to spend most of the time in 'as1'.  Is there a reason for this?

A combination of early days = not optimized for speed and lots of sanity
checking and debugging traces would be a guess. It may be trying very
hard to optimise the instruction issueing as well. What switches do you
use?

~Paul



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

* Re: why is cc so slow on the Alpha?
  1993-07-10  6:30 why is cc so slow on the Alpha? Mark Hahn
  1993-07-10 17:11 ` Paul Repacholi
@ 1993-07-10 17:20 ` Ron Natalie
  1993-07-11 19:08   ` Mark Hahn
  1993-07-11 17:24 ` Donald Lindsay
  2 siblings, 1 reply; 9+ messages in thread
From: Ron Natalie @ 1993-07-10 17:20 UTC (permalink / raw)


I hadn't noticed the speed difference (my Alpha actually appears to be
a bit faster on links than the HP).  I would suspect that the DISK DRIVE
performance plays a bigger role than the CPU/Compiler efficiency.

-Ron


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

* Re: why is cc so slow on the Alpha?
  1993-07-10 17:11 ` Paul Repacholi
@ 1993-07-10 18:37   ` Bill Broadley
  0 siblings, 0 replies; 9+ messages in thread
From: Bill Broadley @ 1993-07-10 18:37 UTC (permalink / raw)


Paul Repacholi (zrepachol@cc.curtin.edu.au) wrote:
> In article <16252@blue.cis.pitt.edu>, hahn@neurocog.lrdc.pitt.edu (Mark Hahn) writes:
> > We are lucky enough to have an HP 735 and an alpha 3400.  It's pretty hard
> > not to notice, though, that compilation on the alpha is vastly slower.
> > It seems to spend most of the time in 'as1'.  Is there a reason for this?

> A combination of early days = not optimized for speed and lots of sanity
> checking and debugging traces would be a guess. It may be trying very
> hard to optimise the instruction issueing as well. What switches do you
> use?


Even cc -g is pretty slow, and It doesn't seem that the compiler is producing
particularly fast code anyways..

--
Bill					1st>	Broadley@neurocog.lrdc.pitt.edu
Broadley@schneider3.lrdc.pitt.edu <2nd 	3rd> 	             Broadley+@pitt.edu
Linux is great.         Bike to live, live to bike.                      PGP-ok



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

* Re: why is cc so slow on the Alpha?
  1993-07-10  6:30 why is cc so slow on the Alpha? Mark Hahn
  1993-07-10 17:11 ` Paul Repacholi
  1993-07-10 17:20 ` Ron Natalie
@ 1993-07-11 17:24 ` Donald Lindsay
  2 siblings, 0 replies; 9+ messages in thread
From: Donald Lindsay @ 1993-07-11 17:24 UTC (permalink / raw)



hahn@neurocog.lrdc.pitt.edu (Mark Hahn) writes:
>We are lucky enough to have an HP 735 and an alpha 3400.  It's pretty hard
>not to notice, though, that compilation on the alpha is vastly slower.
>It seems to spend most of the time in 'as1'.  Is there a reason for this?

I've compiled the same code on a 486-33 with SCSI, a DECstation
5000/200, and an Alpha. The Alpha compile was waaaaay faster than
either of the other two.  (Ditto for the resulting code.) Perhaps
your Alpha differs from mine, but personally I'm very pleased.
-- 
Don		D.C.Lindsay	Carnegie Mellon Computer Science


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

* Re: why is cc so slow on the Alpha?
  1993-07-10 17:20 ` Ron Natalie
@ 1993-07-11 19:08   ` Mark Hahn
  1993-07-11 20:00     ` Ron Natalie
  1993-07-16  2:24     ` Greg Pavlov
  0 siblings, 2 replies; 9+ messages in thread
From: Mark Hahn @ 1993-07-11 19:08 UTC (permalink / raw)



Ron Natalie (ron@topaz.bds.com) wrote:
> I hadn't noticed the speed difference (my Alpha actually appears to be
> a bit faster on links than the HP).  I would suspect that the DISK DRIVE
> performance plays a bigger role than the CPU/Compiler efficiency.

Bullshit.  A well-designed compiler isn't io-limited.
Further, Bonnie says that the Alpha is 20% or so faster than the HP.
Further yet, compiles take long enough that you can actually type 'ps'
LOTS of times and verify that it's in as1 and compute-bound.  Could it
be we got a bogus version?

Our configuration is 2 1G scsi disks (rz42 or something).  This is
an Alpha 3400, btw, with 96M.

regards, mark hahn.
--
this space intentionally left non-blank.	hahn@neurocog.lrdc.pitt.edu


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

* Re: why is cc so slow on the Alpha?
  1993-07-11 19:08   ` Mark Hahn
@ 1993-07-11 20:00     ` Ron Natalie
  1993-07-12 12:56       ` Kevin McElearney
  1993-07-16  2:24     ` Greg Pavlov
  1 sibling, 1 reply; 9+ messages in thread
From: Ron Natalie @ 1993-07-11 20:00 UTC (permalink / raw)


>  Bullshit.  A well-designed compiler isn't io-limited.

Thank you for your kind words.  Most of the UNIX compilers I've seen
and the HP and ALPHA are *NOT UNIQUE* in this, communicate between the
passes (cpp, possibly two compile passes, an optimization pass, the
assembler) with files in /tmp.  Linking, while not strictly compilation
but many people assume it is, is almost *ALL* I/O...it's primary function
is searching library symbols for matches to the undefined symbols already
present.  The relocation is very efficient in itself.

The problem with many of these fast machines is that they can compile faster
than they can read and write the disks.  They are I/O limitted....If you have
a doubt, try sticking /tmp on a substantially slower or faster disk and see
what that does to the elapsed time.

_Ron


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

* Re: why is cc so slow on the Alpha?
  1993-07-11 20:00     ` Ron Natalie
@ 1993-07-12 12:56       ` Kevin McElearney
  0 siblings, 0 replies; 9+ messages in thread
From: Kevin McElearney @ 1993-07-12 12:56 UTC (permalink / raw)


In article <21prg1INNgd1@topaz.bds.com>, ron@topaz.bds.com (Ron Natalie) writes:
|> 
|> The problem with many of these fast machines is that they can compile faster
|> than they can read and write the disks.  They are I/O limitted....If you have
|> a doubt, try sticking /tmp on a substantially slower or faster disk and see
|> what that does to the elapsed time.

I havn't tried this on the Alpha yet, but::::

Why don't you bypass temporary files by using gcc with -pipe.  You also
need to use the GNU assembler (gas) because the OSF version has problems with
pipes.

gcc(1):

  -pipe
       Use pipes rather than temporary files for  communication  between  the
       various  stages  of  compilation.   This fails to work on some systems
       where the assembler cannot read from a pipe; but the GNU assembler has
       no trouble.

-- 
Kevin McElearney
                                        | Is there really such a thing as
MIT Lincoln Laboratory                  | gravity, or does the earth just
244 Wood Street                         | suck?
Lexington, MA  02173-9108


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

* Re: why is cc so slow on the Alpha?
  1993-07-11 19:08   ` Mark Hahn
  1993-07-11 20:00     ` Ron Natalie
@ 1993-07-16  2:24     ` Greg Pavlov
  1 sibling, 0 replies; 9+ messages in thread
From: Greg Pavlov @ 1993-07-16  2:24 UTC (permalink / raw)


In article <16302@blue.cis.pitt.edu>, hahn@neurocog.lrdc.pitt.edu (Mark Hahn) writes:
> 
> Ron Natalie (ron@topaz.bds.com) wrote:
> > I hadn't noticed the speed difference (my Alpha actually appears to be
> > a bit faster on links than the HP).  I would suspect that the DISK DRIVE
> > performance plays a bigger role than the CPU/Compiler efficiency.
> 
> Bullshit.  A well-designed compiler isn't io-limited.
> Further, Bonnie says that the Alpha is 20% or so faster than the HP.
> Further yet, compiles take long enough that you can actually type 'ps'
> LOTS of times and verify that it's in as1 and compute-bound.  Could it
> be we got a bogus version?
> 
  Maybe you have a bogus version; "bullshit" version ??  Anyway, you may
  want to run iostat while you're running ps.  I/o is definitely a factor.
  Try putting some of the code, or /tmp, or libraries, or etc... on an NFS'd
  partition and watch the elapsed time on your "compute-bound" process jump.
  Or just put them on a slow disk...



   greg pavlov
   pavlov@fstrf.org


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

end of thread, other threads:[~1993-07-16  2:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-07-10  6:30 why is cc so slow on the Alpha? Mark Hahn
1993-07-10 17:11 ` Paul Repacholi
1993-07-10 18:37   ` Bill Broadley
1993-07-10 17:20 ` Ron Natalie
1993-07-11 19:08   ` Mark Hahn
1993-07-11 20:00     ` Ron Natalie
1993-07-12 12:56       ` Kevin McElearney
1993-07-16  2:24     ` Greg Pavlov
1993-07-11 17:24 ` Donald Lindsay

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