From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,e4d35e15e8e0913 X-Google-Attributes: gid111c93,public From: bmeyer@cs.monash.edu.au Subject: Re: Performance.... Date: 2000/04/25 Message-ID: <8e4aol$md6$1@wombat.cs.monash.edu.au>#1/1 X-Deja-AN: 615490932 Sender: bmeyer@bruce.cs.monash.edu.au References: <5acN4.3289$SW2.6623340@nnrp4.proxad.net> <39057c0d.415049797@news.nic.utwente.nl> Organization: This is innd taking over... NNTP-Posting-Date: Wed, 26 Apr 2000 01:05:38 EST Reply-To: bmeyer@cs.monash.edu.au Newsgroups: comp.os.linux.alpha 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