Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* Compaq fortran compiler, Linux, and tru64
@ 1999-08-11 14:11 Todd Henderson
  1999-08-11 14:35 ` smurf
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Todd Henderson @ 1999-08-11 14:11 UTC (permalink / raw)
  To: axp-list

We are currently building a system from XP1000's and have been
benchmarking our code and playing around with the new Compaq fortran
compiler for Linux.  It turned out that the beta Linux compiler produced
a slower code than the tru64 compiler did on tru64.  Well, since it is
in beta this seemed reasonable.  So we tried running the tru64 compiled
code on the Linux machine since they are compatible.  I expected the
performance under Linux with the tru64 compiled code to be about the
same as the tru64 compiled code on a tru64 machine.  Turns out, we
didn't get that.  Does anyone have any ideas why an executable moved
from the DEC tru64 machine to a Linux machine would be slower?  Is there
some overhead in Linux or something?  Here are some of the numbers for
the CFD code:

(OS/Compiler used)                             time
tru64/tru64                                      27.5 minutes
Linux/tru64                                     34.6 minutes
Linux/Linux                                    34.4 minutes


Thanks,
Todd


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Compaq fortran compiler, Linux, and tru64
  1999-08-11 14:11 Compaq fortran compiler, Linux, and tru64 Todd Henderson
@ 1999-08-11 14:35 ` smurf
  1999-08-11 16:34   ` Wes Bauske
  1999-08-11 16:49   ` Wes Bauske
  1999-08-11 21:26 ` spink
  1999-08-12  3:17 ` Jeffrey Sturm
  2 siblings, 2 replies; 8+ messages in thread
From: smurf @ 1999-08-11 14:35 UTC (permalink / raw)
  To: axp-list



Todd,

You can't expect same result from Tru64/Fortran to Linux, even Fortran
for Linux.
OS is still Linux and not Tru64 where the difference is few hundred dollars.

This doesn't answer your question, but please also take a look at our benchmarks.
http://www.hpc.co.jp/Bench/CPUbench2.htm

Todd Henderson wrote:
> 
> We are currently building a system from XP1000's and have been
> benchmarking our code and playing around with the new Compaq fortran
> compiler for Linux.  It turned out that the beta Linux compiler produced
> a slower code than the tru64 compiler did on tru64.  Well, since it is
> in beta this seemed reasonable.  So we tried running the tru64 compiled
> code on the Linux machine since they are compatible.  I expected the
> performance under Linux with the tru64 compiled code to be about the
> same as the tru64 compiled code on a tru64 machine.  Turns out, we
> didn't get that.  Does anyone have any ideas why an executable moved
> from the DEC tru64 machine to a Linux machine would be slower?  Is there
> some overhead in Linux or something?  Here are some of the numbers for
> the CFD code:
> 
> (OS/Compiler used)                             time
> tru64/tru64                                      27.5 minutes
> Linux/tru64                                     34.6 minutes
> Linux/Linux                                    34.4 minutes

I think this is reasonable... UNIX compiled fortran under linux is bit
slower than
Linux fortran compiled running on linux.

Otherwise...DecPaq has no meaning having Tru64 unix...I believe.


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Compaq fortran compiler, Linux, and tru64
  1999-08-11 14:35 ` smurf
@ 1999-08-11 16:34   ` Wes Bauske
  1999-08-11 16:49   ` Wes Bauske
  1 sibling, 0 replies; 8+ messages in thread
From: Wes Bauske @ 1999-08-11 16:34 UTC (permalink / raw)
  To: axp-list

smurf@cosm.co.jp wrote:
> 
> Todd,
> 
> You can't expect same result from Tru64/Fortran to Linux, even Fortran
> for Linux.
> OS is still Linux and not Tru64 where the difference is few hundred dollars.
> 
> This doesn't answer your question, but please also take a look at our benchmarks.
> http://www.hpc.co.jp/Bench/CPUbench2.htm
> 

Assuming the code at your site is the code you used, 
keep in mind your loop style is a bit too straight forward.

One can change the coding style to substantially increase
the MFLOP rating by taking into account cache size/layout/
register reuse/etc. In fact, one can approach the theoretical
peak performance on many risc systems using code that is
aware of those effects, even with g77.


Wes


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Compaq fortran compiler, Linux, and tru64
  1999-08-11 14:35 ` smurf
  1999-08-11 16:34   ` Wes Bauske
@ 1999-08-11 16:49   ` Wes Bauske
  1999-08-11 17:20     ` Wes Bauske
  1 sibling, 1 reply; 8+ messages in thread
From: Wes Bauske @ 1999-08-11 16:49 UTC (permalink / raw)
  To: axp-list

smurf@cosm.co.jp wrote:
> 
> > Here are some of the numbers for
> > the CFD code:
> >
> > (OS/Compiler used)                             time
> > tru64/tru64                                      27.5 minutes
> > Linux/tru64                                     34.6 minutes
> > Linux/Linux                                    34.4 minutes
> 
> I think this is reasonable... UNIX compiled fortran under linux is bit
> slower than
> Linux fortran compiled running on linux.
> 
> Otherwise...DecPaq has no meaning having Tru64 unix...I believe.
> 

True statement.

But, since Todd have both systems, why not profile the binaries
and see what the problem is?? Just do the Tru64/Tru64 vs Linux/Linux
runs.


Wes


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Compaq fortran compiler, Linux, and tru64
  1999-08-11 16:49   ` Wes Bauske
