From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,4820dfa6cb2bff3e X-Google-Attributes: gid102b75,public X-Google-Thread: 111c93,3626ccca6bb70e55 X-Google-Attributes: gid111c93,public From: Justin Carlson Subject: Re: 21264 performance anomalies Date: 1999/04/12 Message-ID: <7etets$kel@usenet.pa.dec.com>#1/1 X-Deja-AN: 465571735 References: <87d81hkqw0.fsf@pfaffben.user.msu.edu> <7ei0gg$1kg$1@news.tuwien.ac.at> <370CF898.BD85182@moene.indiv.nluug.nl> <7ej80q$o1a$1@news.tuwien.ac.at> <7eqq1b$3nr$1@localhost.best.com> Organization: Digital Equipment Corporation, Palo Alto, CA, USA User-Agent: tin/pre-1.4-980618 (UNIX) (OSF1/V4.0 (alpha)) Newsgroups: comp.os.linux.alpha,comp.arch In comp.arch Donald C. Lindsay wrote: > 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. 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? Justin Carlson carlson@pa.dec.com