Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "H.W. Stockman" <hwstock@swcp.com>
Subject: Re: Reed-Solomon [was: Re: big memory on PPro or Alpha]
Date: 1997/01/25	[thread overview]
Message-ID: <32EAB740.627F@swcp.com> (raw)
In-Reply-To: 19970124010001.UAA26228@ladder01.news.aol.com


Subject: Reed-Solomon [was: Re: big memory on PPro or Alpha]
References: <to3ewc6t4u.fsf@avalon.harvard.edu> <32D92EFD.7B60@spam.off>

David Mosberger-Tang said:
>johnl@Radix.Net (John A. Limpert) writes:
>
>> On Thu, 16 Jan 1997 19:37:54 -0800, Jeffrey Potoff
>> <jpotoff@latoso.cheme.cornell.edu> wrote:
>> 
>> >What hype would that be ?  Facts are facts.  Send whatever source 
>> >code you're running that's so much faster on a PPro and I'll 
>> >benchmark it on a 433mhz 21164 Alpha so we can end this nonsense once
>> >and for all.
>> 
>> I benchmarked an Alpha with a Reed-Solomon encoder that I wrote and my
>> 90 MHz Pentium beat it. The Alpha seemed to have alot of trouble with
>> all of the byte sized operations in the encoder software. The Alpha is
>> a neat chip but it stumbled on my application.
>
>John was kind enough to send me his Reed Solomon code.  Sure enough, I
>got the following results on a 200MHz P6 Linux machine and two 300MHz
>ev5 machines (21164 without subword load/store).  One of the ev5
>machines was running Linux, the other OSF/1.  Under Linux, I used gcc
>-O2 for compilation, under OSF/1 I used cc -migrate -O4 -tune ev5:
>
>original code:
>
>686:200MHz:Linux:gcc -O2:			2.8MB/sec
>ev5:300MHz:Linux:gcc -O2:			0.74MB/sec
>ev5:300MHz:OSF/1:cc -migrate -O4 -tune ev5:	0.74MB/sec
>
>The code had some obvious inefficiencies, so I spent half an hour
>getting rid of the worse offender.  The results with that code are
>below:
>
>improved code:
>
>686:200MHz:Linux:gcc -O2:			 3.4MB/sec
>ev5:300MHz:Linux:gcc -O2:			10.0MB/sec
>ev5:300MHz:OSF/1:cc -migrate -O4 -tune ev5:	11.4MB/sec
>
>This is obviously much more reasonable.  Note that the 686 improved as
>well, but only by 21% as compared to a factor of 15.4 for the Alpha.
>I suspect there are two reasons the Alpha did so poorly with the old
>code: (a) some of the arrays are exactly 8KB big (size of primary
>cache), so there might be some thrashing going on and (b) the byte

? I thought only the older alphas (e.g. 21066) had direct-mapped
caches.  Remember the PPro also has 8KB(D) in L1.

We can add:
686:200MHz:DOS:Symantec 6.0 -o:	                 3.64MB/sec
686:200MHz:DOS:Watcom 9.5 /omaxnet /zp4 /5r:     2.85MB/sec

However, I'm wondering how much this benchmark is biased by 
the small size of the arrays, which are read repeatedly to 
generate a sufficiently long test?  Since I don't know what 
the bench does, it is difficult for me to change meaningfully 
the N and K params.  I tried changing them to 2559 and 2537, 
which dropped the MB/sec on the PPro about 30% -- but I also 
got a segment fault after the arrays printed. 

My first impulse was to recode the p[0] = p[1] ^ q[0]... 
stuff into an assembly language function... but using the asm 
function actually slowed the symantec result down by 25%. I 
think the slowdown resulted from: the extra calling, pushing 
and popping overhead (which comprise 29% of the 
instructions); and the decrease in available optimization 
strategies for the calling function.  I was also fairly 
sloppy with instruction pairing. 

(Though how would an MMX Pentium do?  There would be eight 
extra 64-bit regs, and all the traditional regs would be 
available for addressing.) 

The poorer performance of Watcom (relative to Symantec) is 
intriguing.  Watcom has done significantly better on every 
standard benchmark (nsieve, dhrystone, linpack, flops,...) 
I've run in the past; but this is the second time in a week 
I've had Watcom perform ca. 20 to 30% worse on a "real" code. 

