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 16:11:28 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn1feed!worldnet.att.net!135.173.83.71!wnfilter1!worldnet-localpost!bgtnsc05-news.ops.worldnet.att.net.POSTED!not-for-mail From: "Stephen Fuld" Newsgroups: comp.sys.dec,comp.arch References: <994096345.28736@haldjas.folklore.ee> <9hsnb2$jd7$1@bob.news.rcn.net> <9hsvq1$jd2$1@pyrite.mv.net> <9hv5kq$fft$1@bob.news.rcn.net> <994456524.940849@haldjas.folklore.ee> <9i9j5p$av7$4@bob.news.rcn.net> <994616870.688233@haldjas.folklore.ee> <9ia9d4$rmd$1@pyrite.mv.net> <9ic88e$qpi$3@bob.news.rcn.net> <994693256.857273@haldjas.folklore.ee> <9ieop7$7hi$6@bob.news.rcn.net> <994788870.117992@haldjas.folklore.ee> <9ik5fm$m0p$2@bob.news.rcn.net> Subject: Re: CPU failure in an SMP system (was Re: Compaq kills Alpha) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Message-ID: Date: Fri, 13 Jul 2001 23:11:28 GMT NNTP-Posting-Host: 12.72.161.141 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc05-news.ops.worldnet.att.net 995065888 12.72.161.141 (Fri, 13 Jul 2001 23:11:28 GMT) NNTP-Posting-Date: Fri, 13 Jul 2001 23:11:28 GMT Organization: AT&T Worldnet Xref: archiver1.google.com comp.sys.dec:5770 comp.arch:13934 wrote in message news:9ik5fm$m0p$2@bob.news.rcn.net... > In article <994788870.117992@haldjas.folklore.ee>, > Sander Vesik wrote: > >In comp.arch jmfbahciv@aol.com wrote: > >I wrote: > >>> > >>>Why would write-back cache compromise data integrity? > > > >> Having a merely a write-back function doesn't guarantee > >> that the data gets to main memory in case another CPU > >> wants to access that data. > > > >No, that is the function of coherency. > > Argghh. I'm having word problems. What is a function that > you call coherency? The write-back or the write-through? > I think all of the answers to the confusion you are having are in the various posts, but to try to make things easier, let me try to restate what they have said on one place. If I get it wrong, I am sure someone will correct me. Write back/write thru - refers to a property of caches. This is an issue even on a single CPU machine. The key issue here is whether a store instruction causes the updated data in the cache to be written to the next level of the memory hierarchy. Write thru caches cause that to be done, essentially as a direct result of the store. Write back caches will have to write it back eventually, but will try to delay the write back until necesary. Performance is usually better with write back, but it complicates some error recovery issues. On a write back cache, invalidating the cache before the write to the next level of the hierarchy will probably cause data corruption (unless you know the data won't be used). On a write thru cache, invalidation of the data after the store won't cause data coruption because the data is in the next lowest level, but may not be a good idea for performance reasons. Refresh - a property of DRAM chips. This is invisible to the software (except prhaps timing) but is known to the circuit board designer. It is well explained in Dennis's post Restore - a property of many kinds of memory systems, including DRAMs and magnetic core. It is invisible to the software and to the circuit board designer (at least for DRAMD) but is important for the guy who designs the DRAM chips. For core, it was known to the people who designed the memory controller, but unknown (again, except for possible timing) to the guys who designed the CPU. Cache coherency - an issue for systems with multiple caches. It is the question of how, given a store to a cache in one CPU, does another CPU know that the data has been updated so it doesn't operate on stale data. There are several different solutions to this problem. It is related to the write back/ write through issue in that the coherency protocol has to be designed with that in mind. the refresh and restore have no impact on the coherency design. I hope that helps. -- - Stephen Fuld