From: anton@mips.complang.tuwien.ac.at (Anton Ertl)
Subject: Re: 21264 performance anomalies
Date: 1999/04/22 [thread overview]
Message-ID: <7fnq55$n2p$1@news.tuwien.ac.at> (raw)
In-Reply-To: 371A0B6C.4E678E8@gmx.de
In article <371A0B6C.4E678E8@gmx.de>,
Bernd Paysan <bernd.paysan@gmx.de> writes:
> The other effect is also understandable:
> it's just like the Pentium doesn't like back-to-back branches, and when
> you move the jump into the next chunk, it's not a back-to-back branch.
Could be. I have done some more measurements: this time I aligned the
jump target, and had the load (+add) and the jump in various 16-byte
groups, and filled the rest of the instructions with nops and
unops.
I.e.
$L2:
{nop;unop;nop;unop}
ldq $1,0($2)
addq $2,8,$2
[nop;nop]
{nop;unop;nop;unop}
jmp $31,($1),0
This resulted in:
jump load group
group 0 1 2 3
0 1.12s
1 0.72s 2.64s
2 1.16s 2.68s 2.84s
3 1.12s 2.64s 2.82s 3.00s
4 1.28s 1.52s 2.82s 3.01s
5 1.44s 1.70s 1.70s 3.01s
6 1.62s 1.90s 1.89s 1.89s
If the load is not in group 0, the pattern seems to be: if the jump
happens before the loaded value is available (the load latency is 3
cycles), it mispredicts and does not update the next-line predictor of
the jump. For some reason it works a lot better with the load in
group 0.
I am a bit worried, because many of these patterns occur in a real
interpreter. However, I don't know how the presence of instructions
other than nops and unops affects these results (but my experiences
until now indicate that they do), so I probably should stop worrying
and wait until the optimization guide arrives.
- 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
next prev parent reply other threads:[~1999-04-22 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 ` 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 ` 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 ` 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 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 ` 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-22 4:00 ` Fred Kleinsorge
1999-04-22 4:00 ` John Pieper
1999-04-22 4:00 ` Thomas Womack
1999-04-19 4:00 ` peter
1999-04-20 4:00 ` Larry Kilgallen
1999-04-22 4:00 ` Anton Ertl [this message]
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 ` 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-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 ` Toon Moene
1999-04-09 4:00 ` Jim Gettys
1999-04-09 4:00 ` Anton Ertl
1999-04-08 4:00 ` Keith Higgs
1999-04-07 4:00 ` Jeffrey J. Potoff
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 ` 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