Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Linux / Tru64 Fortran performance
@ 2000-04-24  4:00 Leon Muratov
  2000-04-24  4:00 ` Richard Maine
                   ` (3 more replies)
  0 siblings, 4 replies; 54+ messages in thread
From: Leon Muratov @ 2000-04-24  4:00 UTC (permalink / raw)


I am completely bugged by the  results of my benchmarking of our
XP1000-500MHz. We are considering of buying more alpha
workstations and are trying to choose Linux or Tru64.

 The program that I used performes some quantum-mechanical calculations
and its size/execution time depends on the number of
atoms. Hence, it can be used for different size calculations.

I believe that for small systems Linux/Tru64 were on par, but I lost
data
and don't want to reboot computer for now.

Medium size system (about 40 Mb) Tru64 - 241 sec /  Linux 315 sec  (30%
slower)
Large system    (about 160 MB)  Tru64 - 1108 sec / Linux 1641 sec  (48%
slower)

I was using the following compiling lines:
LInux:       fort -r8 -fast -align dcommons  bnd.f
Tru64 :     f77  -r8 -O bnd.f

I know about "page coloring" on Linux (Can somebody explain me what
exactly does it
mean - I can only guess)  But based on what I heard before, I expected
10-15% drop not 50%!
Could it be something else that I missed?


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



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

* Re: Linux / Tru64 Fortran performance
  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 ` Jeffrey J. Potoff
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 54+ messages in thread
From: Richard Maine @ 2000-04-24  4:00 UTC (permalink / raw)


Leon Muratov <lmuratov@wvu.edu> writes:

> LInux:       fort -r8 -fast -align dcommons  bnd.f
> Tru64 :     f77  -r8 -O bnd.f
> 
> I know about "page coloring" on Linux (Can somebody explain me what
> exactly does it mean - I can only guess) But based on what I heard
> before, I expected 10-15% drop not 50%!

Have to ask someone else about that.

> Could it be something else that I missed?

Performance measurement is *NOT* as trivial as many people (including
some, but by no means all of the ones on this newsgroup) portray it.
Many things can affect performance and to different degrees on different
codes.  That's why testing with an actual application program (as you
appear to be doing) is always desirable.  It is not at all unusual
to find that performance differences that show up as 10-15% on
one application or benchmark might show up as 50% differences on
another.

But, of course, it is worthwhile to try to understand why you are
seeing a performance difference.  After all, it might turn out
to be something fixable.

One big thing that you missed is mentioning what compilers you are
talking about (including version numbers).  I can't tell just from the
command lines.

You mentioned size of the application, but not of the
computer.  If either system is swapping to disk, then
many performance issues come into play (and buying more
memory would likely be a better solution than trying to
tune the swapping - certainly for the sizes you are quoting,
all of which are modest for current momory prices).

-- 
Richard Maine
maine@altair.dfrc.nasa.gov



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

* Re: Linux / Tru64 Fortran performance
  2000-04-25  4:00   ` Leon Muratov
@ 2000-04-25  4:00     ` Steven G. Kargl
  2000-04-26  4:00       ` Leon Muratov
  2000-04-25  4:00     ` Dan Nagle
  2000-04-26  4:00     ` Emilio Lopes
  2 siblings, 1 reply; 54+ messages in thread
From: Steven G. Kargl @ 2000-04-25  4:00 UTC (permalink / raw)


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



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

* Re: Linux / Tru64 Fortran performance
  2000-04-25  4:00   ` Leon Muratov
                       ` (2 preceding siblings ...)
  2000-04-25  4:00     ` Greg Lindahl
@ 2000-04-25  4:00     ` Michael Kagalenko
  2000-04-25  4:00       ` Timothy J. Bogart
  3 siblings, 1 reply; 54+ messages in thread
From: Michael Kagalenko @ 2000-04-25  4:00 UTC (permalink / raw)


Leon Muratov  (lmuratov@my-deja.com) wrote 

] Maintaining proprietary UNIXes is getting
]too expensive for companies

 I am not so sure that maintaining proprietary UNIXes is all that more 
 expensive than maintaining Linuxes. The main cost for the companies would
 be the personnel costs to maintain them, not the license costs, and I
 woud suspect Tru64 is cheaper to maintain than Linux, with its
 half-baked design and fragmented 1001 distributions.





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

* Re: Linux / Tru64 Fortran performance
  2000-04-25  4:00     ` Michael Kagalenko
@ 2000-04-25  4:00       ` Timothy J. Bogart
  0 siblings, 0 replies; 54+ messages in thread
From: Timothy J. Bogart @ 2000-04-25  4:00 UTC (permalink / raw)


In article <8e57ch$o9a$1@isn.dac.neu.edu>,
Michael Kagalenko <mkagalen@lynx.dac.neu.edu> wrote:
>Leon Muratov  (lmuratov@my-deja.com) wrote 
>
>] Maintaining proprietary UNIXes is getting
>]too expensive for companies
>
> I am not so sure that maintaining proprietary UNIXes is all that more 
> expensive than maintaining Linuxes. The main cost for the companies would
> be the personnel costs to maintain them, not the license costs, and I
> woud suspect Tru64 is cheaper to maintain than Linux, with its
> half-baked design and fragmented 1001 distributions.
>
>
Couldn't imagine what folks on comp.lang.fortran would care about
OS flame wars, so I at least took them off.

/soapbox on
In the vein of your statements, I would _suspect_ you have never had
to negotiate an upgrade for a commercial UNIX for an organization with
8000 seats (or more), or the additional suport costs.  Indeed, those
costs pale in comparison to the staffing costs, but staff you must have
whatever path you take.

Half-baked design?  I would offer that anyone who has gone from SunOS to
Solaris or AIX v1 to AIX v4 has seen more high temperature cooking than
anything that has gone on in the Linux world.  Which, when you think
about it, is pretty amazing considering it's oh-so-humble origins.

And anyone who would confuse the concept that there is a choice of
distributions to deploy in an organization with installing a different
distribution on every nth computer, well, nuff said, I hope.

Oh yeah, please tell me of your experiences with any proprietary UNIX
that lets you consolidate the training of your support staff by running
it on half a dozen platforms (which most any large organization has).

I have my own likes and dislikes of these various solutions, and that
could lead to interesting discussions...but knee jerk dismissal of
any of them (ok, except for anything Microsoft <grin>) is arguably
sufficient cause for commitment.

/soapbox off

Maybe we can get back to concentrating on performance issues?




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

* Re: Linux / Tru64 Fortran performance
  2000-04-24  4:00 ` Richard Maine
@ 2000-04-25  4:00   ` Leon Muratov
  2000-04-25  4:00     ` Dan Nagle
                       ` (3 more replies)
  0 siblings, 4 replies; 54+ messages in thread
From: Leon Muratov @ 2000-04-25  4:00 UTC (permalink / raw)


Guilty,
Compilers: UNIX DIGITAL Fortran 77 V5.1-156 (old)
	 LINUX (the latest Feb01 COMPAQ) from  cfal-1.0-7.alpha.rpm

Computer has 384 MB of memory 500MB of swap under UNIX and 700 Mb under
Linux. No other program were running. BTW, should swap contribute mainly
to system
time?
Do Linux and Tru64 have any profiling tools and if so how difficult to
use them?
Does anyone else performed a similar benchmarking?

Just a thought:
 Linux is rapidly becoming the main system for "supercomputing" (at
least on paper). Also Fortran was, is, and will be the main language for
scientific computation, (although I personally prefer plain C). But what
bugs me a lot, is a lack of interest to "Fortran"
problems in Linux community.  Maintaining proprietary UNIXes is getting
too expensive for companies and I am just afraid that we soon will get
another NT as an ultimate system for "supercomputing"

Best regards,


Leon


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



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

* Re: Linux / Tru64 Fortran performance
  2000-04-25  4:00   ` Leon Muratov
@ 2000-04-25  4:00     ` Dan Nagle
  2000-04-25  4:00     ` Andrei A. Dergatchev
                       ` (2 subsequent siblings)
  3 siblings, 0 replies; 54+ messages in thread
From: Dan Nagle @ 2000-04-25  4:00 UTC (permalink / raw)


Hello,

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 4/25/2000, 10:27:44 AM, Leon Muratov <lmuratov@my-deja.com> wrote 
regarding Re: Linux / Tru64 Fortran performance:

<snip>

> BTW, should swap contribute mainly
> to system
> time?

If you're using the cpu_time() intrinsic, the standard
goes out of its way to tell you that the definitions of
the various times are processor-dependent.

That is, according to the standard, you may reliably
compare different parts of the a program, or
different algorithms, or problem sizes, etc., on the
same processor, but not compare different processors.

<snip rest and sig>

-- 
Cheers!

Dan Nagle, eMail: dnagle@erols.com
Purple Sage Computing Solutions, Inc.,
12142 Purple Sage Ct., Reston VA 20194







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

* Re: Linux / Tru64 Fortran performance
  2000-04-25  4:00   ` Leon Muratov
  2000-04-25  4:00     ` Dan Nagle
@ 2000-04-25  4:00     ` Andrei A. Dergatchev
  2000-04-25  4:00       ` James D. Freels
  2000-05-08  4:00       ` Carlos
  2000-04-25  4:00     ` Greg Lindahl
  2000-04-25  4:00     ` Michael Kagalenko
  3 siblings, 2 replies; 54+ messages in thread
