Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Ed Hall <edhall@terminus.ayched.com>
To: Herwin Jan Steehouwer <herwinjs@palet.nl>
Cc: axp-list@redhat.com
Subject: Re: Performance again
Date: Sun, 03 Jan 1999 12:22:34 -0800	[thread overview]
Message-ID: <199901032022.MAA31168@terminus.ayched.com> (raw)
In-Reply-To: Your message of "Sun, 03 Jan 1999 15:36:09 +0100." <Pine.LNX.4.04.9901031529250.1684-100000@hjs.goth.net>

> On Sun, 3 Jan 1999, geerten kuiper wrote:
> > Herwin Jan,
> > - David Mosberger once wrote an article on optimizing code for Alpha. You
> > may be able to find it somewhere on the web. Cache optimization is the main
> > thing to realize the Alphas full potential.
> i cannot find him ;-( also his e-mail adres i found, was not working ;(

It's at "http://www.mostang.com/~davidm/papers/expo97/paper.ps.gz".  I've
obtained 2:1 speedups using the techniques in his paper.

> > - on some older Alpha boxes, memory bandwith limits performance. On your XL
> > this should be less of an issue (is it 128 or 256 bits wide ?)
> 
> 366Xl is 128 bits wide !

Memory bandwidth usually isn't as much the issue as memory latency.  The
Mosberger paper presents some techniques for avoiding processor stalls due
to memory latency that work quite well.

> a test programm ( see attachment ) will give this output ! how can i speed
> this up ?? ( gcc -o preftest preftest.c ) NO optimizing for this test ! 

No optimization?  That, IMHO, is silly!  Just about any advanced processor
can benefit from compiler optimizations, some more than others.  This is
especially true of highly pipelined multi-issue CPU's like the Alpha.

Concerning your benchmark: you are performing an unusual number of divisions.
The Alpha is especially weak on integer division, while its floating-point
division is only so-so.  Avoiding divisions when possible (e.g. multiplication
by the reciprocal, such as "val1*= (val2)/(val2*val2 + val3)" instead of
"val1/= (val2*val2 + val3)/(val2)") is a win on just about any architecture,
including Pentium, but it is especially desirable on Alpha.

Just for fun, I ran your benchmark (unaltered and unoptimized) on a 533MHz
LX164 system:

	time perftest i
	2.77
	time perftest f
	0.93
	time perftest d
	1.28

Not too bad, really.  (The P2-300's were just coming out when I bought this
system, BTW, and only cost about 20% less.)

		-Ed Hall
		edhall@ayched.com



  reply	other threads:[~1999-01-03 20:40 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-01-03  8:59 Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 Ron
1999-01-03 11:21 ` Performance again Herwin Jan Steehouwer
1999-01-03 13:23   ` geerten kuiper
1999-01-03 14:36     ` Herwin Jan Steehouwer
1999-01-03 20:22       ` Ed Hall [this message]
1999-01-04  4:49       ` Joseph Curtis
1999-01-03 14:37     ` Herwin Jan Steehouwer
1999-01-03 21:45       ` Wes Bauske
1999-01-03 22:06   ` warp
1999-01-03 22:35     ` warp
1999-01-03 13:35 ` Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 Kari Davidsson
1999-01-03 17:07   ` (Help) " Ron
1999-01-03 20:32     ` (Help) Accessing Serial Port on Noname MB (AXPXI33) under RH Matthew Geier
1999-01-03 21:47     ` (Help) Accessing Serial Port on Noname MB (AXPXI33) under RH 5.1 Wes Bauske
read-only archive

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