From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,baadd4fe2bf1dd84 X-Google-Attributes: gid111c93,public From: mbkennel@yahoo.com (Matt Kennel) Subject: Re: Redhat/Alpha computational performance???? Date: 1998/03/03 Message-ID: #1/1 X-Deja-AN: 330300577 References: <6d5453$sht@news1.newsguy.com> Reply-To: mbkennel yahoo.com Organization: University of California at San Diego Newsgroups: comp.os.linux.alpha On 27 Feb 1998 01:16:19 GMT, Greg Lindahl wrote: :mbkennel@yahoo.com (Matt Kennel) writes: : :> I find that the floating performance of gcc/egcs is even worse on :> Linux/Alpha. With egcs I get about 2x a P2 300 on integer codes, and :> typically no more than equal on FP codes and sometimes less. The 'libm' is :> a big problem, exponentials and trigonometric functions are very poor :> performing on Linux/Alpha, even when recompiling Netlib's fdlibm with :> egcs -O3 blah blah blah. : :Thank you for finally getting around to explaining what your code :does. I tried a variety of different programs. Apparently the standard functions are so bad that they became the bottleneck in all of them. I profiled a couple of them. I don't know what SPECfp programs do, but it's impossible to do optical physics without exponentials, sine and cosine (over both R and C). :That limitation is well known and no one has volunteered to attempt :to fix the linux libm. It's remarkable that it's so poor---apparently the functions are so much worse than on x86 that it can negate all the advantage of a supposedly 2.5x SPECmark advantage. What I don't understand is why it should be so. It superficially appears from the symbols that the standard Linux/Alpha and Linux/x86 libm is either identical to, or closely derived from, Netlib's "fdlibm". It also appears to be the standard 'libm' for Sparcs, and was originally written by somebody at Sun. What's so magically bad about 'fdlibm'? Looking at the source for "fdlibm" I don't see anything obvious which would make it particularly bad---all the things which fdlibm routines do seem to be ones which some "typical" numerical programs would do all the time, if you take away the bit masking and exponent shifting. Is that it? At the moment it would be an unfair accusation, but I'll admit that I'm worried Alpha is a great Specmark chip and not really a good science chip. :> Will you please port DEC C + Fortran + DEC libm to the Alpha under linux? : :If you want to join the list of interested parties, email me how many :licenses for which platform you'd be intersted (x86, alpha, c/c++ and :fortran.) At the moment, 1 Fortran 90 for Linux/Alpha. If it works well soon, we will probably continue to buy Alphas for computation---otherwise we stick with x86 Linux, or with lower probability, try R10000's and Ultrasparcs. I don't know about the new Sparcs, but in a brief experience with a R10000 and Sgi/Cray F90 I was quite impressed by the real life performance. We'd like to limit our system administration burden (hence Linux/Alpha to add to our Linux/x86), because it basically comes down to me and I'd rather study ''chaos theory'' than computers in chaos. -- * Matthew B. Kennel/Institute for Nonlinear Science, UCSD - * "People who send spam to Emperor Cartagia... vanish! _They say_ that * there's a room where he has their heads, lined up in a row on a desk... * _They say_ that late at night, he goes there, and talks to them... _they *- say_ he asks them, 'Now tell me again, how _do_ you make money fast?'"