From: Andrei A. Dergatchev @ 2000-04-25  4:00 UTC (permalink / raw)


[Probably OT for clf - I'm not sure]

Hi,

>Do Linux and Tru64 have any profiling tools and if so how difficult to
>use them?

Tru64 has best profiling tools ever - pixie etc

>Does anyone else performed a similar benchmarking?
>
>Just a thought:
> Linux is rapidly becoming the main system for "supercomputing" (at
>least on paper). Also Fortran was, is, and will be the main language for
>scientific computation, (although I personally prefer plain C). But what
>bugs me a lot, is a lack of interest to "Fortran"
>problems in Linux community. 

This phrase triggered my memories of a discussion here about
one year ago, when Linus said:
"... And I know that Fortran people think they are special. But the
fact is that 99% of the worlds computing power (the part that isn't
sitting idle,
 that is), is used for other things. There's a hell of a lot more
floating point being done on games than on atomic simulations, I bet. 
  
 And call me shallow, but I'll try to take care of the 99% rather than
the 1%. If it turns out that some people prefer Tru64 because it does
page
 colouring, that's fine with me. I really don't care, because I
believe in the "best tool for the job" adage. I don't believe Linux is
supposed to be
 the best tool for _everything_ - but I firmly believe that I should
make my decisions on maintaining the thing 15 years from now."
(http://x45.deja.com/[ST_rn=ps]/getdoc.xp?AN=507344720&CONTEXT=956675084.1016463368&hitnum=0)

Does it answer your question ?

> Maintaining proprietary UNIXes is getting
>too expensive for companies and I am just afraid that we soon will get
>another NT as an ultimate system for "supercomputing"

If I'm correct, you're saying that a small fraction of users has
special needs but can't pay for it. Well, we'll need to maintain
and support our own "super-computational" OS then - be
it a flavor of Linux or *BSD.
>
>Best regards,
>
>
>Leon

Regards,

Andrei



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

* Re: Linux / Tru64 Fortran performance
  2000-04-25  4:00   ` Leon Muratov
  2000-04-25  4:00     ` Dan Nagle
  2000-04-25  4:00     ` Andrei A. Dergatchev
@ 2000-04-25  4:00     ` Greg Lindahl
  2000-04-25  4:00     ` Michael Kagalenko
  3 siblings, 0 replies; 54+ messages in thread
From: Greg Lindahl @ 2000-04-25  4:00 UTC (permalink / raw)


Leon Muratov <lmuratov@my-deja.com> writes:

>  Linux is rapidly becoming the main system for "supercomputing" (at
> least on paper). Also Fortran was, is, and will be the main language for
> scientific computation, (although I personally prefer plain C). But what
> bugs me a lot, is a lack of interest to "Fortran"
> problems in Linux community.

I think there's easily enough interest in Fortran in the Linux
community to keep supercomputing going.

-- greg



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

* Re: Linux / Tru64 Fortran performance
  2000-04-24  4:00 Linux / Tru64 Fortran performance Leon Muratov
  2000-04-24  4:00 ` Richard Maine
@ 2000-04-25  4:00 ` Jeffrey J. Potoff
  2000-04-25  4:00 ` Toon Moene
  2000-04-26  4:00 ` Massimiliano Fatica
  3 siblings, 0 replies; 54+ messages in thread
From: Jeffrey J. Potoff @ 2000-04-25  4:00 UTC (permalink / raw)


Leon Muratov wrote:
> 
> I am completely bugged by the  results of my benchmarking of our
> XP1000-500MHz. We are considering of buying more alpha
> workstations and are trying to choose Linux or Tru64.
> 
>  The program that I used performes some quantum-mechanical calculations
> and its size/execution time depends on the number of
> atoms. Hence, it can be used for different size calculations.
> 
> I believe that for small systems Linux/Tru64 were on par, but I lost
> data
> and don't want to reboot computer for now.
> 
> Medium size system (about 40 Mb) Tru64 - 241 sec /  Linux 315 sec  (30%
> slower)
> Large system    (about 160 MB)  Tru64 - 1108 sec / Linux 1641 sec  (48%
> slower)
> 
> I was using the following compiling lines:
> LInux:       fort -r8 -fast -align dcommons  bnd.f
> Tru64 :     f77  -r8 -O bnd.f
> 

I don't have a good answer to your question but have a few related
comments.  Under Tru64 many programs benefit from the -O5 optimization
flag.  -O corresponds to -O4 so at least you're running close to
the best optimization level.  Also, I've seen improvement with
some codes by adding "-speculate all" and "-fast" flags.

Also, I had a DP21264 500MHz NT box at one time.  Its performance was
horrible.  I could never figure out why it was such a dog, but it was
nowhere near as fast as other people's Tru64 21264 Alphas.

Jeff



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

* Re: Linux / Tru64 Fortran performance
  2000-04-24  4:00 Linux / Tru64 Fortran performance Leon Muratov
  2000-04-24  4:00 ` Richard Maine
  2000-04-25  4:00 ` Jeffrey J. Potoff
@ 2000-04-25  4:00 ` Toon Moene
  2000-04-25  4:00   ` Leon Muratov
  2000-04-26  4:00 ` Massimiliano Fatica
  3 siblings, 1 reply; 54+ messages in thread
From: Toon Moene @ 2000-04-25  4:00 UTC (permalink / raw)


Leon Muratov wrote:

>  The program that I used performes some quantum-mechanical calculations
> and its size/execution time depends on the number of
> atoms. Hence, it can be used for different size calculations.

> Medium size system (about 40 Mb) Tru64 - 241 sec /  Linux 315 sec  (30%
> slower)
> Large system    (about 160 MB)  Tru64 - 1108 sec / Linux 1641 sec  (48%
> slower)

> I know about "page coloring" on Linux (Can somebody explain me what
> exactly does it
> mean - I can only guess)  But based on what I heard before, I expected
> 10-15% drop not 50%!
> Could it be something else that I missed?

I have already seen some pretty good questions to point at the
uncertainties you left us with in this request.

However, I can think of another:  You say "quantum-mechanical
calculations", but without telling us what the computations are, we're
not even sure we're looking at a "compiler" problem.

It might well be that the majority of the compute cycles are spend
inside routines for computing transcendentals ...

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://xena.eas.asu.edu/~andy (under construction)



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

* Re: Linux / Tru64 Fortran performance
  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
  1 sibling, 1 reply; 54+ messages in thread
From: James D. Freels @ 2000-04-25  4:00 UTC (permalink / raw)



Yes, I remember this well.  I was quite surprised.  In our limited
world running FORTRAN codes, we sort of miss the total picture right?
Actually if you ask folks like Microway, et al., their livelihood
depends on selling lots of Alpha boxes with FORTRAN.  

Please don't turn this into a FORTRAN vs C flame war.  However, if we
considered our number-crunching business a game, perhaps we could get
more funding for research!

A.Dergatchev@tn.utwente.nl (Andrei A. Dergatchev) writes:

> This phrase triggered my memories of a discussion here about
> one year ago, when Linus said:
> "... And I know that Fortran people think they are special. But the
> fact is that 99% of the worlds computing power (the part that isn't
> sitting idle,
>  that is), is used for other things. There's a hell of a lot more
> floating point being done on games than on atomic simulations, I bet. 



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

* Re: Linux / Tru64 Fortran performance
  2000-04-25  4:00 ` Toon Moene
@ 2000-04-25  4:00   ` Leon Muratov
  2000-04-25  4:00     ` Steven G. Kargl
                       ` (2 more replies)
  0 siblings, 3 replies; 54+ messages in thread
From: Leon Muratov @ 2000-04-25  4:00 UTC (permalink / raw)


In article <3905E6E5.B4E2DFF5@moene.indiv.nluug.nl>,
  Toon Moene <toon@moene.indiv.nluug.nl> wrote:
> Leon Muratov wrote:
>
> >  The program that I used performes some quantum-mechanical
calculations
> > and its size/execution time depends on the number of
> > atoms. Hence, it can be used for different size calculations.
>
> > Medium size system (about 40 Mb) Tru64 - 241 sec /  Linux 315 sec
(30%
> > slower)
> > Large system    (about 160 MB)  Tru64 - 1108 sec / Linux 1641 sec
(48%
> > slower)
>
> > I know about "page coloring" on Linux (Can somebody explain me what
> > exactly does it
> > mean - I can only guess)  But based on what I heard before, I
expected
> > 10-15% drop not 50%!
> > Could it be something else that I missed?
>
> I have already seen some pretty good questions to point at the
> uncertainties you left us with in this request.

Like what?
(Remember, the same computer)
>
> However, I can think of another:  You say "quantum-mechanical
> calculations", but without telling us what the computations are, we're
> not even sure we're looking at a "compiler" problem.
>
I did not say it was a compiler problem. Compilers are essentially the
same
COMPAQ. So it should be Linux/Tru64 differences.

> It might well be that the majority of the compute cycles are spend
> inside routines for computing transcendentals ...
So what? if I have to.

>
> --
> Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346
214290
> Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
> GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
> GNU Fortran 95: http://xena.eas.asu.edu/~andy (under construction)
>

I love when people point out obvious things.
My question was not about efficiency of my code. Compilers are almost
the same
(COMPAQ) ;  computer is the same... performance is SIGNIFICANTLY
different !


I can live with it,  we will buy Tru64 boxes and that is all, especially
since for
Universities Compaq/Difgital software is reasonably cheap.
I just want to understand why! But without spending the rest of my life
and loosing
my main job. I thought that this is a reason why have this user group.

So any ideas what can cause 50% slowdown on Linux?

And what can I do to figure it out before I erase Linux disk?

Best regards,
Leon


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



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

* Re: Linux / Tru64 Fortran performance
  2000-04-25  4:00   ` Leon Muratov
  2000-04-25  4:00     ` Steven G. Kargl
@ 2000-04-25  4:00     ` Dan Nagle
  2000-04-26  4:00     ` Emilio Lopes
  2 siblings, 0 replies; 54+ messages in thread
From: Dan Nagle @ 2000-04-25  4:00 UTC (permalink / raw)


Hello,

>>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<<

On 4/25/2000, 4:59:01 PM, Leon Muratov <lmuratov@my-deja.com> wrote 
regarding Re: Linux / Tru64 Fortran performance:

<snip>

> I did not say it was a compiler problem. Compilers are essentially the
> same
> COMPAQ. So it should be Linux/Tru64 differences.

Since you love it when people point out the obvious :-)

1. "essentially" the same?  Same code generator? Same release?
Same optimization switches?  Which mean the same thing to both
compiler configurations?

2.  Same libraries?  Same linker?

3.  Same swap file?  On the same disk?  In the same partition?
With the same degree of fragmentation?

If you want more substantial answers, please provide details
of the exact release of each compiler, libraries, linkers,
the configuration of the OS's and so on.

"To theorize in advance of the facts is the gravest of errors."
  -- Sherlock Holmes

Hopefully, this helps.

-- 
Cheers!

Dan Nagle, eMail: dnagle@erols.com
Purple Sage Computing Solutions, Inc.,
12142 Purple Sage Ct., Reston VA 20194







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

* Re: Linux / Tru64 Fortran performance
  2000-04-25  4:00   ` Leon Muratov
  2000-04-25  4:00     ` Steven G. Kargl
  2000-04-25  4:00     ` Dan Nagle
@ 2000-04-26  4:00     ` Emilio Lopes
  2000-04-26  4:00       ` Toon Moene
  2 siblings, 1 reply; 54+ messages in thread
From: Emilio Lopes @ 2000-04-26  4:00 UTC (permalink / raw)


Leon Muratov wrote:

> Toon Moene wrote:

> > However, I can think of another:  You say "quantum-mechanical
> > calculations", but without telling us what the computations are, we're
> > not even sure we're looking at a "compiler" problem.
> >
> > It might well be that the majority of the compute cycles are spend
> > inside routines for computing transcendentals ...

> So what? if I have to.

If that's the case, then the performance difference could be attributed
to different *libraries* and not to the compilers. I think that's what
Toon was trying to point out.

ECL.



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

* Re: Linux / Tru64 Fortran performance
  2000-04-25  4:00     ` Steven G. Kargl
@ 2000-04-26  4:00       ` Leon Muratov
  2000-04-29  4:00         ` Steve Lionel
                           ` (2 more replies)
  0 siblings, 3 replies; 54+ messages in thread
From: Leon Muratov @ 2000-04-26  4:00 UTC (permalink / raw)


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.



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

* Re: Linux / Tru64 Fortran performance
  2000-04-26  4:00     ` Emilio Lopes
@ 2000-04-26  4:00       ` Toon Moene
  0 siblings, 0 replies; 54+ messages in thread
From: Toon Moene @ 2000-04-26  4:00 UTC (permalink / raw)


Emilio Lopes wrote:
> 
> Leon Muratov wrote:
> 
> > Toon Moene wrote:
> 
> > > However, I can think of another:  You say "quantum-mechanical
> > > calculations", but without telling us what the computations are, we're
> > > not even sure we're looking at a "compiler" problem.
> > >
> > > It might well be that the majority of the compute cycles are spend
> > > inside routines for computing transcendentals ...
> 
> > So what? if I have to.
> 
> If that's the case, then the performance difference could be attributed
> to different *libraries* and not to the compilers. I think that's what
> Toon was trying to point out.

Yes, that's what I meant.  I saw Leon didn't talk about installing the
Compaq math library for Linux, so if his application *did* use a lot of
transcendentals, that could explain the speed difference.

However, later in this thread he explains that sin/cos/etc are not the
bottleneck in his computations, so that cause can be ruled out (however,
Steve Kargl's suggestion of using profiling information is on the mark,
too).

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://xena.eas.asu.edu/~andy (under construction)



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

* Re: Linux / Tru64 Fortran performance
  2000-04-24  4:00 Linux / Tru64 Fortran performance Leon Muratov
                   ` (2 preceding siblings ...)
  2000-04-25  4:00 ` Toon Moene
@ 2000-04-26  4:00 ` Massimiliano Fatica
  2000-06-18  4:00   ` Tom Sevy
  3 siblings, 1 reply; 54+ messages in thread
From: Massimiliano Fatica @ 2000-04-26  4:00 UTC (permalink / raw)


Have you tried to compile on the Tru64 (with -non_shared)
and then run the executable on Linux?
In this way, you will be sure that the difference is in the
OS and not in compiler optimization

Massimiliano

In article <8e29bb$7th$1@nnrp1.deja.com>, Leon Muratov 
<lmuratov@wvu.edu> wrote:

> I am completely bugged by the  results of my benchmarking of our
> XP1000-500MHz. We are considering of buying more alpha
> workstations and are trying to choose Linux or Tru64.
> 
>  The program that I used performes some quantum-mechanical calculations
> and its size/execution time depends on the number of
> atoms. Hence, it can be used for different size calculations.
> 
> I believe that for small systems Linux/Tru64 were on par, but I lost
> data
> and don't want to reboot computer for now.
> 
> Medium size system (about 40 Mb) Tru64 - 241 sec /  Linux 315 sec  (30%
> slower)
> Large system    (about 160 MB)  Tru64 - 1108 sec / Linux 1641 sec  (48%
> slower)
> 
> I was using the following compiling lines:
> LInux:       fort -r8 -fast -align dcommons  bnd.f
> Tru64 :     f77  -r8 -O bnd.f
> 
> I know about "page coloring" on Linux (Can somebody explain me what
> exactly does it
> mean - I can only guess)  But based on what I heard before, I expected
> 10-15% drop not 50%!
> Could it be something else that I missed?
> 
> 
> Sent via Deja.com http://www.deja.com/
> Before you buy.



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

* Re: Linux / Tru64 Fortran performance
  2000-04-25  4:00       ` James D. Freels
@ 2000-04-27  4:00         ` Charles Hixson
  0 siblings, 0 replies; 54+ messages in thread
From: Charles Hixson @ 2000-04-27  4:00 UTC (permalink / raw)


I feel nearly certain that the "gamers" use special libraries that are
hand-optimized for the expected run-time environments.  Say, they take
special advantage of MMX, VooDoo, etc.  And a lot the the code doesn't have
to be lossless (a few pixels can change slightly to, say, improve the
smoothness of background colors... the "loss" is no loss).  This isn't
exactly the typical problem being solved in Fortran.




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

* Re: Linux / Tru64 Fortran performance
  2000-04-26  4:00       ` Leon Muratov
  2000-04-29  4:00         ` Steve Lionel
@ 2000-04-29  4:00         ` Jochen K�pper
  2000-05-08  4:00         ` Eric Werme - replace nospam with werme
  2 siblings, 0 replies; 54+ messages in thread
From: Jochen K�pper @ 2000-04-29  4:00 UTC (permalink / raw)


Leon Muratov <lmuratov@my-deja.com> writes:

> > > So any ideas what can cause 50% slowdown on Linux?

Have you actually read the fort manuals ? I don't have them here at
home,  and I haven't looked in for a while, but IIRC there are some
optimizations of the Tru64 compiler not performed by Linux-fort !

Moreover, doesn't Tru64-f77/f90 perform feedback-optimization ? That
certainly isn't supported on Linux yet.

> > As already mentioned Tru64 has page coloring while linux
> > doesn't.  This can affect memory management which your
> > "benchmark" number suggest is the problem.

One really important thing - mentioned down the thread already - run
the same binary on both OS's - that shows you the OS's influence.

>   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.

Also look at the Compaq performance measurement tools for Linux, not
sure which are available, but there is more than (g)prof !

>   And if compilers are the same (as COMPAQ fortran group stated)

See fort manual.

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

Using what BLAS routines. Probablky the one from libcxml ;-?
Plain LAPACk with generic BLAS certainly is slower than libcxml, but
LAPACK on top of a fast vendor BLAS quite often is very fast - that
actually one reason for the design ;-)
I have (had ?) some code that worked faster with the generic LAPACK on
top of ATLAS BLAS than with libcxml ;-!
(last tested with an early beta of libcxml and ATLAS-2, IIRC.)

Jochen
-- 
http://www.Jochen-Kuepper.de

   Einigkeit und Recht und Freiheit
       Libert`e, `Egalit`e, Fraternit`e
           Sex, drugs and rock-n-roll



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

* Re: Linux / Tru64 Fortran performance
  2000-04-26  4:00       ` Leon Muratov
@ 2000-04-29  4:00         ` Steve Lionel
  2000-04-29  4:00           ` Toon Moene
  2000-05-08  4:00           ` Richard Simpson
  2000-04-29  4:00         ` Jochen K�pper
  2000-05-08  4:00         ` Eric Werme - replace nospam with werme
  2 siblings, 2 replies; 54+ messages in thread
From: Steve Lionel @ 2000-04-29  4:00 UTC (permalink / raw)


On Wed, 26 Apr 2000 14:35:01 GMT, Leon Muratov <lmuratov@my-deja.com>
wrote:

> And if compilers are the same (as COMPAQ fortran group stated)

I'm not aware that anyone from the Compaq Fortran group suggested any
such thing.

You said that the compilers you are using are:

> Compilers: UNIX DIGITAL Fortran 77 V5.1-156 (old)
> 	 LINUX (the latest Feb01 COMPAQ) from  cfal-1.0-7.alpha.rpm

These are certainly not the same compiler - the Linux compiler is
Fortran 95 and is some two years newer.  However, assuming that you
are compiling the SAME source with these two compilers, in general I
would expect the Linux compiler to generate better code, since it has
a code generator/optimizer several generations newer than the older
F77 compiler you are using.

Our own tests suggest that the performance advantage of Tru64 UNIX
over Linux that you are seeing is, while a bit more than we typically
see, not really out of line for some applications.  We typically see
20-35% for large applications.  I do think that the suggestion to
build a statically linked image on Tru64 and running it as a test on
Linux will produce useful data. (I am obligated to note that,
technically, doing this violates the terms of your Tru64 UNIX license
agreement, since it means you will be running OSF-licensed code (from
the Tru64 UNIX libraries) on a system not covered by a license from
OSF.)

Someone else mentioned profile-directed feedback and other
optimization tools.  I assume that you did not make use of these in
your runs on Tru64 UNIX - you have to explicitly ask for them.


Steve Lionel (mailto:Steve.Lionel@compaq.com)
Fortran Engineering
Compaq Computer Corporation, Nashua NH

Compaq Fortran web site: http://www.compaq.com/fortran



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

* Re: Linux / Tru64 Fortran performance
  2000-04-29  4:00         ` Steve Lionel
@ 2000-04-29  4:00           ` Toon Moene
  2000-05-08  4:00           ` Richard Simpson
  1 sibling, 0 replies; 54+ messages in thread
From: Toon Moene @ 2000-04-29  4:00 UTC (permalink / raw)


Steve Lionel wrote:

> I do think that the suggestion to
> build a statically linked image on Tru64 and running it as a test on
> Linux will produce useful data. (I am obligated to note that,
> technically, doing this violates the terms of your Tru64 UNIX license
> agreement, since it means you will be running OSF-licensed code (from
> the Tru64 UNIX libraries) on a system not covered by a license from
> OSF.)

And I am obliged to point out that this can only be true if and only if
you bought the machine *without* an OSF license to begin with.

I am still convinced, even given the (for Europeans) incomprehensible US
law on these matters, it is the case that if you buy two Alpha systems,
both with a Tru64 UNIX license, and - afterwards - you decide to use one
of them under Linux, you're *still* allowed to _run_ the executables you
produce on the machine running Tru64, on the machine running Linux.

But, IANAL.

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://xena.eas.asu.edu/~andy (under construction)



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

* Re: Linux / Tru64 Fortran performance
  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
  1 sibling, 1 reply; 54+ messages in thread
From: Richard Simpson @ 2000-05-08  4:00 UTC (permalink / raw)


Steve Lionel <Steve.Lionel@compaq.com> wrote:
: I do think that the suggestion to
: build a statically linked image on Tru64 and running it as a test on
: Linux will produce useful data. (I am obligated to note that,
: technically, doing this violates the terms of your Tru64 UNIX license
: agreement, since it means you will be running OSF-licensed code (from
: the Tru64 UNIX libraries) on a system not covered by a license from
: OSF.)

But, you have yourselves made your Tru64 libraries available free of charge
for Linux via the package which installs Tru64 Netscape!!

To quote from your web site
(http://www1.support.compaq.com/alpha-tools/dev-tools.html)

Netscape Browser. The Netscape browser RPM we include is the Tru64
UNIX Netscape Communicator V4.7 kit bundled
with the Tru64 libraries that enable the browser to work on Alpha Linux.

Obviously, IANAL, but this gives the clear impression that you are happy for
people to run Tru64 binaries on their Linux systems. 

-- 
----------------------------------------------------------------------------

Richard Simpson
Farnborough, Hants, Uk                 Fax: 01252 392118
rsimpson@ewrcsdra.Cut_This_Out.demon.co.uk

I am not aware of any views shared by myself and my employers.



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

* Re: Linux / Tru64 Fortran performance
  2000-04-25  4:00     ` Andrei A. Dergatchev
  2000-04-25  4:00       ` James D. Freels
@ 2000-05-08  4:00       ` Carlos
  2000-05-08  4:00         ` Andrei A. Dergatchev
  1 sibling, 1 reply; 54+ messages in thread
From: Carlos @ 2000-05-08  4:00 UTC (permalink / raw)


In article <3905b470.429481855@news.nic.utwente.nl>,
Andrei A. Dergatchev <A.Dergatchev@tn.utwente.nl> wrote:
>[Probably OT for clf - I'm not sure]
>This phrase triggered my memories of a discussion here about
>one year ago, when Linus said:
>"... And I know that Fortran people think they are special. But the
>fact is that 99% of the worlds computing power (the part that isn't
>sitting idle,
> that is), is used for other things. There's a hell of a lot more
>floating point being done on games than on atomic simulations, I bet. 

Sure, but I bet those games are not running on an Alpha and I bet the
machine is not running Linux... So, what is the point?

Carlos



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

* Re: Linux / Tru64 Fortran performance
  2000-04-26  4:00       ` Leon Muratov
  2000-04-29  4:00         ` Steve Lionel
  2000-04-29  4:00         ` Jochen K�pper
@ 2000-05-08  4:00         ` Eric Werme - replace nospam with werme
  2 siblings, 0 replies; 54+ messages in thread
From: Eric Werme - replace nospam with werme @ 2000-05-08  4:00 UTC (permalink / raw)


Leon Muratov <lmuratov@my-deja.com> writes:

>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.

>However, I was under impression that cache management is done mainly by
>hardware.

I haven't read the papers on page coloring and whatnot, and my area
of expertise leaves me in a position where I don't have to worry
about too much cache management.  (It means I only have to think
about it every day, rather than every hour!)

Without getting technical, and without saying anything Alpha specific
(because I'd have to RTFM), consider an address, say 1234000.  If you
access it, it will be loaded in the cache.  Not anywhere in the cache,
but in one of a few cells that can be used for addresses that end in 000.
Suppose you have other data at 2345000, 3456000, and 4567000.  All
those would also contend for the same cache locations.  Some systems
can keep all four in the cache, some can't.  I think the early Alpha
chips could keep two of them, I think current ones can handle four.

On the other hand, if you addresses were 1234000, 2345100, 3456200, and
4567300, each could fit in the cache without contention.

The Tru64 VM system tries to achieve the latter.  It may do it by restricting
physical pages to particular virtual addresses, I'm just not sure.  Sorry.

At any rate, given the disparity in speed between CPU and memory, it's
really important to spread the cache load throughout the cache and
avoid hotspots along the way.

Do it wrong and a 50% performance hit is quite believable.

There are a lot of Tru64 tools to help study cache performance on Alphas.
Check some of the performance tuning manuals, check man pages for
pfm, prof, pixie, etc.

If you look at profile runs at the instruction level you can often
see stunning delays mixed in with instructions that fly like the
wind.

Bottom line: cache is king.
--
<>    Eric (Ric) Werme    <> The above is unlikely to contain    <>
<>    ROT-13 addresses:   <> official claims or policies of      <>
<>   <jrezr@mx3.qrp.pbz>  <> Compaq Computer Corp.               <>
<>  <jrezr@zrqvnbar.arg>  <> http://people.ne.mediaone.net/werme <>



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

* Re: Linux / Tru64 Fortran performance
  2000-05-08  4:00       ` Carlos
@ 2000-05-08  4:00         ` Andrei A. Dergatchev
  0 siblings, 0 replies; 54+ messages in thread
From: Andrei A. Dergatchev @ 2000-05-08  4:00 UTC (permalink / raw)


[clf trimmed]

[...]
>Sure, but I bet those games are not running on an Alpha and I bet the
>machine is not running Linux... So, what is the point?
>
>Carlos

http://x43.deja.com/[ST_rn=ps]/viewthread.xp?AN=620732916&search=thread&svcclass=dnyr&ST=PS&CONTEXT=957820259.896860178&HIT_CONTEXT=957820259.896860178&HIT_NUM=0&recnum=%3c8f6sng$8c7$1@piazzolla.physics.missouri.edu%3e%231/1&group=comp.lang.fortran&frpage=getdoc.xp&back=clarinet

If you read this thread from the beginning, you know that
the discussion was started from the phrase
"But what bugs me a lot, is a lack of interest to "Fortran"
 problems in Linux community."

You might be perfectly correct that *the reason* for "the
lack of interest" isn't relevant to the speed of Fortran
code under AlphaLinux, but the point was to _mention_
one (reason), and subsequent decision of Linus.

Rgds,

Andrei



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

* Re: Linux / Tru64 Fortran performance
  2000-05-08  4:00           ` Richard Simpson
@ 2000-05-08  4:00             ` Andrei A. Dergatchev
  0 siblings, 0 replies; 54+ messages in thread
From: Andrei A. Dergatchev @ 2000-05-08  4:00 UTC (permalink / raw)


On Mon, 8 May 2000 17:24:51 +0100, Richard Simpson
<rsimpson@ewrcsdra.CutThisOut.demon.co.uk> wrote:

>Steve Lionel <Steve.Lionel@compaq.com> wrote:
>: I do think that the suggestion to
>: build a statically linked image on Tru64 and running it as a test on
>: Linux will produce useful data. (I am obligated to note that,
>: technically, doing this violates the terms of your Tru64 UNIX license
>: agreement, since it means you will be running OSF-licensed code (from
>: the Tru64 UNIX libraries) on a system not covered by a license from
>: OSF.)
>
>But, you have yourselves made your Tru64 libraries available free of charge
>for Linux via the package which installs Tru64 Netscape!!

Duh ! Why did you say it, now they will remove them :-(

;-)

>-- 
>----------------------------------------------------------------------------
>
>Richard Simpson
>Farnborough, Hants, Uk                 Fax: 01252 392118
>rsimpson@ewrcsdra.Cut_This_Out.demon.co.uk
>
>I am not aware of any views shared by myself and my employers.

Andrei



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

* Re: Linux / Tru64 Fortran performance
  2000-04-26  4:00 ` Massimiliano Fatica
@ 2000-06-18  4:00   ` Tom Sevy
  2000-06-19  4:00     ` Greg Lindahl
                       ` (2 more replies)
  0 siblings, 3 replies; 54+ messages in thread
From: Tom Sevy @ 2000-06-18  4:00 UTC (permalink / raw)


Also, I don't think I saw anyone address the benefit of using a 64-bit OS
and 64-bit Compiler vs. 32-bit OS and 32-bit Compiler.
"Massimiliano Fatica" <fatica@ctr.stanford.edu> wrote in message
news:fatica-08BA44.19352926042000@nntp.stanford.edu...
> Have you tried to compile on the Tru64 (with -non_shared)
> and then run the executable on Linux?
> In this way, you will be sure that the difference is in the
> OS and not in compiler optimization
>
> Massimiliano
>
> In article <8e29bb$7th$1@nnrp1.deja.com>, Leon Muratov
> <lmuratov@wvu.edu> wrote:
>
> > I am completely bugged by the  results of my benchmarking of our
> > XP1000-500MHz. We are considering of buying more alpha
> > workstations and are trying to choose Linux or Tru64.
> >
> >  The program that I used performes some quantum-mechanical calculations
> > and its size/execution time depends on the number of
> > atoms. Hence, it can be used for different size calculations.
> >
> > I believe that for small systems Linux/Tru64 were on par, but I lost
> > data
> > and don't want to reboot computer for now.
> >
> > Medium size system (about 40 Mb) Tru64 - 241 sec /  Linux 315 sec  (30%
> > slower)
> > Large system    (about 160 MB)  Tru64 - 1108 sec / Linux 1641 sec  (48%
> > slower)
> >
> > I was using the following compiling lines:
> > LInux:       fort -r8 -fast -align dcommons  bnd.f
> > Tru64 :     f77  -r8 -O bnd.f
> >
> > I know about "page coloring" on Linux (Can somebody explain me what
> > exactly does it
> > mean - I can only guess)  But based on what I heard before, I expected
> > 10-15% drop not 50%!
> > Could it be something else that I missed?
> >
> >
> > Sent via Deja.com http://www.deja.com/
> > Before you buy.





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

* Re: Linux / Tru64 Fortran performance
  2000-06-18  4:00   ` Tom Sevy
  2000-06-19  4:00     ` Greg Lindahl
@ 2000-06-19  4:00     ` Steve Lionel
  2000-06-19  4:00     ` Serguei Patchkovskii
  2 siblings, 0 replies; 54+ messages in thread
From: Steve Lionel @ 2000-06-19  4:00 UTC (permalink / raw)


"Tom Sevy" <tsevy@nospam.echeck.com> wrote in message
news:8ijq6c$o0q$1@grendel.conectiv.net...
> Also, I don't think I saw anyone address the benefit of using a 64-bit OS
> and 64-bit Compiler vs. 32-bit OS and 32-bit Compiler.

Both Tru64 UNIX and Linux Alpha are 64-bit platforms with a 64-bit OS and
compilers.

Steve Lionel
Compaq Fortran Engineering
http://www.compaq.com/fortran







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

* Re: Linux / Tru64 Fortran performance
  2000-06-18  4:00   ` Tom Sevy
@ 2000-06-19  4:00     ` Greg Lindahl
  2000-06-19  4:00     ` Steve Lionel
  2000-06-19  4:00     ` Serguei Patchkovskii
  2 siblings, 0 replies; 54+ messages in thread
From: Greg Lindahl @ 2000-06-19  4:00 UTC (permalink / raw)


"Tom Sevy" <tsevy@nospam.echeck.com> writes:

> Also, I don't think I saw anyone address the benefit of using a 64-bit OS
> and 64-bit Compiler vs. 32-bit OS and 32-bit Compiler.

Both Linux and Tru64 are 64 bit OSes on the Alpha, and folks use the
same compilers on both.

-- g



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

* Re: Linux / Tru64 Fortran performance
  2000-06-18  4:00   ` Tom Sevy
  2000-06-19  4:00     ` Greg Lindahl
  2000-06-19  4:00     ` Steve Lionel
@ 2000-06-19  4:00     ` Serguei Patchkovskii
  2000-06-19  4:00       ` W Bauske
                         ` (2 more replies)
  2 siblings, 3 replies; 54+ messages in thread
From: Serguei Patchkovskii @ 2000-06-19  4:00 UTC (permalink / raw)


Tom Sevy (tsevy@nospam.echeck.com) wrote:
: Also, I don't think I saw anyone address the benefit of using a 64-bit OS
: and 64-bit Compiler vs. 32-bit OS and 32-bit Compiler.

Using a 64-bit (or n-bit, for any value of n) compiler and OS does not 
confer a performance advantage *by itself*. For some problems, 64-bit
addressing and/or efficient support for 64-bit integers may help; for
others it may hurt, by decreasing the amount of (larger) data items 
fitting into cache; and for many problems limited by floating point
calculations 64-bits vs. 32-bits makes no difference at all.

In this respect, it is quite interesting to look at the optimization
flags used in vendor's SPEC submissions: In the Compaq DS20 peak SpecFp
submission, two (out of 14) tests were compiled with -taso flag, 
effectively making pointers 32-bit in size. For the SpecInt submission,
-taso was used three times (out of 12). I do not think Compaq would
have used it unless it helped performance ;-)

/Serge.P

--
home page: http://www.cobalt.chem.ucalgary.ca/ps/



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

* Re: Linux / Tru64 Fortran performance
  2000-06-19  4:00     ` Serguei Patchkovskii
@ 2000-06-19  4:00       ` W Bauske
  2000-06-19  4:00         ` Toon Moene
                           ` (2 more replies)
  2000-06-19  4:00       ` Steve Lionel
  2000-06-20  4:00       ` Jan Vorbrueggen
  2 siblings, 3 replies; 54+ messages in thread
From: W Bauske @ 2000-06-19  4:00 UTC (permalink / raw)


Serguei Patchkovskii wrote:
> 
> In this respect, it is quite interesting to look at the optimization
> flags used in vendor's SPEC submissions: In the Compaq DS20 peak SpecFp
> submission, two (out of 14) tests were compiled with -taso flag,
> effectively making pointers 32-bit in size. For the SpecInt submission,
> -taso was used three times (out of 12). I do not think Compaq would
> have used it unless it helped performance ;-)
> 

Alternatively, the code is poorly written and it won't run 
without forcing pointers to 32 bit, like some fool programmer 
tries putting a pointer in an int.


Wes



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

* Re: Linux / Tru64 Fortran performance
  2000-06-19  4:00       ` W Bauske
@ 2000-06-19  4:00         ` Toon Moene
  2000-06-19  4:00           ` W Bauske
  2000-06-20  4:00           ` SPEC CFP2000 Fortran declarations Jan Vorbrueggen
  2000-06-20  4:00         ` Linux / Tru64 Fortran performance Jan Vorbrueggen
  2000-06-20  4:00         ` Greg Lindahl
  2 siblings, 2 replies; 54+ messages in thread
From: Toon Moene @ 2000-06-19  4:00 UTC (permalink / raw)


W Bauske wrote:

> Serguei Patchkovskii wrote:

> > In this respect, it is quite interesting to look at the optimization
> > flags used in vendor's SPEC submissions: In the Compaq DS20 peak SpecFp
> > submission, two (out of 14) tests were compiled with -taso flag,
> > effectively making pointers 32-bit in size. For the SpecInt submission,
> > -taso was used three times (out of 12). I do not think Compaq would
> > have used it unless it helped performance ;-)

> Alternatively, the code is poorly written and it won't run
> without forcing pointers to 32 bit, like some fool programmer
> tries putting a pointer in an int.

Is that true, even for SPEC2000 ?  On the comp-fortran-90 mailing list
we noticed, when discussing a SPEC2000 Fortran entry, that apparently:

      INTEGER(8)

slipped through.  Hardly a Standard way of specifying a certain size
INTEGER ...

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://g95.sourceforge.net/ (under construction)



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

* Re: Linux / Tru64 Fortran performance
  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           ` SPEC CFP2000 Fortran declarations Jan Vorbrueggen
  1 sibling, 1 reply; 54+ messages in thread
From: W Bauske @ 2000-06-19  4:00 UTC (permalink / raw)


Toon Moene wrote:
> 
> W Bauske wrote:
> 
> > Serguei Patchkovskii wrote:
> 
> > > In this respect, it is quite interesting to look at the optimization
> > > flags used in vendor's SPEC submissions: In the Compaq DS20 peak SpecFp
> > > submission, two (out of 14) tests were compiled with -taso flag,
> > > effectively making pointers 32-bit in size. For the SpecInt submission,
> > > -taso was used three times (out of 12). I do not think Compaq would
> > > have used it unless it helped performance ;-)
> 
> > Alternatively, the code is poorly written and it won't run
> > without forcing pointers to 32 bit, like some fool programmer
> > tries putting a pointer in an int.
> 
> Is that true, even for SPEC2000 ?  On the comp-fortran-90 mailing list
> we noticed, when discussing a SPEC2000 Fortran entry, that apparently:
> 
>       INTEGER(8)
> 
> slipped through.  Hardly a Standard way of specifying a certain size
> INTEGER ...
> 

My point is taso is usually set to fix a code problem,
at least in my experience. Also, it would depend on what
a compiler considers the sizeof(int). If the compiler 
considers that equal to sizeof(void *), the code would
not fail but at least on Alphas I use (Linux) an int is
4 bytes and a pointer is 8 bytes and that is also true
of Tru64 last I heard(I don't use it much).

I don't plan on shelling out $500 to get the source
code to confirm the reason for that flag since I use 
my own codes for serious benchmarking. Anyone who already
has it and an Alpha could run without the flag to see
what happens. Actually, Linux Alpha doesn't even have the
option so it would have to be on Tru64 I guess.


Wes



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

* Re: Linux / Tru64 Fortran performance
  2000-06-19  4:00     ` Serguei Patchkovskii
  2000-06-19  4:00       ` W Bauske
@ 2000-06-19  4:00       ` Steve Lionel
  2000-06-20  4:00         ` W Bauske
  2000-06-20  4:00       ` Jan Vorbrueggen
  2 siblings, 1 reply; 54+ messages in thread
From: Steve Lionel @ 2000-06-19  4:00 UTC (permalink / raw)


"Serguei Patchkovskii" <patchkov@acs1.acs.ucalgary.ca> wrote in message
news:8ik3ek$1bj2$1@nserve1.acs.ucalgary.ca...

> In this respect, it is quite interesting to look at the optimization
> flags used in vendor's SPEC submissions: In the Compaq DS20 peak SpecFp
> submission, two (out of 14) tests were compiled with -taso flag,
> effectively making pointers 32-bit in size. For the SpecInt submission,
> -taso was used three times (out of 12). I do not think Compaq would
> have used it unless it helped performance ;-)

