From: Martin Ostermann <ost@comnets.rwth-aachen.de>
Subject: Re: Alpha/Intel performance
Date: Sat, 20 Jul 1996 19:44:06 +0200 [thread overview]
Message-ID: <199607201744.TAA19296@fozzy.comnets.rwth-aachen.de> (raw)
>>>>> In article <199607160747.HAA19416@moondance.np.ac.sg>, Robert Allen Barker <rab@np.ac.sg> writes:
>> But why does it take such a long time (about 35 minutes) compiling a
>> kernel on my noname box (21066/233, 256KB L2-cache)? (it's equipped
>> with 64Megs RAM and runs the actual RedHat distribution.)
> For two reasons. 1. Compiling the kernel must be one of the least CPU
> intensive tasks around because of the large number of files, temporary files
> and passes that are required. Disk and memory performance are probably being
> compared much more than the CPUs.
Seems true. On an 150MHz(!) Jensen with 512k L2-cache and an 128 bit
wide main memory path, it just takes around 24 Minutes.
> 2. All the kernel source files, many of
> the temporary files, and much of the code generation is byte oriented and
> the current alpha hardware only supports 32 and 64 bit data types. The alpha
> must use extra instructions to extract, shift, and inset bytes. So in one
> sense byte oriented software is highly optimized for intel.
Even worse, the gcc-2.7.1 package commes with breakes on, as anything
else that has been linked with libc-0.43-1. The reason is that it
doesn't use the alpha specific memcpy routine, because of faulty
Makefiles. It uses an older one, which uses byte accesses (!) for any
size to copy. To make that clear: it uses about 8 times
2*ldq_u/extbl/extbh/ to load a quadword, and
2*ldq_u/insbl/insbh/2*stq_u to write it. This is a total of 48 memory
accesses instead of 2.
Using the optimized routine just with gcc (not as, not ld) gains 1.5
minutes. I expect, that other string library routines
could need some work, to improve overall performance.
>> The native 2.0 kernel on a 488/66 takes approximately the same time,
>> most pentium boxes do this job between 10 minutes and 25 minutes, PPro
>> machines below 6 minutes. If I compare the calculation power e.g. with
>> an (simple) dhrystone-test the axpPCI system beats the intel boxes as
>> well as an SGI with R4600/100. My impression of the performance working
>> with the noname machine is that the old 488/66 is much slower.
Also note,comparing native Linux kernel compilation on two
different architechures is not a benchmark: You actually use two
different compilers (an intel and an alpha code generator) to compile
two different programs (an intel and an alpha kernel).
If you'd like to get a meaningfull result for gcc, you have to use a
crosscompiler. But even this is not fair, as one of them will have
additional code to handle the 32/64 bit difference of the host/target
machine.
Greetings, Martin
--
Martin Ostermann | mailto:ost@comnets.rwth-aachen.de
Communication Networks | http://www.comnets.rwth-aachen.de/~ost
Aachen University of Technology | phoneto:++49/241/807917
Germany | faxto:++49/241/8890378
--
To unsubscribe: mail -s unsubscribe axp-list-request@redhat.com < /dev/null
next reply other threads:[~1996-07-20 17:44 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
1996-07-20 17:44 Martin Ostermann [this message]
-- strict thread matches above, loose matches on Subject: below --
1996-07-17 12:25 Alpha/Intel performance David Wild
1996-07-16 20:09 Harold H. Youngren
1996-07-16 20:14 ` Dave Mitchell
[not found] <31EB88A2@msmailgtwy.nvl.symix.com>
1996-07-16 16:00 ` Dave Mitchell
1996-07-16 22:14 ` Berndt Josef Wulf
1996-07-16 12:15 David Wild
[not found] <Pine.SGI.3.94.960716004723.2461A-100000@groucho.pci.uni-hannover.de>
1996-07-15 23:50 ` Robert Allen Barker
1996-07-15 22:24 Robert Allen Barker
1996-07-15 22:50 ` Dirk Wetter
1996-07-15 23:12 ` Bill Broadley
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox