Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Re: Lus paa tjaerekost (or molasses in january)
       [not found] <201611111051.DAA02602@asgard.dartmouth.edu>
@ 1996-11-11 16:06 ` Linus Torvalds
  1996-11-11 17:44 ` Jim Nance
  1 sibling, 0 replies; 4+ messages in thread
From: Linus Torvalds @ 1996-11-11 16:06 UTC (permalink / raw)


On Fri, 11 Nov 116, Johan Grape wrote:
> 
> System: Aspen durango 433MHz (PC164) 128Megs RAM
>  	NCR Fast SCSI-2
> 	Quantum XP.. 2gig
>  
> building a 2.0.18 kernel w/ basic networking and
> SCSI driver and most features as modules.
> 
>  time make vmlinux
>  292.92user 28.65system 5:52.94elapsed 

That's a very reasonable time for an alpha kernel compile..

> This is really disappointing.  And the time does *not*
> improve with second make on an idle system (most
> files cached).

Indeed. It should be around 90% CPU time to compile a kernel on any machine
with reasonable amounts of memory. 

> AFAIK this compares to a 200MHz Cyrix or Pentium.
> 
> Is this typical, or do I have some problem with my setup?

It's typical, and it's not a problem on you end.

The reason it looks comparable to a 200MHz Pentium is mainly because you
compare different things. The compiler may be similarly named, but compiling
for x86 and compiling for alpha are pretty different things. Gcc is for some
reason much slower on the alpha than on an x86. My personal guess is that
there is either some instruction scheduling issue or some O(exp(n)) routine
wrt number of registers or similar. 

And yes, I think it's sad too, as compiling is what I do most. The alpha 
does make it up in other areas, but it's still sad..

		Linus

--
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] 4+ messages in thread

* Re: Lus paa tjaerekost (or molasses in january)
       [not found] <201611111051.DAA02602@asgard.dartmouth.edu>
  1996-11-11 16:06 ` Linus Torvalds
@ 1996-11-11 17:44 ` Jim Nance
  1 sibling, 0 replies; 4+ messages in thread
From: Jim Nance @ 1996-11-11 17:44 UTC (permalink / raw)


> building a 2.0.18 kernel w/ basic networking and
> SCSI driver and most features as modules.
> 
>  time make vmlinux
>  292.92user 28.65system 5:52.94elapsed 
> 
> This is really disappointing.  And the time does *not*
> improve with second make on an idle system (most
> files cached).
> 
> AFAIK this compares to a 200MHz Cyrix or Pentium.
> 
> Is this typical, or do I have some problem with my setup?

Yes it is typical.  Gcc is quite slow when producing alpha code.  I don't
know if this is because it is harder to generate axp instructions, or 
if the compiler is not well optimized on the axp platform.

Jim

--
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] 4+ messages in thread

* Re: Lus paa tjaerekost (or molasses in january)
       [not found] <Pine.LNX.3.91.961111175825.20763B-100000@linux.cs.Helsinki.FI>
@ 1996-11-11 21:21 ` Richard Henderson
  0 siblings, 0 replies; 4+ messages in thread
From: Richard Henderson @ 1996-11-11 21:21 UTC (permalink / raw)


> The reason it looks comparable to a 200MHz Pentium is mainly because you
> compare different things. The compiler may be similarly named, but compiling
> for x86 and compiling for alpha are pretty different things. Gcc is for some
> reason much slower on the alpha than on an x86. My personal guess is that
> there is either some instruction scheduling issue or some O(exp(n)) routine
> wrt number of registers or similar. 

There are two killers that I know of:

  -- The bits that try to convert to conditional moves has a bad
  exponential worst case, that isn't really that uncommon in largish
  functions.  Some of you may remember an example posted here some
  months ago (extracted from the X server I believe) that took > 20
  minutes to compile.

  -- Quite a bit of effort goes into figuring out how to load 
  constants > |32k|.

Aside from that, I'm pretty sure instruction scheduling is an O(n**2)
algorithm; I've not looked at the register allocation bits.

Anyway, none of these is an issue with the standard i386 compiler.

If you use the pentium gcc, you'll encounter the conditional move
problem and the instruction scheduling problem (though not as bad).

> And yes, I think it's sad too, as compiling is what I do most. The alpha 
> does make it up in other areas, but it's still sad..

Sad, but I'd have to say somewhat unavoidable for highly optimized
code, as so many of the optimizations require exhaustive searches
for pattern matches.  It would be interesting to see what could be
changed to make -O quicker, and let -O2 continue to chug along....

r~

--
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] 4+ messages in thread

* Lus paa tjaerekost (or molasses in january)
@ 2016-11-11 10:51 Johan Grape
  0 siblings, 0 replies; 4+ messages in thread
From: Johan Grape @ 2016-11-11 10:51 UTC (permalink / raw)


System: Aspen durango 433MHz (PC164) 128Megs RAM
 	NCR Fast SCSI-2
	Quantum XP.. 2gig
 
building a 2.0.18 kernel w/ basic networking and
SCSI driver and most features as modules.

 time make vmlinux
 292.92user 28.65system 5:52.94elapsed 

This is really disappointing.  And the time does *not*
improve with second make on an idle system (most
files cached).

AFAIK this compares to a 200MHz Cyrix or Pentium.

Is this typical, or do I have some problem with my setup?

Johan

-- 
Johan A. Grape, Ph.D.	      Office: (603) 646-3763
Research Associate	      http://seedless.dartmouth.edu/~grape
Thayer School of Engineering       
Dartmouth College		"The more things change,  
Hanover, NH 03755	           the more they stay insane"

--
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] 4+ messages in thread

end of thread, other threads:[~2016-11-11 10:51 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-11 10:51 Lus paa tjaerekost (or molasses in january) Johan Grape
     [not found] <Pine.LNX.3.91.961111175825.20763B-100000@linux.cs.Helsinki.FI>
1996-11-11 21:21 ` Richard Henderson
     [not found] <201611111051.DAA02602@asgard.dartmouth.edu>
1996-11-11 16:06 ` Linus Torvalds
1996-11-11 17:44 ` Jim Nance

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