I asked our SPEC guru about this and he replied that Serguei was "reading my
SPEC submissions correctly."

A program which "fits" in a 32-bit address space will, in many cases, run
somewhat faster on a 32-bit OS than on a 64-bit OS.  The 64-bit advantage
kicks in when the problem size causes you to need that 33rd bit, as more and
more applications are finding.

Steve Lionel
Compaq Fortran Engineering
http://www.compaq.com/fortran






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

* Re: Linux / Tru64 Fortran performance
  2000-06-19  4:00           ` W Bauske
@ 2000-06-19  4:00             ` Serguei Patchkovskii
  2000-06-20  4:00               ` James Cownie
  2000-06-20  4:00               ` W Bauske
  0 siblings, 2 replies; 54+ messages in thread
From: Serguei Patchkovskii @ 2000-06-19  4:00 UTC (permalink / raw)


W Bauske (wsb@paralleldata.com) wrote:
: My point is taso is usually set to fix a code problem,
: at least in my experience. Also, it would depend on what

Well, this may be true in *your* experience, but it is not true
in this particular case of SPEC2k submission by Compaq: the baseline
results are reported without -taso - which necessarily implies that 
the code is 64-bit clean. Please see:

http://www.specbench.org/osg/cpu2000/results/res1999q4/cpu2000-19991130-00013.asc

