From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,2fe965218100c2bd X-Google-Attributes: gid102b75,public X-Google-Thread: f678f,2fe965218100c2bd X-Google-Attributes: gidf678f,public X-Google-ArrivalTime: 1994-03-03 15:32:40 PST Xref: gmd.de comp.arch:20067 comp.unix.osf.misc:1065 Newsgroups: comp.arch,comp.unix.osf.misc Path: gmd.de!Germany.EU.net!netmbx.de!zrz.TU-Berlin.DE!cs.tu-berlin.de!math.fu-berlin.de!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!vixen.cso.uiuc.edu!sdd.hp.com!think.com!spdcc!das-news.harvard.edu!das-news!tlb From: tlb@chardonnay.harvard.edu (Trevor Blackwell) Subject: Re: Strange behaviour of Alpha Floating Point Load/Stores wrt cache misses In-Reply-To: tlb@chardonnay.harvard.edu's message of Thu, 3 Mar 1994 02:53:56 GMT Message-ID: Sender: usenet@das.harvard.edu Organization: Harvard University References: Date: Thu, 3 Mar 1994 23:32:40 GMT > I am pretty sure I am controlling for all extraneous factors. My > measurement code runs 100 times, only referencing an array where it > sticks the running time. All the code fits in the I-cache. I'm not > getting interrupts (the whole measurement takes about 10 uS, and the > effect of interrupts is real obvious when they do occur.) The whole > shebang (code & data) fits in the off-chip B-cache, and my flush > vector should not flush the register load/store areas out of there. Well, I controlled them all except one. In order that I could call the context switch code from a C program, I replaced the loads and stores to all the miscellaneous registers, with loads and stores to $31 (the one which reads as zero). It turns out that the instruction LDQ $31,address is a NOP - it never actually references any memory. I am quite surprised that it actually does this - I'm sure on a MIPS or most other RISCs it would do the load anyway, and just let the bits fall off the end of the wire in the register file. So that explains everything. It even sort of suggests that this might happen in the manual. In fact, it appears that the way Dirk Grunwald originally wrote the AweSime context switcher is the fastest way possible - loads and stores interleaved. -- -- Trevor Blackwell tlb@das.harvard.edu (617) 495-8912 (info and words of wit in my .plan) Disavowal: My opinions.