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-06 15:10:06 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!fr.clara.net!heighliner.fr.clara.net!skynet.be!newsfeed1.funet.fi!newsfeeds.funet.fi!newsfeed.uninet.ee!news.ut.ee!not-for-mail From: Sander Vesik Newsgroups: comp.sys.dec,comp.arch Subject: Re: CPU failure in an SMP system (was Re: Compaq kills Alpha) Date: Fri, 6 Jul 2001 22:09:19 +0000 (UTC) Message-ID: <994457359.102720@haldjas.folklore.ee> References: <993827646.193602@haldjas.folklore.ee> <9hsvq1$jd2$1@pyrite.mv.net> <9hv5kq$fft$1@bob.news.rcn.net> <9i16fd$nqk$1@pegasus.csx.cam.ac.uk> NNTP-Posting-Host: haldjas.folklore.ee X-Trace: kadri.ut.ee 994457359 5392 193.40.6.121 (6 Jul 2001 22:09:19 GMT) X-Complaints-To: usenet@kadri.ut.ee NNTP-Posting-Date: Fri, 6 Jul 2001 22:09:19 +0000 (UTC) User-Agent: tin/pre-1.4-19990413 ("Endemoniada") (UNIX) (FreeBSD/4.3-RELEASE (i386)) Cache-Post-Path: haldjas.folklore.ee!unknown@localhost X-Cache: nntpcache 2.3.2 (see http://www.nntpcache.org/) Xref: archiver1.google.com comp.sys.dec:5346 comp.arch:13237 In comp.arch Nick Maclaren wrote: > 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 The sooner we get rid of those, the better 8-) > 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. Well, something that makes physical (and not logical) CPU IDs visible over the network is IMHO just plain evil... >>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. Well, yes, you will need to treat any process having device space mapped into it's address space - or a special file that allows non-recoverable by a mere file close operations (these shouldn't exist) process as part of the kernel. >>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. This of course means that any such cpu must use really deterministic pseudo-random in it's pseudo-random (or random) generators. Which can be both a good or a bad thing (well, lots of the present 'pseudo randoms used in processors are anything but random)... > 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 -- Sander FLW: "I can banish that demon"