/Serge.P

--
home page: http://www.cobalt.chem.ucalgary.ca/ps/



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

* Re: Linux / Tru64 Fortran performance
  2000-06-19  4:00       ` Steve Lionel
@ 2000-06-20  4:00         ` W Bauske
  2000-06-20  4:00           ` W Bauske
  0 siblings, 1 reply; 54+ messages in thread
From: W Bauske @ 2000-06-20  4:00 UTC (permalink / raw)


Steve Lionel wrote:
> 
> I asked our SPEC guru about this and he replied that Serguei was "reading my
> SPEC submissions correctly."
> 
> A program which "fits" in a 32-bit address space will, in many cases, run
> somewhat faster on a 32-bit OS than on a 64-bit OS.  The 64-bit advantage
> kicks in when the problem size causes you to need that 33rd bit, as more and
> more applications are finding.
> 

Interesting then that MOST of the SPEC2K programs don't have
that flag. That would imply for many applications, it's
not worth bothering with. I'm sure for some unusual cases,
taso will make a difference. Just most folks won't see
any value to it unless they have that programming bug I
mentioned earlier. I must be one of those "most folks".

I suspect all the programs qualify as fitting in 2GB alone so 
that can't be the only factor. Most likely, it's programs
that use horrendous amounts of pointers where halving the memory
consumed by them is an advantage. Not something I think most
FORTRAN types would worry about. Note also that the SPEC2K
programs that use taso are all C, not FORTRAN.


Wes



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

* Re: Linux / Tru64 Fortran performance
  2000-06-20  4:00         ` W Bauske
