* Slow machine or slow compiler?
@ 2004-12-07 22:09 Tobias Klausmann
2004-12-07 22:16 ` Matt Simis
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Tobias Klausmann @ 2004-12-07 22:09 UTC (permalink / raw)
Hi!
I recently got an original DEC^Wdigital Personal Workstation
500au[0]. The machine's nice enough, including startup of the
(currently installed) Debian Sarge. Everything is peachy.
Except... could it be that gcc on alpha is slow like a snail?
While everything else "feels" faster than the Intel PII/400 I
still have, a Kernel compile (for example) takes a hair less than
an hour - the PII is a tad bit faster on that. I already replaced
the disk subsystem because I thought that maybe the age-old disks
in there would be too slow (or maybe the controller) - to no
avail.
As I have the machine primarly for portability tests, a too slow
gcc really hurts my intended use. So: is it just me or is gcc
simply slow on alpha? Or maybe I missed a handbrake I should
release?
TIA,
Tobias
[0] One 500MHz 21264, 1GB RAM, IIRC.
--
export DISPLAY=vt100
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Slow machine or slow compiler?
2004-12-07 22:09 Slow machine or slow compiler? Tobias Klausmann
@ 2004-12-07 22:16 ` Matt Simis
2004-12-07 22:22 ` Tobias Klausmann
2005-01-03 18:48 ` exter_c
2005-01-03 18:49 ` exter_c
2 siblings, 1 reply; 14+ messages in thread
From: Matt Simis @ 2004-12-07 22:16 UTC (permalink / raw)
"Tobias Klausmann" <klausman-un1204@schwarzvogel.de> wrote in message
news:slrncrcaha.2st.klausman-un1204@eric.schwarzvogel.de...
>
> TIA,
> Tobias
>
> [0] One 500MHz 21264, 1GB RAM, IIRC.
>
> --
> export DISPLAY=vt100
Just a btw, not if thats an unrelated sig you have or your system, but the
500au is a 21164 system, not a 21264. My old "Ruffian" 21164 600MHz compile
the kernel in about 35min.
Matt
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Slow machine or slow compiler?
2004-12-07 22:16 ` Matt Simis
@ 2004-12-07 22:22 ` Tobias Klausmann
2004-12-07 23:23 ` Mathieu Chouquet-Stringer
2004-12-07 23:30 ` Matt Simis
0 siblings, 2 replies; 14+ messages in thread
From: Tobias Klausmann @ 2004-12-07 22:22 UTC (permalink / raw)
Matt Simis <mattsimis@hotmail.com> wrote:
>> [0] One 500MHz 21264, 1GB RAM, IIRC.
>>
>> --
>> export DISPLAY=vt100
>
>
> Just a btw, not if thats an unrelated sig you have or your system, but the
> 500au is a 21164 system, not a 21264. My old "Ruffian" 21164 600MHz compile
> the kernel in about 35min.
Not unrelated, and I wasn't quite sure. Yes, it's a 21164, I just
checked.
Here's my /proc/cpuinfo:
cpu : Alpha
cpu model : EV56
cpu variation : 7
cpu revision : 0
cpu serial number :
system type : Miata
system variation : 0
system revision : 0
system serial number :
cycle frequency [Hz] : 499894427 est.
timer frequency [Hz] : 1024.00
page size [bytes] : 8192
phys. address bits : 40
max. addr. space # : 127
BogoMIPS : 992.88
kernel unaligned acc : 0 (pc=0,va=0)
user unaligned acc : 0 (pc=0,va=0)
platform string : Digital Personal WorkStation 500au
cpus detected : 1
L1 Icache : 8K, 1-way, 32b line
L1 Dcache : 8K, 1-way, 32b line
L2 cache : 96K, 3-way, 64b line
L3 cache : 2048K, 1-way, 64b line
Are those 35 minutes for 2.6 or for 2.4? (Mine was 2.6.9 and
2.6.10-rc2). And what version of gcc? (gcc version 3.3.4 (Debian
1:3.3.4-13) here)
Regards,
Tobias
--
export DISPLAY=vt100
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Slow machine or slow compiler?
2004-12-07 22:22 ` Tobias Klausmann
@ 2004-12-07 23:23 ` Mathieu Chouquet-Stringer
2004-12-07 23:34 ` Matt Simis
2004-12-08 4:14 ` Mathieu Chouquet-Stringer
2004-12-07 23:30 ` Matt Simis
1 sibling, 2 replies; 14+ messages in thread
From: Mathieu Chouquet-Stringer @ 2004-12-07 23:23 UTC (permalink / raw)
Tobias Klausmann <klausman-un1204@schwarzvogel.de> writes:
> Are those 35 minutes for 2.6 or for 2.4? (Mine was 2.6.9 and
> 2.6.10-rc2). And what version of gcc? (gcc version 3.3.4 (Debian
> 1:3.3.4-13) here)
It's probably 2.4. I'm compiling a new version of 2.6 at the moment, I'll
post the numbers (last time I did I think it took more than an hour with
gcc 3.3.2).
Anyhow, gcc is not a good benchmark between different architectures as you
have the CISC vs RISC and the fact gcc for alpha is probably far less
optimized than its i386 counterpart.
--
Mathieu Chouquet-Stringer
"Le disparu, si l'on v�n�re sa m�moire, est plus pr�sent et
plus puissant que le vivant".
-- Antoine de Saint-Exup�ry, Citadelle --
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Slow machine or slow compiler?
2004-12-07 22:22 ` Tobias Klausmann
2004-12-07 23:23 ` Mathieu Chouquet-Stringer
@ 2004-12-07 23:30 ` Matt Simis
2004-12-08 13:08 ` Tobias Klausmann
1 sibling, 1 reply; 14+ messages in thread
From: Matt Simis @ 2004-12-07 23:30 UTC (permalink / raw)
"Tobias Klausmann" <klausman-un1204@schwarzvogel.de> wrote in message
news:slrncrcb8q.2st.klausman-un1204@eric.schwarzvogel.de...
snip
> Are those 35 minutes for 2.6 or for 2.4? (Mine was 2.6.9 and
> 2.6.10-rc2). And what version of gcc? (gcc version 3.3.4 (Debian
> 1:3.3.4-13) here)
>
>
> Regards,
> Tobias
>
TBH, its going back a few months, but I believe that was for 2.6.x, (GCC3.3)
but not a standard compile, just what I needed (standard compiles sometimes
didnt work on my Alpha anyway)... so in fairness prolly not an apples to
apples comparison.
I also put in a 3rd party UDMA controller and a new (at the time)
UltraATA-133 80GB 8MB Cache drive, made a big difference in general
performance.
Matt
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Slow machine or slow compiler?
2004-12-07 23:23 ` Mathieu Chouquet-Stringer
@ 2004-12-07 23:34 ` Matt Simis
2004-12-08 0:07 ` Mathieu Chouquet-Stringer
2004-12-08 10:21 ` Staffan Tjernstrom
2004-12-08 4:14 ` Mathieu Chouquet-Stringer
1 sibling, 2 replies; 14+ messages in thread
From: Matt Simis @ 2004-12-07 23:34 UTC (permalink / raw)
"Mathieu Chouquet-Stringer" <mchouque_@_online_._fr> wrote in message
news:m3sm6helqo.fsf@mcs.bigip.mine.nu...
snip
> Anyhow, gcc is not a good benchmark between different architectures as you
> have the CISC vs RISC and the fact gcc for alpha is probably far less
> optimized than its i386 counterpart.
> --
Ive seen people saying that about Alpha gcc before and no doubt its true..
but since there isnt really an alternative to gcc, it does make it a
realworld benchmark doesnt it? Mystery untapped performance may as well not
be there as no one can unlock it with gcc..
Matt
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Slow machine or slow compiler?
2004-12-07 23:34 ` Matt Simis
@ 2004-12-08 0:07 ` Mathieu Chouquet-Stringer
2004-12-08 10:21 ` Staffan Tjernstrom
1 sibling, 0 replies; 14+ messages in thread
From: Mathieu Chouquet-Stringer @ 2004-12-08 0:07 UTC (permalink / raw)
"Matt Simis" <mattsimis@hotmail.com> writes:
> Ive seen people saying that about Alpha gcc before and no doubt its true..
> but since there isnt really an alternative to gcc, it does make it a
> realworld benchmark doesnt it?
If you like comparing apples to oranges, yeah sure! ;-)
> Mystery untapped performance may as well not be there as no one can
> unlock it with gcc..
So true. I remember benching gzip and bzip2 compiled with gcc and ccc and
for some of the files, ccc compiled binaries were almost 50% faster.
--
Mathieu Chouquet-Stringer
"Le disparu, si l'on v�n�re sa m�moire, est plus pr�sent et
plus puissant que le vivant".
-- Antoine de Saint-Exup�ry, Citadelle --
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Slow machine or slow compiler?
2004-12-07 23:23 ` Mathieu Chouquet-Stringer
2004-12-07 23:34 ` Matt Simis
@ 2004-12-08 4:14 ` Mathieu Chouquet-Stringer
1 sibling, 0 replies; 14+ messages in thread
From: Mathieu Chouquet-Stringer @ 2004-12-08 4:14 UTC (permalink / raw)
Mathieu Chouquet-Stringer <mchouque_@_online_._fr> writes:
> It's probably 2.4. I'm compiling a new version of 2.6 at the moment, I'll
> post the numbers (last time I did I think it took more than an hour with
> gcc 3.3.2).
cpu : Alpha
cpu model : EV56
cpu variation : 0
cpu revision : 0
cpu serial number : Linux_is_Great!
system type : EB164
system variation : LX164
system revision : 0
system serial number : MILO-2.2-18
cycle frequency [Hz] : 533333333
timer frequency [Hz] : 1024.00
page size [bytes] : 8192
phys. address bits : 40
max. addr. space # : 127
BogoMIPS : 1059.80
kernel unaligned acc : 1660 (pc=fffffc000031d7a0,va=fffffffc0015a497)
user unaligned acc : 0 (pc=0,va=0)
platform string : N/A
cpus detected : 0
L1 Icache : 8K, 1-way, 32b line
L1 Dcache : 8K, 1-way, 32b line
L2 cache : 96K, 3-way, 64b line
L3 cache : 1024K, 1-way, 64b line
Compile time for linux 2.6.10-rc3 (custom config):
make 4996.20s user 306.25s system 99% cpu 1:28:42.12 total
--
Mathieu Chouquet-Stringer
"Le disparu, si l'on v�n�re sa m�moire, est plus pr�sent et
plus puissant que le vivant".
-- Antoine de Saint-Exup�ry, Citadelle --
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Slow machine or slow compiler?
2004-12-07 23:34 ` Matt Simis
2004-12-08 0:07 ` Mathieu Chouquet-Stringer
@ 2004-12-08 10:21 ` Staffan Tjernstrom
2004-12-08 11:04 ` Måns Rullgård
1 sibling, 1 reply; 14+ messages in thread
From: Staffan Tjernstrom @ 2004-12-08 10:21 UTC (permalink / raw)
Matt Simis scribbled something like this, on Tue, 07 Dec 2004 23:34:19
+0000:
> "Mathieu Chouquet-Stringer" <mchouque_@_online_._fr> wrote in message
> news:m3sm6helqo.fsf@mcs.bigip.mine.nu...
> snip
>> Anyhow, gcc is not a good benchmark between different architectures as you
>> have the CISC vs RISC and the fact gcc for alpha is probably far less
>> optimized than its i386 counterpart.
>> --
>
> Ive seen people saying that about Alpha gcc before and no doubt its true..
> but since there isnt really an alternative to gcc, it does make it a
> realworld benchmark doesnt it? Mystery untapped performance may as well not
> be there as no one can unlock it with gcc..
>
>
>
> Matt
There is an alternative (I'm not in a position to be able to say if it's
faster or slower compile-time wise however).
HP has Compaq's AXP-optimized c, c++ & fortran compilers available for
download. By dint of some careful tinkering I have these installed for
preference to the g* compilers, especially since the AXP architecture is
very very very very very very very prone to being as slow as a pig if the
compiler doesn't get things like alignment correct out of the box (an
unaligned byte fetch completely breaks the pipelining, on Tru64 this can
cause a 400%+ degredation in execution speeds!).
Have a look at http://h30097.www3.hp.com/linux/compaq_c/index.html
Happy quad-wording!
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Slow machine or slow compiler?
2004-12-08 10:21 ` Staffan Tjernstrom
@ 2004-12-08 11:04 ` Måns Rullgård
2004-12-08 11:43 ` Maurice Janssen
0 siblings, 1 reply; 14+ messages in thread
From: Måns Rullgård @ 2004-12-08 11:04 UTC (permalink / raw)
Staffan Tjernstrom <thisisafakeaddress@staffan.tjernstrom.name> writes:
>> Ive seen people saying that about Alpha gcc before and no doubt its true..
>> but since there isnt really an alternative to gcc, it does make it a
>> realworld benchmark doesnt it? Mystery untapped performance may as well not
>> be there as no one can unlock it with gcc..
>>
> There is an alternative (I'm not in a position to be able to say if it's
> faster or slower compile-time wise however).
>
> HP has Compaq's AXP-optimized c, c++ & fortran compilers available for
> download. By dint of some careful tinkering I have these installed for
> preference to the g* compilers, especially since the AXP architecture is
> very very very very very very very prone to being as slow as a pig if the
> compiler doesn't get things like alignment correct out of the box (an
> unaligned byte fetch completely breaks the pipelining, on Tru64 this can
> cause a 400%+ degredation in execution speeds!).
GCC does the right thing with alignment and such things. It just
produces less well optimized code, especially for floating point. For
integer code, the difference between gcc and ccc is rarely more than
10%, whereas for floating point, ccc often produces >30% faster code.
When using ccc, the floating point performance of the Alphas can be
quite impressive, compared to the toys from Intel. I have seen cases
where my 533 MHz pca56 would outperform a 1 GHz pentium3. (Some IBM
Power3 (I didn't have a Power4) units (running AIX) did quite well,
too.)
--
M�ns Rullg�rd
mru@inprovide.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Slow machine or slow compiler?
2004-12-08 11:04 ` Måns Rullgård
@ 2004-12-08 11:43 ` Maurice Janssen
0 siblings, 0 replies; 14+ messages in thread
From: Maurice Janssen @ 2004-12-08 11:43 UTC (permalink / raw)
Mᅵns Rullgᅵrd wrote:
>GCC does the right thing with alignment and such things. It just
>produces less well optimized code, especially for floating point. For
>integer code, the difference between gcc and ccc is rarely more than
>10%, whereas for floating point, ccc often produces >30% faster code.
>When using ccc, the floating point performance of the Alphas can be
>quite impressive, compared to the toys from Intel. I have seen cases
>where my 533 MHz pca56 would outperform a 1 GHz pentium3. (Some IBM
>Power3 (I didn't have a Power4) units (running AIX) did quite well,
>too.)
I've done some calculations on an XP1000 (500 MHz) workstation with GMP
(library with optimised assembly for calculations on long integers and
floating point numbers). The running time on this Alpha was about the
same as on a P4 1.8 GHz. I was quite impressed when I saw those
numbers.
--
Maurice
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Slow machine or slow compiler?
2004-12-07 23:30 ` Matt Simis
@ 2004-12-08 13:08 ` Tobias Klausmann
0 siblings, 0 replies; 14+ messages in thread
From: Tobias Klausmann @ 2004-12-08 13:08 UTC (permalink / raw)
Hi!
First off: thanks for your input, everyone.
I've decided to give Gentoo a go. I figure part of the slowness
is also due to the fact that there is exactly one Alpha binary
release of Debian. I've heard that as far as binary compatability
goes, the different Alpha generations differ more strongly than,
say, the Intel x86 family[0]. Thus, I hope using Gentoo on the
machine will make things a bit snappier.
Additionally, I've found a HowTo that explains how to use ccc to
bootstrap the system[1]. As soon as I find the time (probably
over the evenings of this week), I'll give it a go and report
back.
Happy axp'ing,
Tobias
[0] Can anyone shed a light on this?
[1] http://dev.gentoo.org/~taviso/ccc-install.html
--
export DISPLAY=vt100
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Slow machine or slow compiler?
2004-12-07 22:09 Slow machine or slow compiler? Tobias Klausmann
2004-12-07 22:16 ` Matt Simis
@ 2005-01-03 18:48 ` exter_c
2005-01-03 18:49 ` exter_c
2 siblings, 0 replies; 14+ messages in thread
From: exter_c @ 2005-01-03 18:48 UTC (permalink / raw)
This is a little off topic but its fairly similar to the original post.
When using FreeBSD Alpha with the standard compiler variables the
performance was woefull. After a complete recompile of the entire OS
with EV56 as the processor type the system performance was
significantly faster across the board. That is simply my making sure
the arch and cputype flags where correct.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: Slow machine or slow compiler?
2004-12-07 22:09 Slow machine or slow compiler? Tobias Klausmann
2004-12-07 22:16 ` Matt Simis
2005-01-03 18:48 ` exter_c
@ 2005-01-03 18:49 ` exter_c
2 siblings, 0 replies; 14+ messages in thread
From: exter_c @ 2005-01-03 18:49 UTC (permalink / raw)
This is a little off topic but its fairly similar to the original post.
When using FreeBSD Alpha with the standard compiler variables the
performance was woefull. After a complete recompile of the entire OS
with EV56 as the processor type the system performance was
significantly faster across the board. That is simply my making sure
the arch and cputype flags where correct.
http://forum.lucidnow.com
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2005-01-03 18:49 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-07 22:09 Slow machine or slow compiler? Tobias Klausmann
2004-12-07 22:16 ` Matt Simis
2004-12-07 22:22 ` Tobias Klausmann
2004-12-07 23:23 ` Mathieu Chouquet-Stringer
2004-12-07 23:34 ` Matt Simis
2004-12-08 0:07 ` Mathieu Chouquet-Stringer
2004-12-08 10:21 ` Staffan Tjernstrom
2004-12-08 11:04 ` Måns Rullgård
2004-12-08 11:43 ` Maurice Janssen
2004-12-08 4:14 ` Mathieu Chouquet-Stringer
2004-12-07 23:30 ` Matt Simis
2004-12-08 13:08 ` Tobias Klausmann
2005-01-03 18:48 ` exter_c
2005-01-03 18:49 ` exter_c
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox