Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Justin Carlson <carlson@xyzzy.pa.dec.com>
Subject: Re: 21264 performance anomalies
Date: 1999/04/14	[thread overview]
Message-ID: <7f2j7a$r2n@usenet.pa.dec.com> (raw)
In-Reply-To: 7f232u$fvc$1@news.tuwien.ac.at

>> At any rate, I'm guessing you'll see the penalty go away not if
>> you align the jumps or the targets, but rather if you insure that
>> multiple jumps don't exist in the same fetch block.
>> 

> It would, if there was more than one jump in the 16-byte block.  Ok,
> maybe the chip does not fully decode the instructions for this, but
> decoding a frequent instruction like ldah or addq (which is what I
> used) as jump would probably seriously hurt branch prediction.

> One theory I have is that the performance penalty exists as soon as
> the destination register of the instruction before the unaligned
> branch target is not $31 (the zero register).  I made a few
> experiments, and they seem to support this (but I also found a few
> more unexpected variations).

> I also made several experiments with the same code in the 16-byte
> block, varying the branch target between the first and the second
> instruction of the block, and always saw a huge slowdown when the jump
> target was not the first instruction.

Ah, I misread your original post.  Sorry about that.  

There shouldn't be a performance penalty for writing a non-zero register 
immediately before the jump unless, of course, the write incurs
a read-after-write dependency in the pipe.  

At any rate, I need more information to look at what's going on here.
I'm not overly familiar with this aspect of EV6, but I can probably
dig up the info.  Can you post a larger sample of the code you
are generating, complete with register targets?  Ideally I'd like
to look at 8 instructions or so on either side of the section you're
interested in.

/JDC
carlson@pa.dec.com



  reply	other threads:[~1999-04-14  4:00 UTC|newest]