@ 2000-06-20  4:00           ` W Bauske
  2000-06-20  4:00             ` Toon Moene
  0 siblings, 1 reply; 54+ messages in thread
From: W Bauske @ 2000-06-20  4:00 UTC (permalink / raw)


W Bauske wrote:
> 
> I suspect all the programs qualify as fitting in 2GB alone so
> that can't be the only factor. Most likely, it's programs
> that use horrendous amounts of pointers where halving the memory
> consumed by them is an advantage. Not something I think most
> FORTRAN types would worry about. Note also that the SPEC2K
> programs that use taso are all C, not FORTRAN.
> 

A followup. The SPEC2K HW req's say all you need is 256MB of
memory. How about halving the pointer memory consumption effects
cache hit rates and that's where the speedup comes from. Again
that would only happen on programs with overwhelming quantities
of pointers, most likely not a FORTRAN problem although I'm
sure someone could generate FORTRAN that exhibits the problem
if they tried real hard. 


Wes



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

* Re: Linux / Tru64 Fortran performance
  2000-06-19  4:00       ` W Bauske
  2000-06-19  4:00         ` Toon Moene
@ 2000-06-20  4:00         ` Jan Vorbrueggen
  2000-06-20  4:00         ` Greg Lindahl
  2 siblings, 0 replies; 54+ messages in thread
