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-04 23:10:13 PST Sender: eric@ruckus.brouhaha.com From: Eric Smith Newsgroups: comp.sys.dec,comp.arch Subject: CPU failure in an SMP system (was Re: Compaq kills Alpha) References: <993827646.193602@haldjas.folklore.ee> <9hkj7t$p05$1@bob.news.rcn.net> <993919304.195352@haldjas.folklore.ee> <9hn02h$lla$5@bob.news.rcn.net> <994085141.240641@haldjas.folklore.ee> <9hq3sl$ab2$2@bob.news.rcn.net> <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> Organization: Eric Conspiracy Secret Labs X-Eric-Conspiracy: There is no conspiracy. User-Agent: Gnus/5.0807 (Gnus v5.8.7) Emacs/20.7 Date: 04 Jul 2001 23:10:11 -0700 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii NNTP-Posting-Host: ruckus.brouhaha.com X-Trace: 4 Jul 2001 23:33:22 -0700, ruckus.brouhaha.com Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.kjsl.com!news.spies.com!ruckus.brouhaha.com Xref: archiver1.google.com comp.sys.dec:5254 comp.arch:13034 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. Gracefully removing a CPU that failed while executing in user space is reasonably easy. You kill the user task that was running. 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. 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. For instance, suppose one bit of an adder in the address generation path fails, such that at rare intervals the wrong operand is used. Since no one seems to have found a surviving copy of the TOPS-10 SMP code, we can't examine it to see exactly what kind of failures it could really deal with. If you need true fault tolerance, and want it as a general-purpose mechanism rather than application-specific code, the only practical approach is usually hardware redundancy. If you have two identical units of the hardware working in lockstep, you can detect mismatches in computed results. This is sometimes known as FRC (Functional Redundancy Checking). However, if there is a mismatch, you can't readily tell which of the two units failed. Thus FRC by itself only provides fault detection, not fault tolerance. With three units you can use voting, on the assumption that it is unlikely that the two units in agreement have both failed at the same time in the same manner. Another approach is to use two pairs of FRC units. The pairs operate in lockstep, but don't have to be compared. (There's still comparision within the FRC pairs). Intel called this QMR (Quad Modular Redundancy). If one FRC pair detects a failure, the other FRC pair still has valid state. The system can take the failed pair offline, and possibly run diagnostics to determine which unit in the FRC pair is actually bad. The system can either run the remaining FRC pair in a non-fault-tolerant manner, shut it down and move its load to remaining fault-tolerant nodes, or join the remaining FRC pair with a spare to bring it back to QMR.