From: bmeyer@cs.monash.edu.au
Subject: Re: Performance....
Date: 2000/04/25 [thread overview]
Message-ID: <8e4aol$md6$1@wombat.cs.monash.edu.au> (raw)
In-Reply-To: 39057c0d.415049797@news.nic.utwente.nl
A.Dergatchev@tn.utwente.nl (Andrei A. Dergatchev) writes:
>>to perform my test I'v used some test under Linux under the both computer...
>>and with dnetc from ditributed.net...
>>Result :
>>P2 : 978506 key/s
>>Alpha : 863256 key/s
>Kernel is important, but the most important thing to watch out
>for Alpha executables is - which compiler was used ?? I vaguely
>remeber that distributed.net Alpha client was not compiled using
>the best compiler available for Alpha - Compaq C.
Well, that's _usually_ the correct answer, but not in this case.
Both the x86 and the linux/AXP RC5 executable from distributed.net
have their main routine implemented in severely hand-optimized assembler,
with every dirty trick in the book, and counting every clock cycle. Both
cores pretty much keep all integer pipelines fully busy at all times (in
the case of the linux/AXP core, I can personally attest that the main loop
is about 10k of perfectly pairing, non-stalling integer instructions.
I wrote it ]or, more precisely, I wrote the program that outputted the
assembler code, and the program that did the reordering to get things to
this nice state] ;-).
The reason the Alpha's performance is disappointing in RC5 cracking compared
to x86 and PPC is simply that the Alpha has no "rotate" instruction, and
also that it is a 64 bit architecture. RC5 consists of lots of rotates
(which the Alpha has to make up from a shift, another shift, and an OR),
and adds (which are expected to be 32 bit unsigned --- a data type not
directly supported by the Alpha, and thus requiring a 64 bit add followed
by a masking operation). You can get rid of some of the extra instructions
by close analysis of which bits go where, but in the long run, you simply
need way more instructions to check a single key than on x86, 68k or PPC.
>Another issue to consider is - if Alpha's 64-bitness (registers) is
>used in dnetc client or not.
The 64 bit registers are actually a problem in RC5 --- RC5 is most definitely
a 32 bit algorithm.
However, if you go and benchmark the DES cores, you'll see the Alpha come
out far ahead (although the x86 core will use the 64 bit wide MMX registers
if they are available --- but has to pay by being restricted to the rather
limited set of MMX instructions).
Bernie
--
Friends applaud, the Comedy is over
Ludwig von Beethoven
German composer, 1770-1827
Last words, 26 March 1827
next prev parent reply other threads:[~2000-04-25 4:00 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-04-25 4:00 Performance Mathieu Chauvel
2000-04-25 4:00 ` Performance Andrei A. Dergatchev
2000-04-25 4:00 ` bmeyer [this message]
2000-04-25 4:00 ` Performance Andrei A. Dergatchev
2000-04-25 4:00 ` Performance bmeyer
-- strict thread matches above, loose matches on Subject: below --
2001-11-26 23:21 Performance Mathieu Chauvel
2001-11-27 16:40 ` Performance Reinhard Eigner
2001-11-27 22:23 ` Performance Mathieu Chauvel
2001-11-28 1:25 ` Performance John Beardmore
2001-11-28 4:13 ` Performance Karl
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