From: Jan Vorbrueggen @ 2000-06-20  4:00 UTC (permalink / raw)


W Bauske <wsb@paralleldata.com> writes:

> > In this respect, it is quite interesting to look at the optimization
> > flags used in vendor's SPEC submissions: In the Compaq DS20 peak SpecFp
> > submission, two (out of 14) tests were compiled with -taso flag,
> > effectively making pointers 32-bit in size. For the SpecInt submission,
> > -taso was used three times (out of 12). I do not think Compaq would
> > have used it unless it helped performance ;-)
> 
> Alternatively, the code is poorly written and it won't run 
> without forcing pointers to 32 bit, like some fool programmer 
> tries putting a pointer in an int.

Then it would be a portability flag, and not counted toward the total of four
baseline flags, as well as being mentioned in a seperate section of the notes.
Most of the non-x86 systems nowadays are 64-bit, albeit with different C models
for that.

	Jan



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

* Re: Linux / Tru64 Fortran performance
  2000-06-19  4:00     ` Serguei Patchkovskii
  2000-06-19  4:00       ` W Bauske
  2000-06-19  4:00       ` Steve Lionel
@ 2000-06-20  4:00       ` Jan Vorbrueggen
  2 siblings, 0 replies; 54+ messages in thread
From: Jan Vorbrueggen @ 2000-06-20  4:00 UTC (permalink / raw)


patchkov@acs1.acs.ucalgary.ca (Serguei Patchkovskii) writes:

> In this respect, it is quite interesting to look at the optimization
> flags used in vendor's SPEC submissions: In the Compaq DS20 peak SpecFp
> submission, two (out of 14) tests were compiled with -taso flag, 
> effectively making pointers 32-bit in size. For the SpecInt submission,
> -taso was used three times (out of 12). I do not think Compaq would
> have used it unless it helped performance ;-)

Don't underestimate the force of habit (hi John 8-)).

	Jan



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

* SPEC CFP2000 Fortran declarations
  2000-06-19  4:00         ` Toon Moene
  2000-06-19  4:00           ` W Bauske
