Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: lindsay@best.com (Donald C. Lindsay)
Subject: Re: 21264 performance anomalies
Date: 1999/04/11	[thread overview]
Message-ID: <7eqq1b$3nr$1@localhost.best.com> (raw)
In-Reply-To: 7ej80q$o1a$1@news.tuwien.ac.at


In article <7ej80q$o1a$1@news.tuwien.ac.at>,
Anton Ertl <anton@mips.complang.tuwien.ac.at> wrote:


>2) In an unaligned block the kind of instruction *before* the jump
>target does play a role.  nops are cheap, while the other instructions
>I tried apparently cost another ~5 cycles/NEXT. Why is that and why so
>much?

Since no one who really knows has seen fit to answer:

The 21264 uses a next-line-and-set predictor.  That is, the predictor
doesn't emit a predicted PC value.  It emits I-cache indexing
information which allows you to cycle the I-cache.

The advantage of this scheme is that 
-the predictor state has fewer bits/target, eg 12 instead of 43.
-you don't have to map PC bits to an I-cache line-and-set, it's already done.

The disadvantage (?) of this is:
-if the I-cache misses, the I-refill doesn't have the speculated PC.

From your data, I'd guess that they're prefetching the branch target's
cache line, and speculatively issuing the left hand of the cache line.
If the target wasn't at the left hand of the cache line, their
mis-speculation has some time cost.  I'd guess that the issue logic
squashes NOPs, although NOPs may be fast-pathed in some other
way.

I don't know why 5 cycles.

The moral is that on the 21264, you will see speedup if you use
binaries with cache-aligned branch targets.  Compaq has tooling to
re-schedule old binaries, but I guess the customer has to know to run
them.
-- 
Don
Donald C. Lindsay, Ph.D.   www.best.com/~dlindsay    Just laid off.



  parent reply	other threads:[~1999-04-11  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       ` 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               ` 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                                   ` Jim Gettys
1999-04-15  4:00                                   ` Dave Cherkus
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                                           ` Thomas Womack
1999-04-22  4:00                                           ` John Pieper
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 [this message]
1999-04-12  4:00                   ` Justin Carlson
1999-04-14  4:00                     ` Anton Ertl
1999-04-14  4:00                       ` Jan Vorbrueggen
1999-04-14  4:00                       ` Justin Carlson
1999-04-11  4:00                 ` 21264 performance anomalies (was: Compaq to port ...) Michael Gschwind
1999-04-08  4:00               ` Compaq to port its Fortran and C compilers to Alpha Linux James D. Freels
1999-04-09  4:00                 ` Greg Lindahl
1999-04-11  4:00                 ` Michal Jaegermann
1999-04-09  4:00             ` Jim Gettys
1999-04-09  4:00               ` Toon Moene
1999-04-09  4:00                 ` Jim Gettys
1999-04-09  4:00               ` Anton Ertl
1999-04-09  4:00             ` bmeyer
1999-04-09  4:00               ` Anton Ertl
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             ` Greg Lindahl
1999-04-11  4:00             ` James Van Buskirk
1999-04-11  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                 ` James Van Buskirk
1999-04-14  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               ` Richard Levitte - VMS Whacker
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