-------------------------------------------------------
While this Reed-Solomon example has obvious and simple 
strategies to overcome the alpha's byte-access problems, I'd 
wager I can come up with an example that is much more 
refractory: the "lattice-gas automata" (LGA) translation and 
collision steps.  I can't provide C code, since I've always 
written the inner loops in assembly language; but if there is 
sufficient interest, I can describe the problem in enough 
detail to get people debating the point (to see how LGA are 
used, visit:  http://www.sandia.gov/eesector/gs/gc/movies.htm ). 

We considered moving the LGA code to an SGI R10000 system or 
alpha (from x86), to take advantage of the 64-bit registers, 
but I was scared off by the byte-addressing problem and the 
porting time.  About that time, I decided to go to lattice 
boltzmann methods instead of LGA, and we will eventually get 
to compare those on alpha and PPro. 

Harlan Stockman
a.k.a. "OOG the Caveman"



  reply	other threads:[~1997-01-25  5:00 UTC|newest]

Thread overview: 73+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-01-08  5:00 big memory on PPro or Alpha Erik Evensen
1997-01-08  5:00 ` Dennis Moran
1997-01-12  5:00   ` henley
1997-01-12  5:00     ` Peter Mardahl
1997-01-13  5:00       ` Burkhard Neidecker-Lutz
1997-01-13  5:00         ` henley
1997-01-14  5:00           ` Joshua Cope
1997-01-14  5:00           ` Douglas H. Borsom
1997-01-17  5:00             ` henley
1997-01-13  5:00       ` henley
1997-01-14  5:00         ` Eli the Bearded
1997-01-15  5:00           ` henley
1997-01-15  5:00             ` Rob Dupcak
1997-01-15  5:00               ` henley
1997-01-15  5:00                 ` Jeffrey Potoff
1997-01-17  5:00                   ` henley
1997-01-17  5:00                     ` Thomas Womack
1997-01-19  5:00                       ` Tim W. Janes
1997-01-17  5:00                     ` Jeffrey Potoff
1997-01-17  5:00                       ` henley
1997-01-18  5:00                         ` Jeffrey Potoff
1997-01-18  5:00                     ` Douglas H. Borsom
1997-01-19  5:00                     ` Burkhard Neidecker-Lutz
1997-01-19  5:00                       ` henley
1997-01-20  5:00                         ` Douglas Borsom
1997-01-20  5:00                           ` henley
1997-01-21  5:00                     ` Glenn C. Everhart
1997-01-16  5:00                 ` Douglas H. Borsom
1997-01-16  5:00                   ` henley
1997-01-16  5:00                     ` Jeffrey Potoff
1997-01-16  5:00                       ` henley
1997-01-17  5:00                         ` Eli the Bearded
1997-01-18  5:00                       ` John A. Limpert
1997-01-18  5:00                         ` Douglas H. Borsom
1997-01-19  5:00                           ` Shane Hebert
1997-01-18  5:00                         ` [++] Alpha byte access (Was: Re: big memory on PPro or Alpha) Terje Mathisen
1997-01-18  5:00                           ` Rob Barris
1997-01-18  5:00                             ` Bill McGee
1997-01-19  5:00                               ` Terje Mathisen
1997-01-19  5:00                             ` Reed-Solomon on Alphas " Douglas H. Borsom
1997-01-19  5:00                             ` [++] Alpha byte access " Larry Kilgallen
1997-01-20  5:00                               ` Thomas P. Evans
1997-01-21  5:00                             ` Glenn C. Everhart
1997-01-18  5:00                           ` Toon Moene
1997-01-16  5:00                   ` big memory on PPro or Alpha Jeffrey Potoff
1997-01-17  5:00                   ` Agtabby
1997-01-16  5:00             ` Graham Allan
1997-01-16  5:00               ` henley
1997-01-16  5:00               ` Jeffrey Potoff
1997-01-13  5:00     ` Jeffrey Potoff
1997-01-14  5:00       ` Gregg E Economou
1997-01-14  5:00         ` Ross Alexander
1997-01-13  5:00     ` Torbjorn Lindgren
1997-01-19  5:00     ` Reed-Solomon on Alphas (Was: Re: big memory on PPro or Alpha) David Mosberger-Tang
1997-01-19  5:00     ` David Mosberger-Tang
1997-01-20  5:00     ` H.W. Stockman
1997-01-20  5:00     ` big memory on PPro or Alpha Donald K.Sinclair
1997-01-21  5:00     ` [++] Alpha byte access (Was: Re: big memory on PPro or Alpha) Ketil Z Malde
1997-01-22  5:00     ` Reed-Solomon [was: Re: big memory on PPro or Alpha] David Mosberger-Tang
1997-01-24  5:00       ` Agtabby
1997-01-25  5:00         ` H.W. Stockman [this message]
1997-01-26  5:00           ` Douglas Borsom
1997-01-26  5:00             ` H.W. Stockman
1997-01-09  5:00 ` big memory on PPro or Alpha Toshinao Ishii
1997-01-09  5:00 ` 
1997-01-14  5:00   ` Opher D. Kahn
1997-01-14  5:00     ` 
1997-01-17  5:00       ` Paul David Fox
1997-01-17  5:00         ` 
1997-01-14  5:00     ` Douglas H. Borsom
1997-01-11  5:00 ` Douglas H. Borsom
1997-01-19  5:00 ` David Mosberger-Tang
1997-01-20  5:00 ` henley
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