@ 2000-06-20  4:00           ` Jan Vorbrueggen
  2000-06-20  4:00             ` Toon Moene
  2000-06-20  4:00             ` McCalpin
  1 sibling, 2 replies; 54+ messages in thread
From: Jan Vorbrueggen @ 2000-06-20  4:00 UTC (permalink / raw)


Toon Moene <toon@moene.indiv.nluug.nl> writes:

> On the comp-fortran-90 mailing list
> we noticed, when discussing a SPEC2000 Fortran entry, that apparently:
> 
>       INTEGER(8)
> 
> slipped through.  Hardly a Standard way of specifying a certain size
> INTEGER ...

You'll notice something similar in facerec, where all REALs are declared as
REAL(4). Initially, all INTEGERs where INTEGER(4) as well...until that lead to
some problems with the Cray compiler (for which default types are equivalent
to KIND=8). In part, this is due to my inexperience with F90's KIND system
when writing the code. Also, SPEC had enough problems sorting out the various
portability and correctness issues (including catering to compilers with
borderline cases of optimitis) than to write and enforce a style guide for the
three languages involved - that's how I see it from the outside as a concerned
party, as it were.

When confronted with this issue, the CPU subcommittee agreed with leaving
the REAL declaration as is, making all integers of default type, and inserting
some explicit type conversions and constant kind declarations where necessary.
This is a thorny issue due to the implicit and varying actual type the default
types are mapped to. Also, I think there is only one compiler on the market
that uses KIND=<log2 (length in bytes)> instead of the usual KIND=<length in
bytes>, and its vendor is not represented in SPEC (not that that matters any).

	Jan



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

* Re: Linux / Tru64 Fortran performance
  2000-06-19  4:00             ` Serguei Patchkovskii
  2000-06-20  4:00               ` James Cownie
@ 2000-06-20  4:00               ` W Bauske
  2000-06-25  4:00                 ` Jeff Sturm
  1 sibling, 1 reply; 54+ messages in thread
From: W Bauske @ 2000-06-20  4:00 UTC (permalink / raw)


Serguei Patchkovskii wrote:
> 
> W Bauske (wsb@paralleldata.com) wrote:
> : My point is taso is usually set to fix a code problem,
> : at least in my experience. Also, it would depend on what
> 
> Well, this may be true in *your* experience, but it is not true
> in this particular case of SPEC2k submission by Compaq: the baseline
> results are reported without -taso - which necessarily implies that
> the code is 64-bit clean. 
> 

The SPEC2K code is apparently 64 bit clean. Wonderful. As I 
suggested previously, there are other, more likely uses for that 
particular flag.

The benchmarks that use taso though are C, and the title of this 
thread doesn't ask about C performance so your SPEC2K example, 
while amusing, doesn't apply unless the FORTRAN progam under 
question, happens to use lots of pointers. Since I didn't
write it, I'll defer to the author of the code to decide if the
taso flag is useful in his case.

Back to the original question.

It would probably be useful to use profiling tools to determine
exactly what portion of the code is hogging cpu cycles so that
one can look at the offending code to see what it's problem is.
Things like gprof come to mind. At least then you'll have some
understanding of where to look. The idea of statically linking
under Tru64 and running on Linux is also a good idea as mentioned
previously. The linux-kernel mailing list has a fair discussion 
of page coloring and patches floating around from folks working 
on it. Also, there was a math library problem discussed recently
where the library was generating huge volumes of minor page faults.
You might want to do "time bnd" and see if that's hitting you.
Look for many thousands of minor faults.


Wes



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

* Re: Linux / Tru64 Fortran performance
  2000-06-19  4:00             ` Serguei Patchkovskii
@ 2000-06-20  4:00               ` James Cownie
  2000-06-20  4:00               ` W Bauske
  1 sibling, 0 replies; 54+ messages in thread
From: James Cownie @ 2000-06-20  4:00 UTC (permalink / raw)


Serguei Patchkovskii wrote:

> Well, this may be true in *your* experience, but it is not true
> in this particular case of SPEC2k submission by Compaq: the baseline
> results are reported without -taso - which necessarily implies that
> the code is 64-bit clean. Please see:
> 
> http://www.specbench.org/osg/cpu2000/results/res1999q4/cpu2000-19991130-00013.asc
> 

Surely the reason for using -taso on C pointer heavy code is that 
when they are holding pointers, it effectively doubles the size of your caches.
(i.e. they can hold twice as many pointers as they could before).

I'll shut up now, since this is a Fortran news group !

-- Jim 

James Cownie	<jcownie@etnus.com>
Etnus, Inc.     +44 117 9071438
http://www.etnus.com



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

* Re: SPEC CFP2000 Fortran declarations
  2000-06-20  4:00           ` SPEC CFP2000 Fortran declarations Jan Vorbrueggen
  2000-06-20  4:00             ` Toon Moene
@ 2000-06-20  4:00             ` McCalpin
  2000-06-20  4:00               ` Jan Vorbrueggen
  1 sibling, 1 reply; 54+ messages in thread
From: McCalpin @ 2000-06-20  4:00 UTC (permalink / raw)


In article <y4snu824il.fsf_-_@mailhost.neuroinformatik.ruhr-uni-bochum.de>,
Jan Vorbrueggen  <jan@mailhost.neuroinformatik.ruhr-uni-bochum.de> wrote:
>Toon Moene <toon@moene.indiv.nluug.nl> writes:
>
>> On the comp-fortran-90 mailing list
>> we noticed, when discussing a SPEC2000 Fortran entry, that apparently:
>> 
>>       INTEGER(8)
>> 
>> slipped through.  Hardly a Standard way of specifying a certain size
>> INTEGER ...
>
> [...]
>
>When confronted with this issue, the CPU subcommittee agreed with leaving
>the REAL declaration as is, making all integers of default type, and inserting
>some explicit type conversions and constant kind declarations where necessary.
>This is a thorny issue due to the implicit and varying actual type the default
>types are mapped to. Also, I think there is only one compiler on the market
>that uses KIND=<log2 (length in bytes)> instead of the usual KIND=<length in
>bytes>, and its vendor is not represented in SPEC (not that that matters any).

This is certainly perverse, since the standards committee went out of its
way to both:
	* declare that specific values for KIND were not portable
	* provide a mechanism to generate values for KIND in a portable way

Now it is true that the mechanism provided is verbose, but it is portable.
Just go look up SELECTED_REAL_KIND() and SELECTED_INT_KIND().
-- 
John D. McCalpin, Ph.D.           mccalpin@austin.ibm.com
Senior Scientist           IBM POWER Microprocessor Development
    "I am willing to make mistakes as long as
     someone else is willing to learn from them."



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

* Re: SPEC CFP2000 Fortran declarations
  2000-06-20  4:00             ` McCalpin
@ 2000-06-20  4:00               ` Jan Vorbrueggen
  2000-06-20  4:00                 ` McCalpin
  0 siblings, 1 reply; 54+ messages in thread
From: Jan Vorbrueggen @ 2000-06-20  4:00 UTC (permalink / raw)


mccalpin@gmp246.austin.ibm.com (McCalpin) writes:

> This is certainly perverse, since the standards committee went out of its
> way to both:
> 	* declare that specific values for KIND were not portable
> 	* provide a mechanism to generate values for KIND in a portable way
> 
> Now it is true that the mechanism provided is verbose, but it is portable.
> Just go look up SELECTED_REAL_KIND() and SELECTED_INT_KIND().

Who do you think is perverse - me, or the SPEC CPU subcommittee? Just a
request for clarification...

The issue turned up pretty late in the process, when other issues were more
pressing. There was a certain desire to disturb the code as little as
possible. In fact, that facerec is MODULEarized at all is the result of a
different portability problem, and that I had - with some help by
comp.lang.fortran - finally understood how to make (some) use of MODULEs.
Not enough to get the SELECTED...KIND right, though.

I have the impression - without having looked at the source on my disk in
any detail - that the other Fortran codes are even less "clean" - given that
most are adapted from applications developed years ago, that is no wonder.

	Jan



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

* Re: Linux / Tru64 Fortran performance
  2000-06-20  4:00           ` W Bauske
@ 2000-06-20  4:00             ` Toon Moene
  0 siblings, 0 replies; 54+ messages in thread
From: Toon Moene @ 2000-06-20  4:00 UTC (permalink / raw)


W Bauske wrote:

> A followup. The SPEC2K HW req's say all you need is 256MB of
> memory. How about halving the pointer memory consumption effects
> cache hit rates and that's where the speedup comes from.

Indeed - that's why you want -taso for the compilation of the gcc (chock
full of pointers) benchmark of SPEC - both 95 and 2K.

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://g95.sourceforge.net/ (under construction)



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

* Re: SPEC CFP2000 Fortran declarations
  2000-06-20  4:00           ` SPEC CFP2000 Fortran declarations Jan Vorbrueggen
@ 2000-06-20  4:00             ` Toon Moene
  2000-06-21  4:00               ` Jan Vorbrueggen
  2000-06-20  4:00             ` McCalpin
  1 sibling, 1 reply; 54+ messages in thread
From: Toon Moene @ 2000-06-20  4:00 UTC (permalink / raw)


Jan Vorbrueggen wrote:
> 
> Toon Moene <toon@moene.indiv.nluug.nl> writes:
> 
> > On the comp-fortran-90 mailing list
> > we noticed, when discussing a SPEC2000 Fortran entry, that apparently:
> >
> >       INTEGER(8)
> >
> > slipped through.  Hardly a Standard way of specifying a certain size
> > INTEGER ...
> 
> You'll notice something similar in facerec,

I *was* refering to your code, but wanted to offer you the choice of
replying or not ...

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://g95.sourceforge.net/ (under construction)



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

* Re: SPEC CFP2000 Fortran declarations
  2000-06-20  4:00               ` Jan Vorbrueggen