@ 1999-08-11 17:20     ` Wes Bauske
  1999-08-11 18:03       ` Todd Henderson
  0 siblings, 1 reply; 8+ messages in thread
From: Wes Bauske @ 1999-08-11 17:20 UTC (permalink / raw)
  To: axp-list

Wes Bauske wrote:
> 
> smurf@cosm.co.jp wrote:
> >
> > > Here are some of the numbers for
> > > the CFD code:
> > >
> > > (OS/Compiler used)                             time
> > > tru64/tru64                                      27.5 minutes
> > > Linux/tru64                                     34.6 minutes
> > > Linux/Linux                                    34.4 minutes
> >
> > I think this is reasonable... UNIX compiled fortran under linux is bit
> > slower than
> > Linux fortran compiled running on linux.
> >
> > Otherwise...DecPaq has no meaning having Tru64 unix...I believe.
> >
> 
> True statement.
> 
> But, since Todd have both systems, why not profile the binaries
> and see what the problem is?? Just do the Tru64/Tru64 vs Linux/Linux
> runs.
> 

Forgot to ask. Those are CPU times, not WCT right??
If it's wall clock time, it'll be harder to trace 
what your problem is. You can use vmstat/top to monitor
overall system behavior. Maybe your code causes some
sort of paging problems??


Wes


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Compaq fortran compiler, Linux, and tru64
  1999-08-11 17:20     ` Wes Bauske
@ 1999-08-11 18:03       ` Todd Henderson
  0 siblings, 0 replies; 8+ messages in thread
From: Todd Henderson @ 1999-08-11 18:03 UTC (permalink / raw)
  To: axp-list

[-- Attachment #1: Type: text/html, Size: 2603 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Compaq fortran compiler, Linux, and tru64
  1999-08-11 14:11 Compaq fortran compiler, Linux, and tru64 Todd Henderson
  1999-08-11 14:35 ` smurf
@ 1999-08-11 21:26 ` spink
  1999-08-12  3:17 ` Jeffrey Sturm
  2 siblings, 0 replies; 8+ messages in thread
From: spink @ 1999-08-11 21:26 UTC (permalink / raw)
  To: axp-list; +Cc: spink

>> same as the tru64 compiled code on a tru64 machine.  Turns out, we
> didn't get that.  Does anyone have any ideas why an executable moved
> from the DEC tru64 machine to a Linux machine would be slower?  Is there
> some overhead in Linux or something?  Here are some of the numbers for
> the CFD code:
> 

There are a couple reasons, all related to the allocation of memory and 
virtual-to-physical mapping.  It essentially boils down to T64 using some page 
colouring schemes along with some tweaks and Linux doesn't.  This can cause a 
couple different problem: cache thrashing,

 possible cache aliasing(in the 21264 it could be possible to have alias in the 
l1 D-cache because to virtual bits are used in the index.  To get around this, 
the 21264 only allows 1 cache line of a possible aliased set of cache lines 
into the D-cache), tlb issues, etc.  

AFAIR, these issues have been brought up with linus, but he wasn't willing to 
put in the page coloring.  I don't know if Phil Ezolt is on this list, but he 
would probably have more insight into the issue. 


aaron spink
not speaking for Compaq


^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: Compaq fortran compiler, Linux, and tru64
  1999-08-11 14:11 Compaq fortran compiler, Linux, and tru64 Todd Henderson
  1999-08-11 14:35 ` smurf
  1999-08-11 21:26 ` spink
@ 1999-08-12  3:17 ` Jeffrey Sturm
  2 siblings, 0 replies; 8+ messages in thread
From: Jeffrey Sturm @ 1999-08-12  3:17 UTC (permalink / raw)
  To: axp-list

There was a thread recently on c.o.l.a about cache architecture and page
colouring.  Search for "Tru64 vs. Linux" or something like that...

In short, when Tru64 and Linux run the same binary code, the only
difference lies in the kernel, specifically the VM subsystem.  Linux
probably causes more cache misses than Tru64 because its VM subsystem is
not optimized for Alpha.  That's part of the price you pay for
cross-architecture portability.

Jeff

Todd Henderson wrote:
> 
> We are currently building a system from XP1000's and have been
> benchmarking our code and playing around with the new Compaq fortran
> compiler for Linux.  It turned out that the beta Linux compiler produced
> a slower code than the tru64 compiler did on tru64.  Well, since it is
> in beta this seemed reasonable.  So we tried running the tru64 compiled
> code on the Linux machine since they are compatible.  I expected the
> performance under Linux with the tru64 compiled code to be about the
> same as the tru64 compiled code on a tru64 machine.  Turns out, we
> didn't get that.  Does anyone have any ideas why an executable moved
> from the DEC tru64 machine to a Linux machine would be slower?  Is there
> some overhead in Linux or something?  Here are some of the numbers for
> the CFD code:
> 
> (OS/Compiler used)                             time
> tru64/tru64                                      27.5 minutes
> Linux/tru64                                     34.6 minutes
> Linux/Linux                                    34.4 minutes
> 
> Thanks,
> Todd
> 
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject.  Do not send it to axp-list@redhat.com


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~1999-08-11 21:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-11 14:11 Compaq fortran compiler, Linux, and tru64 Todd Henderson
1999-08-11 14:35 ` smurf
1999-08-11 16:34   ` Wes Bauske
1999-08-11 16:49   ` Wes Bauske
1999-08-11 17:20     ` Wes Bauske
1999-08-11 18:03       ` Todd Henderson
1999-08-11 21:26 ` spink
1999-08-12  3:17 ` Jeffrey Sturm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox