From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 19228 invoked from network); 22 Jun 1998 07:56:11 -0000 Received: from kanga.amtp.cam.ac.uk (exim@131.111.16.130) by mail2.redhat.com with SMTP; 22 Jun 1998 07:56:11 -0000 Received: from quark.amtp.cam.ac.uk [131.111.16.111] (ig206) by kanga.amtp.cam.ac.uk with smtp (Exim 1.73 #1) id 0yo1SJ-0001Dy-00; Mon, 22 Jun 1998 08:55:59 +0100 Received: from localhost by quark.amtp.cam.ac.uk (5.65v3.2/DAMTP 2.3-Client (quark.amtp.cam.ac.uk MX-hub grey.amtp.cam.ac.uk)) id AA14801; Mon, 22 Jun 1998 08:55:58 +0100 Date: Mon, 22 Jun 1998 08:55:57 +0100 (BST) From: Ian Grant X-Sender: ig206@quark.amtp.cam.ac.uk To: axp-list@redhat.com Subject: Re: On Alpha, SQRT slows down after RH5.1 upgrade In-Reply-To: <199806202116.OAA20904@terminus.ayched.com> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Sat, 20 Jun 1998 edhall@ayched.com wrote: > I've recently upgraded my 164LX to Red Hat 5.1. As a result, one of my > numerical programs (which happens to do lots of square roots) has slowed > down by a factor of about seven! Recompiling with profiling confirms that > it is now spending an overwhelming amount of its time in "__ieee754_sqrt". > > Has anyone else seen this? I haven't seen this, but I'm not too surprised. IIRC there was a bug in the glibc square root function on Alphas, so your previous code may have been faster, but the results could well have been wrong. My guess is that the bug has been fixed, possibly by taking out a troublesome optimisation. You could install the SRPMs for the old glibc and the new one, locate the sqrt code and do a diff to see what's happened. Ian PS A short term fix would be to compile on an Alpha running Digital Unix, if you have such a thing.