Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Leon Muratov <lmuratov@my-deja.com>
Subject: Re: Linux / Tru64 Fortran performance
Date: 2000/04/26	[thread overview]
Message-ID: <8e6uqk$3i3$1@nnrp1.deja.com> (raw)
In-Reply-To: 8e54sv$jt0$1@nntp6.u.washington.edu

In article <8e54sv$jt0$1@nntp6.u.washington.edu>,
  kargl@troutmask.apl.washington.edu (Steven G. Kargl) wrote:
> In article <8e50ue$vu8$1@nnrp1.deja.com>,
> 	Leon Muratov <lmuratov@my-deja.com> writes:
> > In article <3905E6E5.B4E2DFF5@moene.indiv.nluug.nl>,
> >
> > So any ideas what can cause 50% slowdown on Linux?
>
> Memory management and I/O.
>
> As already mentioned Tru64 has page coloring while linux
> doesn't.  This can affect memory management which your
> "benchmark" number suggest is the problem.  Does your
> program allocate/deallocate a large number of small
> arrays?  This could lead to misalignment and fragmentation
> which may causes inefficient use of the cache.
>
> >
> > And what can I do to figure it out before I erase Linux disk?
> >
>
> Use the profiler to find the bottleneck(s) in the code.  You
> need to add the -pg flag to the compilation and use gprof
> to see how the code uses the cpu.  Of course, this suggestion
> is only valid if Compaq provides this with their linux Fortran
> compiler.
>
> --
> Steve
>
Steve, thank you,  this is a good point ! I had to think about it myself
first, since I already
so a similar problem on HP.
However, I was under impression that cache management is done mainly by
hardware.
 And if compilers are the same (as COMPAQ fortran group stated)
executables and memory layouts should be similar.  So what is so bad for
Linux that was OK for Tru64?
What should I avoid?  What is an efficient way of handling memory in
Linux?

The program was originally written for Cray (not by me). It handle the
memory as following
In the beginning it allocate a large chunk of memory and create an
internal "heap" from which it supplies memory to subroutines.  Most of
allocations are semi-permanent
(for long time) but there are some for small arrays. I understand that
this prevents compiler from any memory optimization, but to change a
structure of the program with 25K lines brrr... I tried once and quit.
This probably has to be done anyway, but first I would like to get
answers to questions above.

Speaking about libraries:
We are not using any special libraries exept base runtime, all special
functions are computed inside (result of porting this program to several
different platforms).  Program does not have too many Exp, Sin and Cos
it mostly does additions, multiplications,. and some Sqrts. And if it
was a libproblems
benchmarks ratio most ikely (parts of program could scale differently
with N)  would be the similar for small and large program.  99.9% that
this is a memory problem.

Best,
Leon

BTW when I checked few LAPACK routines compiled from source by COMPAQ
compilers they run as fast as their twins from extended math libraries.


Sent via Deja.com http://www.deja.com/
Before you buy.



  reply	other threads:[~2000-04-26  4:00 UTC|newest]

Thread overview: 54+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-04-24  4:00 Linux / Tru64 Fortran performance Leon Muratov
2000-04-24  4:00 ` Richard Maine
2000-04-25  4:00   ` Leon Muratov
2000-04-25  4:00     ` Greg Lindahl
2000-04-25  4:00     ` Andrei A. Dergatchev
2000-04-25  4:00       ` James D. Freels
2000-04-27  4:00         ` Charles Hixson
2000-05-08  4:00       ` Carlos
2000-05-08  4:00         ` Andrei A. Dergatchev
2000-04-25  4:00     ` Michael Kagalenko
2000-04-25  4:00       ` Timothy J. Bogart
2000-04-25  4:00     ` Dan Nagle
2000-04-25  4:00 ` Toon Moene
2000-04-25  4:00   ` Leon Muratov
2000-04-25  4:00     ` Steven G. Kargl
2000-04-26  4:00       ` Leon Muratov [this message]
2000-04-29  4:00         ` Steve Lionel
2000-04-29  4:00           ` Toon Moene
2000-05-08  4:00           ` Richard Simpson
2000-05-08  4:00             ` Andrei A. Dergatchev
2000-04-29  4:00         ` Jochen K�pper
2000-05-08  4:00         ` Eric Werme - replace nospam with werme
2000-04-25  4:00     ` Dan Nagle
2000-04-26  4:00     ` Emilio Lopes
2000-04-26  4:00       ` Toon Moene
2000-04-25  4:00 ` Jeffrey J. Potoff
2000-04-26  4:00 ` Massimiliano Fatica
2000-06-18  4:00   ` Tom Sevy
2000-06-19  4:00     ` Steve Lionel
2000-06-19  4:00     ` Serguei Patchkovskii
2000-06-19  4:00       ` W Bauske
2000-06-19  4:00         ` Toon Moene
2000-06-19  4:00           ` W Bauske
2000-06-19  4:00             ` Serguei Patchkovskii
2000-06-20  4:00               ` W Bauske
2000-06-25  4:00                 ` Jeff Sturm
2000-06-20  4:00               ` James Cownie
2000-06-20  4:00           ` SPEC CFP2000 Fortran declarations Jan Vorbrueggen
2000-06-20  4:00             ` McCalpin
2000-06-20  4:00               ` Jan Vorbrueggen
2000-06-20  4:00                 ` McCalpin
2000-06-20  4:00             ` Toon Moene
2000-06-21  4:00               ` Jan Vorbrueggen
2000-06-21  4:00                 ` Toon Moene
2000-06-20  4:00         ` Linux / Tru64 Fortran performance Jan Vorbrueggen
2000-06-20  4:00         ` Greg Lindahl
2000-06-21  4:00           ` W Bauske
2000-06-22  4:00             ` Greg Lindahl
2000-06-19  4:00       ` Steve Lionel
2000-06-20  4:00         ` W Bauske
2000-06-20  4:00           ` W Bauske
2000-06-20  4:00             ` Toon Moene
2000-06-20  4:00       ` Jan Vorbrueggen
2000-06-19  4:00     ` Greg Lindahl
read-only archive

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