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-10 08:52:25 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!cpk-news-hub1.bbnplanet.com!news.gtei.net!news-FFM2.ecrc.net!news.siemens.de!news.mch.sbs.de!not-for-mail From: Konrad Schwarz Newsgroups: comp.sys.dec,comp.arch Subject: Re: CPU failure in an SMP system (was Re: Compaq kills Alpha) Date: Tue, 10 Jul 2001 17:52:05 +0200 Organization: SIEMENS AG Message-ID: <3B4B24A5.5E40E2F3@mchpDOTsiemens.de> References: <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> <994669498.392616@haldjas.folklore.ee> <9ic7t1$qpi$2@bob.news.rcn.net> <994693157.444120@haldjas.folklore.ee> <9ieom7$7hi$5@bob.news.rcn.net> NNTP-Posting-Host: mhpa501c.mchp.siemens.de Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.5 [de]C-CCK-MCD FS SBS (WinNT; I) X-Accept-Language: de,en Xref: archiver1.google.com comp.sys.dec:5507 comp.arch:13490 jmfbahciv@aol.com schrieb: > >> Wait a minute...There's a difference between write-back and > >> write-through. A write-back means that the cache memeory > >> doesn't change if it gets touched. The write-through means > >> that what gets changed in the cache is guaranteed to get > >> changed in the memory _at the hardware level_ and doesn't > >> require smart programs to ensure data integrity. > > > >Yes and no - write-back cache does not immediately write back data, > > But it has to write back immediately with > read-modify-write instructions. Am I tripping > over my ignorance about today's hardware? 1. Symmetric MP means that memory and IO looks the same from all CPUs. This is easy to achieve with bus-based systems: all CPUs hang off the same bus as memory and the memory-based IO. Routing interrupts properly is more diffult and requires special HW support. (This means that one and only one CPU's interrupt request line is asserted for any specific interrupt request. However, each CPU must be able to handle any interrupt request in the system; otherwise the system is no longer symmetric.) 2. Cache coherency on SMP is achieved using snooping: the CPU/cache's bus interface "snoops" for requests for memory lines cached within it; modified lines are either written out to main memory and the access retried or the cache serves the memory request directly. 3. Nobody (except Intel) has atomic read/modify/write instructions. (Some embedded processors also have swap, but this is insufficient for efficient scheduling, to my knowlege.) Instead, they have load-locked/store conditional instruction sequences which can emulate r/m/w using a loop. Synchronization is achieved using a variant of the mutex/event variable (or binary semaphore initialized to zero/one) "patterns". Mutual exclusion between processors is done using spin locks: using l-l/s-c until the store succeeds. Propagating events must be done by asserting interrupts, but I don't know if this is really necessary. 4. Snooping ensures spin lock memory consistency. 5. NUMA is more complicated; I can't tell you how it works.