From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,5747331edea7cbab X-Google-Attributes: gid1164f8,public X-Google-Thread: 102b75,85404311f8041f7a X-Google-Attributes: gid102b75,public X-Google-ArrivalTime: 2001-07-11 10:29:33 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed1.cidera.com!news.mv.net!not-for-mail From: "Bill Todd" Newsgroups: comp.sys.dec,comp.arch Subject: Re: CPU failure in an SMP system (was Re: Compaq kills Alpha) Date: Wed, 11 Jul 2001 13:33:22 -0400 Organization: Why won't Outlook let me leave this blank? Message-ID: <9ii2dg$jcr$1@pyrite.mv.net> 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> <994856347.447852@haldjas.folklore.ee> <9ihoat$40q$5@bob.news.rcn.net> NNTP-Posting-Host: bnh-2-10.mv.com X-Trace: pyrite.mv.net 994872560 19867 199.125.99.74 (11 Jul 2001 17:29:20 GMT) X-Complaints-To: abuse@mv.com NNTP-Posting-Date: 11 Jul 2001 17:29:20 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.sys.dec:5601 comp.arch:13654 wrote in message news:9ihoat$40q$5@bob.news.rcn.net... > In article <994856347.447852@haldjas.folklore.ee>, > Sander Vesik wrote: ... > >But you write back to the cache, not the memory, and the next instruction > >just fetches the data from the cache... > > Not on all CPU architectures. Not on all hardware implementations > of those architectures. A program at the application level should > never have to distinguish between memory and cache. A monitor > should be able to distinguish between memory and cache. The > hardware should be able to make it easy for the monitor to > do that distinguishing. > > If I'm writing some code in assembler language, I should be > able to assume that execution will be linear and obey > my program flow _as I wrote it_. Of course, I'm of that age > where program flow charts were used. It's possible you're just completely unfamiliar with how modern SMPs work (Greg Pfister's "In Search of Clusters" IIRC has a good introductory section on this topic, and a great deal of other good background as well). The cache hardware in each processor snoops the memory bus (or uses other mechanisms) such that it knows if some other processor is requesting data that's dirty in its own local cache and makes sure that the other processor gets the most up-to-date version of that data. This means that cached dirty data can be written back (rather than written through) to memory to obtain performance advantages (coalescence of multiple updates to data in the same cache line) without compromising the distributed coherence of the system (the performance impact of ping-ponging cached data between multiple updating processors varies with different implementations, but applies only when actual contention for a cache line occurs rather than impacting every update as write-through caching does). - bill > > /BAH > > Subtract a hundred and four for e-mail.