From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 31052 invoked from network); 9 Sep 1998 14:20:51 -0000 Received: from mail.redhat.com (199.183.24.239) by mail2.redhat.com with SMTP; 9 Sep 1998 14:20:51 -0000 Received: from mailhost.cogency.co.uk (man01.cogency.co.uk [195.153.128.51]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id KAA30917 for ; Wed, 9 Sep 1998 10:21:32 -0400 Received: from cogency.co.uk by mailhost.cogency.co.uk (SMI-8.6/PIPEX simple 1.27) id PAA14346; Wed, 9 Sep 1998 15:22:15 +0100 Sender: dg@cogency.co.uk Message-ID: <35F68E72.215C25DE@cogency.co.uk> Date: Wed, 09 Sep 1998 15:19:30 +0100 From: David Alan Gilbert Organization: Cogency Technology Inc X-Mailer: Mozilla 4.06 [en] (X11; I; SunOS 5.5.1 sun4m) MIME-Version: 1.0 To: axp-list@redhat.com Subject: Re: Impossible References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mark Dohojda wrote: > > Hello everyone > > I have an Impassable situation here (or so I believe). I have a > customer here who just installed Linux on alpha LX600mhz, 512mb of RAM. > He run C program in NT and in Linux (on the same box), and NT proved to > be 30% faster. Now I don't know much about the code, however I know > that he used the same sources on both of the operating systems. Also > the source (to the best of my knowledge) was in no way optimized for NT. > > My question is, how can NT beat Linux????? Is that possible? And what to > do, to make sure that Linux is not going to look bad. The simple answer is that he is probably using a better compiler on the NT box. Since he is using RH5.1 first make sure that he is using the 'egcs' compiler and not the gcc compiler to compile his program (just use the command egcs instead of gcc). Secondly he should be looking at using the flags to tell EGCS that he has the 21164A processor (its something like -mcpu=21164a - someone correct me?). > He has RedHat 5.1 no special editions or patches other then the man > pages patch. Does his program make heavy use of square roots? If so there was an issue mentioned recently on the list about the square root implementation in the library. > Also one other question. Part of the problem might be his swap > partitions. He has total of 8 swap partitions 128mb each, how can I > make sure that Linux is using all of them? or does RedHat installation > automatically makes sure that all the swap partitions are working > correctly? Its probably not a good idea to have 8 swap partitions on a single disc; that would be slow; if they are on separate discs then RedHat should use them all properly. (You can set priorities to indicate if some discs are preferable to others). But the other question is why? Linux/Alpha is quite capable of having one big nice 1GB swap partition (I think) - its a limitation on architectures with smaller page sizes which causes the 128MB limit. Dave -- ---------------------------------------------------------------------- - Dr. David Alan Gilbert - WARNING! This is a beta release .signature- - Work: dg @ cogency.co.uk - +44-(0)161-428-9444 - - Home: gro.gilbert @ treblig.org - - ----------------------------------------------------------------------