From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102b75,85404311f8041f7a X-Google-Attributes: gid102b75,public X-Google-Thread: 1164f8,5747331edea7cbab X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-07-13 01:48:20 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!195.224.53.60!xara.net!gxn.net!server6.netnews.ja.net!newsfeed.ed.ac.uk!holyrood.ed.ac.uk!pboyle From: Peter Boyle Newsgroups: comp.sys.dec,comp.arch Subject: Re: CPU failure in an SMP system (was Re: Compaq kills Alpha) Date: Fri, 13 Jul 2001 09:48:18 +0100 Organization: Edinburgh University Message-ID: References: <994616870.688233@haldjas.folklore.ee> <9ia9d4$rmd$1@pyrite.mv.net> <994669498.392616@haldjas.folklore.ee> <9ic7t1$qpi$2@bob.news.rcn.net> <994693157.444120@haldjas.folklore.ee> <9ieom7$7hi$5@bob.news.rcn.net> <994788809.635761@haldjas.folklore.ee> <9ihggj$6ag$3@bob.news.rcn.net> <3b4c75ea$0$25358$6e365a64@newsreader02.highway.telekom.at> <9ik7r7$1s3$3@bob.news.rcn.net> <9ikjh9$11d2$1@news.rchland.ibm.com> <9ilud8$464$1@nnrp2.phx.gblx.net> <9im1od$4e1$1@nnrp2.phx.gblx.net> NNTP-Posting-Host: holyrood.ed.ac.uk Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: scotsman.ed.ac.uk 995014098 7924 129.215.16.14 (13 Jul 2001 08:48:18 GMT) X-Complaints-To: usenet@scotsman.ed.ac.uk NNTP-Posting-Date: 13 Jul 2001 08:48:18 GMT In-Reply-To: <9im1od$4e1$1@nnrp2.phx.gblx.net> Xref: archiver1.google.com comp.sys.dec:5721 comp.arch:13862 On Thu, 12 Jul 2001, Dennis O'Connor wrote: > No, that's actually not always true. If you can guarantee that you > will never need the data in the write-back cache again, you can > safely invalidate it without flushing it first. There are actually > quite a few circumstances when you can do this, and I actually had Ok, I'll bite with a few. 1. Standard algorithm for cache flush on PPC is to zero out a cache sized region at a scratch address then flash invalidate the cache. 2. If you want to wing and a prayer it by having (device)DMA accessible memory cacheable for performance reasons, you enforce software coherency with an invalidate after the dma has gone underneath cache. 3. Large temporaries on stack. Why leave them to be flushed out when you can nuke em. 4. Not exactly the same but code relocations are easier if you invalidate the Icache. etc... Peter > written them out, and then I decided I might be derelict in my duty > to my employer to post them. But think about it: when in a program > do you know that you will never need the last results you wrote > to an area of memory ? Feel free to share what you come up with. > > > When the cache line is dirty with a writeback cache and you > > need to free the cache line, its called a "victim write" and the data is > > written somewhere more persistent, which may or may not be memory. > > But in the processors I'm familiar with, SW can choose to explicitly > invalidate a line, even if it is dirty. > -- > Dennis O'Connor dmoc@primenet.com > Vanity Web Page http://www.primenet.com/~dmoc/ > > > > Peter Boyle pboyle@physics.gla.ac.uk