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-05 00:54:36 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!colt.net!newspeer.clara.net!news.clara.net!news-hub.cableinet.net!blueyonder!peer.news.eu-x.com!server2.netnews.ja.net!pegasus.csx.cam.ac.uk!nmm1 From: nmm1@cus.cam.ac.uk (Nick Maclaren) Newsgroups: comp.sys.dec,comp.arch Subject: Re: CPU failure in an SMP system (was Re: Compaq kills Alpha) Date: 5 Jul 2001 07:54:21 GMT Organization: University of Cambridge, England Message-ID: <9i16fd$nqk$1@pegasus.csx.cam.ac.uk> References: <993827646.193602@haldjas.folklore.ee> <9hsvq1$jd2$1@pyrite.mv.net> <9hv5kq$fft$1@bob.news.rcn.net> NNTP-Posting-Host: virgo.cus.cam.ac.uk Xref: archiver1.google.com comp.sys.dec:5260 comp.arch:13042 In article , Eric Smith wrote: >jmfbahciv@aol.com wrote about TOPS-10 SMP: >> The implementation, which was called and sold as SMP, could tolerate a >> CPU failure (with the exception of the last CPU failing). It also >> provided the system operator a way to gracefully remove a CPU and the >> other gear from the system without interrupting computing service to >> the hundreds of users that were logged in. > >Gracefully removing a working CPU isn't that hard. You force it to >suspend its running task (or wait for it to be suspended), then don't >allow it to dispatch a new task. In theory. In practice, the devil is in the details. You have to track and correct every occurrence of any form of CPU identification (don't forget I/O port addresses), any times since the last system even (such as reboot) and so on. Even dealing with the pure process data is hard, because you have to forge much of the state on the new CPU. And, with networking involved, you may also have to deal with the state on OTHER systems, not necessarily under your control. >Gracefully removing a CPU that failed while executing in user space is >reasonably easy. You kill the user task that was running. This assumes the original Unix model of absolutely privileged kernel and supervisor processes, absolutely unprivileged user processes and nothing else. It isn't the case even on Unix nowadays, and most variants have muddied the boundaries. >Gracefully recovering from a CPU failure in supervisor space is hard. >What do you do if that CPU was holding a semaphore at the time? On some >systems it isn't even easy to tell what semaphores are being held by >a given CPU. And even if you can tell, simply releasing the semaphores >isn't necessarily an appropriate action. The same applies to user processes, and has done for ages. For my sins, I am currently managing two Unices where a jammed user process will prevent a reboot. >But the hardest problem of all is *detecting* a failed CPU. Some failures >might be caught by hardware, e.g., parity or ECC on cache, TLB, or >microcode. Gross failures (CPU stops executing instructions) might be >detectable by having another CPU notice that the failed one is no longer >punching a watchdog. But many failures are very hard to detect, except >indirectly when they crash a user program, or the system. ... Not really. This is actually easier to deal with than the other cases, but needs doing at an entirely different level and in an entirely different way. One standard trick is to have 3 CPUs operating in parallel, and check that the results are all the same. If not, stop the CPU that is different. Regards, Nick Maclaren, University of Cambridge Computing Service, New Museums Site, Pembroke Street, Cambridge CB2 3QG, England. Email: nmm1@cam.ac.uk Tel.: +44 1223 334761 Fax: +44 1223 334679