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

In article <7etets$kel@usenet.pa.dec.com>,
 Justin Carlson <carlson@xyzzy.pa.dec.com> writes:
> In comp.arch Donald C. Lindsay <lindsay@best.com> wrote:

[Donald Lindsay had a theory about the extra penalty I saw, when a
non-nop was in front of the unaligned jump target; I am not sure
whether Justin Carlson addresses this or also the original penalty I
saw for jump target misalignment].

> This is close, but not quite correct.  I don't have the description in
> front of me, but I believe the penalty you are seeing is due to the 
> fact that only 1 predicted index-set target is kept per fetch block
> (16 bytes).  This the fetch blocks with multiple jumps will only
> keep history for one of those jumps, not all of them.
> 
> Keeping 11 bits of index-set prediction data per fetch block already
> eats up a fair bit of space; Keeping 44 bits would probably be extreme 
> overkill.
> 
> 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.
> 
> Make sense?

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.

- anton
-- 
M. Anton Ertl                    Some things have to be seen to be believed
anton@mips.complang.tuwien.ac.at Most things have to be believed to be seen
http://www.complang.tuwien.ac.at/anton/home.html



  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     ` Ben Pfaff
1999-04-07  4:00       ` bmeyer
1999-04-07  4:00       ` Peter Mardahl
1999-04-07  4:00       ` Jim Klein
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                 ` 21264 performance anomalies (was: Compaq to port ...) Michael Gschwind
1999-04-11  4:00                 ` 21264 performance anomalies Donald C. Lindsay
1999-04-12  4:00                   ` Justin Carlson
1999-04-14  4:00                     ` Anton Ertl [this message]
1999-04-14  4:00                       ` Justin Carlson
1999-04-14  4:00                       ` Jan Vorbrueggen
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-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     ` Gary Scott
1999-04-07  4:00       ` Toon Moene
1999-04-07  4:00     ` Paul English
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       ` Greg Lindahl
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