Thread overview: 114+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-04-06  4:00 Compaq to port its Fortran and C compilers to Alpha Linux Steve Lionel
1999-04-07  4:00 ` NewsMan
1999-04-06  4:00   ` Jeffrey J. Potoff
1999-04-06  4:00     ` Ron Flory
1999-04-07  4:00     ` Gary Scott
1999-04-07  4:00       ` Toon Moene
1999-04-07  4:00     ` Ben Pfaff
1999-04-07  4:00       ` Jeffrey J. Potoff
1999-04-07  4:00       ` Greg Lindahl
1999-04-07  4:00         ` Toon Moene
1999-04-08  4:00           ` Anton Ertl
1999-04-08  4:00             ` Toon Moene
1999-04-08  4:00               ` James D. Freels
1999-04-09  4:00                 ` Greg Lindahl
1999-04-11  4:00                 ` Michal Jaegermann
1999-04-08  4:00               ` 21264 performance anomalies (was: Compaq to port ...) Anton Ertl
1999-04-09  4:00                 ` P Dickerson
1999-04-09  4:00                   ` Anton Ertl
1999-04-10  4:00                   ` Bruce Hoult
1999-04-14  4:00                     ` 21264 performance anomalies Robert Herndon
1999-04-14  4:00                       ` Dennis Ritchie
1999-04-15  4:00                         ` Erik Corry
1999-04-15  4:00                           ` Dave Cherkus
1999-04-15  4:00                             ` Erik Corry
1999-04-15  4:00                               ` Dave Cherkus
1999-04-15  4:00                                 ` Linus Torvalds
1999-04-15  4:00                                   ` Dave Cherkus
1999-04-15  4:00                                   ` Jim Gettys
1999-04-18  4:00                             ` Bernd Paysan
1999-04-18  4:00                               ` How hard would it be to improve gcc's performance to match DEC CC? Peter Mardahl
1999-04-19  4:00                                 ` TTK Ciar
1999-04-19  4:00                               ` 21264 performance anomalies peter
1999-04-19  4:00                               ` Dave Cherkus
1999-04-20  4:00                                 ` Larry Kilgallen
1999-04-21  4:00                                   ` Bernd Paysan
1999-04-21  4:00                                     ` Greg Lindahl
1999-04-22  4:00                                       ` Terje Mathisen
1999-04-22  4:00                                         ` Greg Lindahl
1999-04-22  4:00                                     ` Jan Vorbrueggen
1999-04-22  4:00                                       ` Larry Kilgallen
1999-04-22  4:00                                         ` Fred Kleinsorge
1999-04-22  4:00                                           ` John Pieper
1999-04-22  4:00                                           ` Thomas Womack
1999-04-22  4:00                                         ` Paul DeMone
1999-04-23  4:00                                           ` Jan Vorbrueggen
1999-04-23  4:00                                             ` Paul DeMone
1999-04-24  4:00                                               ` Zalman Stern
1999-04-23  4:00                                                 ` Donald C. Lindsay
1999-05-09  4:00                                               ` TTK Ciar
1999-05-11  4:00                                                 ` Peter Mayne
1999-04-20  4:00                               ` Larry Kilgallen
1999-04-22  4:00                               ` Anton Ertl
1999-04-16  4:00                         ` first-class labels (was: 21264 performance anomalies) Anton Ertl
1999-04-15  4:00                       ` 21264 performance anomalies amos
1999-04-11  4:00                 ` Donald C. Lindsay
1999-04-12  4:00                   ` Justin Carlson
1999-04-14  4:00                     ` Anton Ertl
1999-04-14  4:00                       ` Justin Carlson [this message]
1999-04-14  4:00                       ` Jan Vorbrueggen
1999-04-11  4:00                 ` 21264 performance anomalies (was: Compaq to port ...) Michael Gschwind
1999-04-09  4:00             ` Compaq to port its Fortran and C compilers to Alpha Linux bmeyer
1999-04-09  4:00               ` Anton Ertl
1999-04-09  4:00                 ` Jim Gettys
1999-04-09  4:00             ` Jim Gettys
1999-04-09  4:00               ` Anton Ertl
1999-04-09  4:00               ` Toon Moene
1999-04-09  4:00                 ` Jim Gettys
1999-04-08  4:00         ` Keith Higgs
1999-04-07  4:00       ` Jim Klein
1999-04-07  4:00       ` bmeyer
1999-04-07  4:00       ` Peter Mardahl
1999-04-09  4:00       ` Daniel Barker
1999-04-10  4:00       ` Phillip Helbig
1999-04-10  4:00         ` Christopher B. Browne
1999-04-10  4:00           ` James D. Freels
1999-04-11  4:00             ` Christopher B. Browne
1999-04-11  4:00           ` Zane H. Healy
1999-04-11  4:00             ` James Van Buskirk
1999-04-11  4:00               ` Greg Lindahl
1999-04-12  4:00                 ` Robert Harley
1999-04-12  4:00                   ` Phillip Helbig
1999-04-12  4:00                     ` Greg Lindahl
1999-04-12  4:00                 ` James Van Buskirk
1999-04-14  4:00                   ` Greg Lindahl
1999-04-12  4:00                 ` Glenn C. Everhart
1999-04-19  4:00                   ` Bob Koehler
1999-04-19  4:00                     ` Jim Reiss
1999-04-12  4:00               ` Richard Levitte - VMS Whacker
1999-04-11  4:00             ` Greg Lindahl
1999-04-11  4:00         ` Toon Moene
1999-04-07  4:00     ` Paul English
1999-04-07  4:00       ` Greg Lindahl
1999-04-07  4:00       ` Dave Cherkus
1999-04-07  4:00         ` essoft
1999-04-08  4:00           ` bmeyer
1999-04-09  4:00         ` Richard Heathfield
1999-04-09  4:00           ` Dave Cherkus
1999-04-07  4:00   ` Steve Lionel
1999-04-07  4:00     ` Peter Mardahl
1999-04-07  4:00       ` Ron Flory
1999-04-07  4:00         ` Helmut Katzgraber
1999-04-08  4:00           ` Steve Lionel
1999-04-08  4:00             ` Helmut Katzgraber
1999-04-08  4:00               ` Steve Lionel
1999-04-09  4:00                 ` Dave Cherkus
1999-04-09  4:00                   ` Steve Lionel
1999-04-09  4:00                     ` Christopher B. Browne
1999-04-08  4:00       ` Udo Klasmeier
1999-04-09  4:00         ` Jacob Gladish
1999-04-10  4:00   ` Phillip Helbig
1999-04-10  4:00     ` Christopher B. Browne
1999-04-15  4:00     ` Jim Gettys
1999-04-12  4:00 ` Christian Simmendinger
1999-04-15  4:00   ` Dr. Scott A. Furman
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