* Re[2]: Lus paa tjaerekost (or molasses in january)
[not found] <Pine.LNX.3.91.961111175825.20763B-100000@linux.cs.Helsinki.FI>
@ 1996-11-11 16:21 ` Mark Hamstra
1996-11-11 21:21 ` Richard Henderson
1 sibling, 0 replies; 2+ messages in thread
From: Mark Hamstra @ 1996-11-11 16:21 UTC (permalink / raw)
Linus Torvalds <torvalds@cs.Helsinki.FI> wrote:
>
>
> 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
It's only slight consolation, but GCC isn't the only slow compiler on Alpha:
Microsoft Visual C++ 4.0 is pathetically slow on my Alpha when it's suffering
under NT.
Mark Hamstra
Bentley Systems, Inc.
--
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] 2+ 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 16:21 ` Re[2]: Lus paa tjaerekost (or molasses in january) Mark Hamstra
@ 1996-11-11 21:21 ` Richard Henderson
1 sibling, 0 replies; 2+ 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] 2+ messages in thread