From: Stig Telfer <stig@alpha-processor.com>
To: "'axp-list@redhat.com'" <axp-list@redhat.com>
Subject: RE: XP1000 and Linux
Date: Sun, 21 Mar 1999 19:21:46 -0500 [thread overview]
Message-ID: <278EEF4F1348D211940600A0C95BCF7F1F01AC@yellow-fin.alpha-processor.com> (raw)
I think the key here is that your gcc output contains no write hints for the
destination. If you're writing a buffer without first reading it, this
instruction is near-essential; otherwise, the CPU will fetch the destination
cacheline from memory before you write all over it. Adding a wh64
instruction (in theory) allocates a 64-byte cache block without filling from
memory. That could explain the 2x shortfall in memory bandwidth you're
seeing.
I was hoping to provide an example to test this, but gnu as doesn't seem to
know the instruction, at least not the version I have (and not with the
mnemonic in the arch handbook). Hand-assembling may do the trick for now.
I wonder how much effort gcc makes to use it?
Regards,
Stig Telfer
> -----Original Message-----
> From: Wes Bauske [mailto:wsb@paralleldata.com]
> Sent: Sunday, March 21, 1999 3:44 PM
> To: axp-list@redhat.com
> Subject: Re: XP1000 and Linux
>
>
> Greg Lindahl wrote:
> >
> > > That would indicate Greg's view that compilers don't
> > > effect streams is significantly off. Also worries me
> > > that this system, with look ahead still is so sensitive
> > > to compilers. I'd bet the DUNIX cc is capable of unrolling
> > > loops to give the processor more things to look at as it
> > > does it's out of order execution... I'll see about hand
> > > unrolling the loops to see how that changes it's performance.
> >
> > Unrolling never does much for STREAM in this day and age -- main
> > memories are very slow compared to processors. Just look at the
> > numbers for how many cycles it takes to refill a L3 cache
> line. It is
> > a bit surprising that lack of any optimization changes the number so
> > dramatically. When I get my boxes I'll report Digital cc and egcs
> > numbers on the same hardware.
> >
>
> That will be useful.
>
> I don't know about you, but 25% better performance is
> nothing to sneeze at according to my tests with unrolling
> the stream loops.
>
> It would be interesting to generate the asm file from an
> ev6 tuned DUNIX cc compile and compare it to what egcs is
> doing.
>
> Tom, if you can, add whatever flag DUNIX cc needs to
> output asm. On gcc, it's -S. Here's the loops with egcs1.0.3
> with -O2:
>
> copy vector
>
> $L24:
> ldt $f1,0($2)
> addq $2,8,$2
> addl $9,1,$9
> cmple $9,$4,$1
> stt $f1,0($3)
> addq $3,8,$3
> bne $1,$L24
>
> vector times scalar:
>
> $L29:
> ldt $f1,0($2)
> mult $f2,$f1,$f1
> addq $2,8,$2
> addl $9,1,$9
> cmple $9,$4,$1
> stt $f1,0($3)
> addq $3,8,$3
> bne $1,$L29
>
> Add two vectors:
>
> $L34:
> ldt $f1,0($2)
> ldt $f10,0($3)
> addq $3,8,$3
> addt $f1,$f10,$f1
> addq $2,8,$2
> addl $9,1,$9
> cmple $9,$5,$1
> stt $f1,0($4)
> addq $4,8,$4
> bne $1,$L34
>
> Vector plus scaled vector:
>
> $L39:
> ldt $f1,0($2)
> mult $f2,$f1,$f1
> ldt $f10,0($3)
> addq $3,8,$3
> addt $f10,$f1,$f10
> addq $2,8,$2
> addl $9,1,$9
> cmple $9,$5,$1
> stt $f10,0($4)
> addq $4,8,$4
> bne $1,$L39
>
> Nice clean easy to read asm at least.
>
> If you specify -funroll-all-loops, you get an 8 way
> unroll. Note specifying -funroll-loops does nothing
> to the code. I guess egcs doesn't think simple loops
> need unrolling!! Sure would be interesting to see what
> DUNIX's trick is.
>
>
> Wes
>
> --
> To unsubscribe: send e-mail to axp-list-request@redhat.com with
> 'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
>
next reply other threads:[~1999-03-22 0:33 UTC|newest]
Thread overview: 61+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-03-22 0:21 Stig Telfer [this message]
1999-03-22 0:55 ` XP1000 and Linux Greg Lindahl
1999-03-22 2:10 ` Richard Henderson
1999-03-22 5:12 ` Wes Bauske
1999-03-22 5:51 ` Wes Bauske
1999-03-22 8:41 ` Wes Bauske
1999-03-22 14:38 ` Greg Lindahl
1999-03-22 17:03 ` Wes Bauske
1999-03-22 19:11 ` Keystroke loggers Aaron
1999-03-22 9:22 ` loop unrolling [Re: XP1000 and Linux] Richard Henderson
1999-03-22 17:14 ` Wes Bauske
1999-03-23 2:43 ` Richard Henderson
1999-03-23 4:57 ` Wes Bauske
1999-03-22 11:58 ` Newbie Needs Milo Help SteveCraft
1999-03-23 18:39 ` Ron Farrer
1999-03-23 7:05 ` ev6 tlb consistency Richard Henderson
1999-03-23 18:22 ` Wes Bauske
1999-03-23 19:38 ` Jay.Estabrook
1999-03-23 8:56 ` loop unrolling [Re: XP1000 and Linux] Harvey J. Stein
1999-03-24 5:05 ` Wes Bauske
-- strict thread matches above, loose matches on Subject: below --
1999-03-20 8:27 XP1000 and Linux Thomas Leitner
1999-03-20 9:00 ` Wes Bauske
1999-03-20 10:40 ` Thomas Leitner
1999-03-21 0:42 ` Wes Bauske
1999-03-21 3:25 ` Wes Bauske
1999-03-21 19:40 ` Greg Lindahl
1999-03-21 20:43 ` Wes Bauske
1999-03-21 21:07 ` Greg Lindahl
1999-03-22 3:03 ` Wes Bauske
1999-03-22 3:18 ` Greg Lindahl
1999-03-24 0:57 ` Bill Broadley
1999-03-24 1:12 ` Greg Lindahl
1999-03-24 1:26 ` Bill Broadley
1999-03-24 3:13 ` Greg Lindahl
1999-03-24 4:19 ` Maurice Hilarius
1999-03-24 5:02 ` Jay.Estabrook
1999-03-24 15:49 ` Greg Lindahl
1999-03-24 18:16 ` Wes Bauske
1999-03-18 18:26 John Jemiolo
1999-03-18 20:06 ` Wes Bauske
1999-03-18 23:16 ` Wes Bauske
1999-03-18 16:05 Hoover, Tony
1999-03-18 17:18 ` Wes Bauske
1999-03-18 7:00 Wes Bauske
1999-03-18 7:48 ` Bill Broadley
1999-03-18 16:58 ` Wes Bauske
1999-03-18 17:18 ` Greg Lindahl
1999-03-18 20:01 ` Wes Bauske
1999-03-18 20:58 ` Greg Lindahl
1999-03-18 21:30 ` Wes Bauske
1999-03-19 20:34 ` Maurice Hilarius
1999-03-19 21:03 ` Greg Lindahl
1999-03-19 23:35 ` Wes Bauske
1999-03-20 5:37 ` Bill Roman
1999-03-24 3:27 ` Maurice Hilarius
1999-03-18 10:17 ` Matti Aarnio
1999-03-18 14:35 ` Greg Lindahl
1999-03-18 17:29 ` Jay.Estabrook
1999-03-24 2:20 ` Maurice Hilarius
1999-03-24 17:56 ` Oleg Gusev
1999-03-24 20:09 ` Maurice Hilarius
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