From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111c93,e7e4cea17757e823 X-Google-Attributes: gid111c93,public From: peterm@tesla.EECS.Berkeley.EDU (Peter Mardahl) Subject: Re: Running Digital UNIX code from Linux? Date: 1998/04/29 Message-ID: <6i6l3k$1o4$1@tesla.EECS.Berkeley.EDU>#1/1 X-Deja-AN: 348660735 References: <6i6eq1$c85$1@agate.berkeley.edu> Organization: UC Berkeley Newsgroups: comp.os.linux.alpha In article <6i6eq1$c85$1@agate.berkeley.edu>, Raymond Fellers wrote: >I have a fast Linux Alpha box and a very slow Digital Alpha box. I'm doing >alot of number crunching with Fortran so I've been compiling my code on the >DU box with the libs statically linked then running the code on the Linux >box. What I don't know is will Linux run DU executables as fast as running >from DU, i.e. does Linux incur any additional overhead or are execution times >identical? >Raymond Fellers I do this too, except with C++ binaries. The statically-linked binary seems to run just as fast on the Linux/Alpha box as it should. I've actually performed timings, comparing a 600MHz PWSAU running digital UNIX and the same binary running on a 500MHz 21164 Linux machine. Both had the same amount of cache, but the 500MHz machine had the older memory interface: it uses parity 60ns DRAM, not SDRAM. The binary ran the same task with these times: 249 seconds on the 600MHz Digital UNIX machine 310 seconds on the 500MHz Linux machine Timing Ratio: 1.24 Clock speed ratio: 1.2 SPECfp95 ratio: 1.24 (mine is a floating-point intensive code) So yes, it does seem likely to me that you're getting full performance on your Linux/Alpha machine. Comments: you might want to use compilation flags to target optimization for your Linux/Alpha CPU: I used optimization flags like this with DEC CXX: cxx -arch ev56 -O3 -tune ev5 Second, if yours is a type of program which makes lots of OS calls (such as file access, memory allocation, swapping, etc.) then your performance may differ greatly: my program spends very, very little time doing file access or memory allocation compared to CPU/memory use. Regards, PeterM