@ 2000-06-20  4:00                 ` McCalpin
  0 siblings, 0 replies; 54+ messages in thread
From: McCalpin @ 2000-06-20  4:00 UTC (permalink / raw)


In article <y44s6o2wap.fsf@mailhost.neuroinformatik.ruhr-uni-bochum.de>,
Jan Vorbrueggen  <jan@mailhost.neuroinformatik.ruhr-uni-bochum.de> wrote:
>mccalpin@gmp246.austin.ibm.com (McCalpin) writes:
>
>> This is certainly perverse, since the standards committee went out of its
>> way to both:
>> 	* declare that specific values for KIND were not portable
>> 	* provide a mechanism to generate values for KIND in a portable way
>> 
>> Now it is true that the mechanism provided is verbose, but it is portable.
>> Just go look up SELECTED_REAL_KIND() and SELECTED_INT_KIND().
>
>Who do you think is perverse - me, or the SPEC CPU subcommittee? Just a
>request for clarification...

As a member of the SPEC CPU committee, I have first-hand experience in
the perverseness of this particular group.  (Though I was not on the committee
when this issue was being worked on.)

"Perverse" was probably not the best word.   The standards committee that 
created the Fortran90 language (X3J3) worked really hard to create a portable
way of specifying precision.  They recognized the dangers of "partial
standardization" (which is pretty much what has happened), but were unable
to craft a set of rules that would discourage it strongly enough....

I expected that vendors would also recognize those dangers and try harder
to make the new utilities easy to use.  The present situation encourages
people to use non-standard features without realizing that they are non-
standard, and I suspect that in the long run this is more expensive for
everyone....

So, to answer your question, it is the vendors who are perverse for exposing
implementation-dependent constants to the customers and thus implying that
there is some degree of portability in the use of these constants.  My own
employer is guilty of this as well, at least in the XLF Fortran v6.1 Reference
Manual that I just looked this up in....
-- 
John D. McCalpin, Ph.D.           mccalpin@austin.ibm.com
Senior Scientist           IBM POWER Microprocessor Development
    "I am willing to make mistakes as long as
     someone else is willing to learn from them."



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

* Re: Linux / Tru64 Fortran performance
  2000-06-19  4:00       ` W Bauske
  2000-06-19  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
  2 siblings, 1 reply; 54+ messages in thread
From: Greg Lindahl @ 2000-06-20  4:00 UTC (permalink / raw)


W Bauske <wsb@paralleldata.com> writes:

> Alternatively, the code is poorly written and it won't run 
> without forcing pointers to 32 bit, like some fool programmer 
> tries putting a pointer in an int.

In passing, I would note that both SPEC2000 and SPEC95 are 64 bit
clean, as a 3 minute look at past submissions would tell you.



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

* Re: SPEC CFP2000 Fortran declarations
  2000-06-20  4:00             ` Toon Moene
@ 2000-06-21  4:00               ` Jan Vorbrueggen
  2000-06-21  4:00                 ` Toon Moene
  0 siblings, 1 reply; 54+ messages in thread
From: Jan Vorbrueggen @ 2000-06-21  4:00 UTC (permalink / raw)


Toon Moene <toon@moene.indiv.nluug.nl> writes:

> > > we noticed, when discussing a SPEC2000 Fortran entry, that apparently:
> > >
> > >       INTEGER(8)
> > >
> > > slipped through.  Hardly a Standard way of specifying a certain size
> > > INTEGER ...
> > You'll notice something similar in facerec,
> I *was* refering to your code, but wanted to offer you the choice of
> replying or not ...

So the INTEGER(8) was a disguis?...I can't remember writing that...

As I understand it, writing INTEGER(8) _is_ a standard way, it's just not as
portable as one would want because the _meaning_ of KIND=8 is non-portable
(with the distinct possibility of it actually being undefined). I consider
this to be really bothersome only where constants are concerned and when one
can't (reasonably) avoid default typing.

	Jan




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

* Re: SPEC CFP2000 Fortran declarations
  2000-06-21  4:00               ` Jan Vorbrueggen
@ 2000-06-21  4:00                 ` Toon Moene
  0 siblings, 0 replies; 54+ messages in thread
From: Toon Moene @ 2000-06-21  4:00 UTC (permalink / raw)


Jan Vorbrueggen wrote:

> Toon Moene <toon@moene.indiv.nluug.nl> writes:

> > > > we noticed, when discussing a SPEC2000 Fortran entry, that apparently:
> > > >
> > > >       INTEGER(8)
> > > >
> > > > slipped through.  Hardly a Standard way of specifying a certain size
> > > > INTEGER ...
> > > You'll notice something similar in facerec,
> > I *was* refering to your code, but wanted to offer you the choice of
> > replying or not ...
> 
> So the INTEGER(8) was a disguis?...I can't remember writing that...

Well, I'm quite certain that your name was present in the source ...

> As I understand it, writing INTEGER(8) _is_ a standard way, it's just not as
> portable as one would want because the _meaning_ of KIND=8 is non-portable

That is what I meant: It is hardly a Standard way of specifying a
*certain* size INTEGER.

If you don't care, you could just as well write INTEGER.

-- 
Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html
GNU Fortran 95: http://g95.sourceforge.net/ (under construction)



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

* Re: Linux / Tru64 Fortran performance
  2000-06-20  4:00         ` Greg Lindahl
@ 2000-06-21  4:00           ` W Bauske
  2000-06-22  4:00             ` Greg Lindahl
  0 siblings, 1 reply; 54+ messages in thread
From: W Bauske @ 2000-06-21  4:00 UTC (permalink / raw)


Greg Lindahl wrote:
> 
> W Bauske <wsb@paralleldata.com> writes:
> 
> > Alternatively, the code is poorly written and it won't run
> > without forcing pointers to 32 bit, like some fool programmer
> > tries putting a pointer in an int.
> 
> In passing, I would note that both SPEC2000 and SPEC95 are 64 bit
> clean, as a 3 minute look at past submissions would tell you.

Apparently. I only suggested an alternative, more likely reason
that flag exists, which is as a porting aid. Interesting use of
it though in this case. Not many folks will probably use it that
way though, particularly with FORTRAN.


Wes



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

* Re: Linux / Tru64 Fortran performance
  2000-06-21  4:00           ` W Bauske
@ 2000-06-22  4:00             ` Greg Lindahl
  0 siblings, 0 replies; 54+ messages in thread
From: Greg Lindahl @ 2000-06-22  4:00 UTC (permalink / raw)


W Bauske <wsb@paralleldata.com> writes:

> Apparently. I only suggested an alternative, more likely reason
> that flag exists, which is as a porting aid. Interesting use of
> it though in this case.

What's so interesting about it? It is typical for 64-bit systems to
support smaller memory models, and it is typical for vendors to take
advantage of anything that makes SPEC fater.

-- greg



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

* Re: Linux / Tru64 Fortran performance
  2000-06-20  4:00               ` W Bauske
@ 2000-06-25  4:00                 ` Jeff Sturm
  0 siblings, 0 replies; 54+ messages in thread
From: Jeff Sturm @ 2000-06-25  4:00 UTC (permalink / raw)


W Bauske wrote:
> It would probably be useful to use profiling tools to determine
> exactly what portion of the code is hogging cpu cycles so that
> one can look at the offending code to see what it's problem is.
> Things like gprof come to mind. At least then you'll have some
> understanding of where to look. The idea of statically linking
> under Tru64 and running on Linux is also a good idea as mentioned
> previously. The linux-kernel mailing list has a fair discussion
> of page coloring and patches floating around from folks working
> on it. Also, there was a math library problem discussed recently
> where the library was generating huge volumes of minor page faults.
> You might want to do "time bnd" and see if that's hitting you.
> Look for many thousands of minor faults.

You can use gprof, but Iprobe (based on hardware counters) is available
for Alpha/Linux and is far more useful IMO:

http://www.alphalinux.org/iprobe/

--
Jeff Sturm
jsturm@sigma6.com



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

end of thread, other threads:[~2000-06-25  4:00 UTC | newest]

Thread overview: 54+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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     ` Dan Nagle
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     ` Greg Lindahl
2000-04-25  4:00     ` Michael Kagalenko
2000-04-25  4:00       ` Timothy J. Bogart
2000-04-25  4:00 ` Jeffrey J. Potoff
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
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-26  4:00 ` Massimiliano Fatica
2000-06-18  4:00   ` Tom Sevy
2000-06-19  4:00     ` Greg Lindahl
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               ` James Cownie
2000-06-20  4:00               ` W Bauske
2000-06-25  4:00                 ` Jeff Sturm
2000-06-20  4:00           ` SPEC CFP2000 Fortran declarations Jan Vorbrueggen
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             ` McCalpin
2000-06-20  4:00               ` Jan Vorbrueggen
2000-06-20  4:00                 ` McCalpin
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

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