Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
* Re: Disappointing benchmark result with LX
  1998-08-22  4:00 Disappointing benchmark result with LX G. Hugh SONG
                   ` (4 preceding siblings ...)
  1998-08-22  4:00 ` Greg Lindahl
@ 1998-08-22  4:00 ` Toon Moene
  5 siblings, 0 replies; 11+ messages in thread
From: Toon Moene @ 1998-08-22  4:00 UTC (permalink / raw)


ghsong@NOSPAMkjist.ac.kr (G. Hugh SONG) wrote:

> We bought an LX board with 21164 533MHz CPU and 2MB cache running 
> Linux.  Memory size is 128 MB.

> 1.  Is 21164 cpu for the LX board different from 21164a in the 
>     DEC server [7305] ?

As far as I know not.  However, the memory system is completely different 
from that of the LX boards, and that's an important factor too.

> 2. Is there any possible mistake I could have made in compling 
>    my application, which is not favored by alpha?

Well, it's hard to say without you giving actual command line arguments to 
g77.

> It is a terrible feeling.  I expected that my app runs substantially
> faster on the LX board than on Sun Ultra I.  Now I found that it
> is not so.

I must say I find it surprising too; on the other hand, the Sun Ultra is 
probably much more expensive than the PC164LX.

Another note:  You wrote your code is double complex based.  This is an area 
where the GNU compiling system is known to be weak.  Officially, it has 
support internally for Single Precision Complex and Double Precision Complex 
data, but as this doesn't work flawlessly, the Fortran Frontend doesn't use 
it, but explicitly spells out the complex computations itself to the code 
generation phase.  This tends to produce less well optimised code:  On an 
example posted to the egcs mailing list several months ago, I obtained a 2 
fold speedup by compiling it with -fno-emulate-complex - however, that's 
because I know the problematic support for the complex data types has no 
effect on my NEXT station (m68k-next-nextstep3).

Hope this helps,

-- 
Toon Moene (mailto:toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG  Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: mailto:fortran@gnu.org; NWP: http://www.knmi.nl/hirlam



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

* Re: Disappointing benchmark result with LX
  1998-08-22  4:00 Disappointing benchmark result with LX G. Hugh SONG
  1998-08-22  4:00 ` Greg Lindahl
  1998-08-22  4:00 ` Peter Mardahl
@ 1998-08-22  4:00 ` Joseph Sarkes
  1998-08-22  4:00 ` Peter Mardahl
                   ` (2 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Joseph Sarkes @ 1998-08-22  4:00 UTC (permalink / raw)


G. Hugh SONG (ghsong@NOSPAMkjist.ac.kr) wrote:
: When we ran g77 on both machines, the speed measurements are comparable within
: 3%.  The LX ran a little slower.  However, the same code ran about 
: 2 times faster with Sun's own f77.

I remember seeing something about this, perhaps in a netbsd mailing list.
It seems that the digital unix compiler has a number of optimizations that
are not yet done by the gnu compiler, so it runs markedly faster on some
numeric stuff. 


--
Joseph Sarkes                   mailto:joe@mediaone.net



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

* Re: Disappointing benchmark result with LX
  1998-08-22  4:00 Disappointing benchmark result with LX G. Hugh SONG
                   ` (2 preceding siblings ...)
  1998-08-22  4:00 ` Joseph Sarkes
@ 1998-08-22  4:00 ` Peter Mardahl
  1998-08-22  4:00   ` Greg Lindahl
  1998-08-22  4:00   ` Greg Lindahl
  1998-08-22  4:00 ` Greg Lindahl
  1998-08-22  4:00 ` Toon Moene
  5 siblings, 2 replies; 11+ messages in thread
From: Peter Mardahl @ 1998-08-22  4:00 UTC (permalink / raw)


In article <6rlg43$5e7$1@news.kjist.ac.kr>,
G. Hugh SONG <ghsong@NOSPAMkjist.ac.kr> wrote:
>We bought an LX board with 21164 533MHz CPU and 2MB cache running 
>Linux.  Memory size is 128 MB.
>
>We ran our own application (double complex Schrodinger-type evolution
>equationon) with it and compared the execution time with that on Sun's Ultra I.
>When we ran g77 on both machines, the speed measurements are comparable within

g77?  I think that is your problem.
g77 doesn't produce code anywhere near as fast as
Digital FORTRAN.

Performance requires CPU *and* fast memory *and* fast compilers, at the least,
and possibly *and* fast I/O *and* fast disks *and* .....

Your compiler is the weak link here, most likely!  See if you can get
a friend to use Digital FORTRAN on it, and run the binary you make
on your Linux box.  It should be legal if you link the binary statically.

PeterM



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

* Re: Disappointing benchmark result with LX
  1998-08-22  4:00 Disappointing benchmark result with LX G. Hugh SONG
@ 1998-08-22  4:00 ` Greg Lindahl
  1998-08-22  4:00 ` Peter Mardahl
                   ` (4 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Greg Lindahl @ 1998-08-22  4:00 UTC (permalink / raw)


ghsong@NOSPAMkjist.ac.kr (G. Hugh SONG) writes:

> 2. Is there any possible mistake I could have made in compling 
>    my application, which is not favored by alpha?

Are you using the egcs compilers? They are far better than g77 based
on gcc-2.7.2 on the alphas.

Does your application make heavy use of the math library (sin, cos,
etc?) If so, you should try the new "fast math libraries" and see how
that helps.

Given your Sun results (sun's compiler twice as good as g77), I would
suspect that instead you have some aspect which is confusing g77, such
as stencil operations that g77 uses too many registers for.

-- g



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

* Re: Disappointing benchmark result with LX
  1998-08-22  4:00 ` Peter Mardahl
  1998-08-22  4:00   ` Greg Lindahl
@ 1998-08-22  4:00   ` Greg Lindahl
  1 sibling, 0 replies; 11+ messages in thread
From: Greg Lindahl @ 1998-08-22  4:00 UTC (permalink / raw)


peterm@tesla.EECS.Berkeley.EDU (Peter Mardahl) writes:

> g77?  I think that is your problem.
> g77 doesn't produce code anywhere near as fast as
> Digital FORTRAN.

Sometimes g77 produces faster code. Please be specific instead of
speaking in incorrect generalities.

-- g




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

* Re: Disappointing benchmark result with LX
  1998-08-22  4:00 Disappointing benchmark result with LX G. Hugh SONG
  1998-08-22  4:00 ` Greg Lindahl
@ 1998-08-22  4:00 ` Peter Mardahl
  1998-08-22  4:00 ` Joseph Sarkes
                   ` (3 subsequent siblings)
  5 siblings, 0 replies; 11+ messages in thread
From: Peter Mardahl @ 1998-08-22  4:00 UTC (permalink / raw)


In article <6rlg43$5e7$1@news.kjist.ac.kr>,
G. Hugh SONG <ghsong@NOSPAMkjist.ac.kr> wrote:
>We bought an LX board with 21164 533MHz CPU and 2MB cache running 
>Linux.  Memory size is 128 MB.
>
>We ran our own application (double complex Schrodinger-type evolution
>equationon) with it and compared the execution time with that on Sun's Ultra I.
>When we ran g77 on both machines, the speed measurements are comparable within

g77?  I think that is your problem.
g77 doesn't produce code anywhere near as fast as
Digital FORTRAN.

Performance requires CPU *and* fast memory *and* fast compilers, at the least,
and possibly *and* fast I/O *and* fast disks *and* .....

Your compiler is the weak link here, most likely!  See if you can get
a friend to use Digital FORTRAN on it, and run the binary you make
on your Linux box.  It should be legal if you link the binary statically.

PeterM



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

* Re: Disappointing benchmark result with LX
  1998-08-22  4:00 Disappointing benchmark result with LX G. Hugh SONG
                   ` (3 preceding siblings ...)
  1998-08-22  4:00 ` Peter Mardahl
@ 1998-08-22  4:00 ` Greg Lindahl
  1998-08-23  4:00   ` G. Hugh SONG
  1998-08-22  4:00 ` Toon Moene
  5 siblings, 1 reply; 11+ messages in thread
From: Greg Lindahl @ 1998-08-22  4:00 UTC (permalink / raw)


ghsong@NOSPAMkjist.ac.kr (G. Hugh SONG) writes:

> 2. Is there any possible mistake I could have made in compling 
>    my application, which is not favored by alpha?

Are you using the egcs compilers? They are far better than g77 based
on gcc-2.7.2 on the alphas.

Does your application make heavy use of the math library (sin, cos,
etc?) If so, you should try the new "fast math libraries" and see how
that helps.

Given your Sun results (sun's compiler twice as good as g77), I would
suspect that instead you have some aspect which is confusing g77, such
as stencil operations that g77 uses too many registers for.

-- g



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

* Re: Disappointing benchmark result with LX
  1998-08-22  4:00 ` Peter Mardahl
@ 1998-08-22  4:00   ` Greg Lindahl
  1998-08-22  4:00   ` Greg Lindahl
  1 sibling, 0 replies; 11+ messages in thread
From: Greg Lindahl @ 1998-08-22  4:00 UTC (permalink / raw)


peterm@tesla.EECS.Berkeley.EDU (Peter Mardahl) writes:

> g77?  I think that is your problem.
> g77 doesn't produce code anywhere near as fast as
> Digital FORTRAN.

Sometimes g77 produces faster code. Please be specific instead of
speaking in incorrect generalities.

-- g




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

* Disappointing benchmark result with LX
@ 1998-08-22  4:00 G. Hugh SONG
  1998-08-22  4:00 ` Greg Lindahl
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: G. Hugh SONG @ 1998-08-22  4:00 UTC (permalink / raw)


We bought an LX board with 21164 533MHz CPU and 2MB cache running 
Linux.  Memory size is 128 MB.

We ran our own application (double complex Schrodinger-type evolution
equationon) with it and compared the execution time with that on Sun's Ultra I.
When we ran g77 on both machines, the speed measurements are comparable within
3%.  The LX ran a little slower.  However, the same code ran about 
2 times faster with Sun's own f77.

However, the SPEC benchmark which I compiled from the spec site
shows that 2.5 times faster on Digital Server 7305 with 4MB cache
running DU and DEC Fortran than Sun's Ultra 1.

First, we are going to upgrade the LX board to the one with 4MB
cache.  However, even if we replace the board, it cannot explain
the gap for the 2.5 times difference.

IN this regard, I'd like to ask some questions.

1.  Is 21164 cpu for the LX board different from 21164a in the 
    DEC server?

2. Is there any possible mistake I could have made in compling 
   my application, which is not favored by alpha?

It is a terrible feeling.  I expected that my app runs substantially
faster on the LX board than on Sun Ultra I.  Now I found that it
is not so.

Thanks.

-- 
G. Hugh Song

PS: please remover NOSPAM when replying



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

* Re: Disappointing benchmark result with LX
  1998-08-22  4:00 ` Greg Lindahl
@ 1998-08-23  4:00   ` G. Hugh SONG
  1998-08-23  4:00     ` Greg Lindahl
  0 siblings, 1 reply; 11+ messages in thread
From: G. Hugh SONG @ 1998-08-23  4:00 UTC (permalink / raw)


In article <6rnens$1au$145@elle.eunet.no>, lindahl@pbm.com (Greg Lindahl) writes:
> ghsong@NOSPAMkjist.ac.kr (G. Hugh SONG) writes:
> 
> > 2. Is there any possible mistake I could have made in compling 
> >    my application, which is not favored by alpha?
> 
> Are you using the egcs compilers? They are far better than g77 based
> on gcc-2.7.2 on the alphas.

Yes.  Version 1.0.3a-8, probably a month and half old.  I guess we need 
to upgrade it to the most recent one.

> Does your application make heavy use of the math library (sin, cos,
> etc?) If so, you should try the new "fast math libraries" and see how
> that helps.

We installed libffm.a and used "-lffm -lm".  Should the order be 
reversed?

> Given your Sun results (sun's compiler twice as good as g77), I would
> suspect that instead you have some aspect which is confusing g77, such
> as stencil operations that g77 uses too many registers for.
> 
> -- g

The version of that g77 on Sun Ultra I is probably a year old.

Thanks a lot.

-- 
G. Hugh Song




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

* Re: Disappointing benchmark result with LX
  1998-08-23  4:00   ` G. Hugh SONG
@ 1998-08-23  4:00     ` Greg Lindahl
  0 siblings, 0 replies; 11+ messages in thread
From: Greg Lindahl @ 1998-08-23  4:00 UTC (permalink / raw)


ghsong@NoSpamkjist.ac.kr (G. Hugh SONG) writes:

> We installed libffm.a and used "-lffm -lm".  Should the order be 
> reversed?

That's correct.

From your investigations, you have a code which reveals a flaw in the
current egcs compilers. If you can pluck out a small kernel which
reveals this flaw and send it to the egcs folks, I'm sure they'd be
happy to look at it more closely.

-- g



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

end of thread, other threads:[~1998-08-23  4:00 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-08-22  4:00 Disappointing benchmark result with LX G. Hugh SONG
1998-08-22  4:00 ` Greg Lindahl
1998-08-22  4:00 ` Peter Mardahl
1998-08-22  4:00 ` Joseph Sarkes
1998-08-22  4:00 ` Peter Mardahl
1998-08-22  4:00   ` Greg Lindahl
1998-08-22  4:00   ` Greg Lindahl
1998-08-22  4:00 ` Greg Lindahl
1998-08-23  4:00   ` G. Hugh SONG
1998-08-23  4:00     ` Greg Lindahl
1998-08-22  4:00 ` Toon Moene

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