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 05:56:02 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!feed1.news.rcn.net!rcn!207-172-245-240 From: jmfbahciv@aol.com Newsgroups: comp.sys.dec,comp.arch Subject: Re: CPU failure in an SMP system (was Re: Compaq kills Alpha) Date: Thu, 05 Jul 01 10:17:13 GMT Organization: UltraNet Communications, Inc. Message-ID: <9i1o3m$ii5$1@bob.news.rcn.net> 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> X-Trace: UmFuZG9tSVYlnG2c0p+GwVRO31Y6ObiwnJD5vaeaXd49993SAy5pBM6BwVVHK91F X-Complaints-To: abuse@rcn.com NNTP-Posting-Date: 5 Jul 2001 12:55:18 GMT X-Newsreader: News Xpress Version 1.0 Beta #4 Xref: archiver1.google.com comp.sys.dec:5272 comp.arch:13060 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. It was to implement it . > ..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. You also have to shut down traffic on the data paths out to memory, controllers, devices, and tell the other CPUs who request a bit of your time that you're unavailable. If you have a network connection, some of those servers outside of the CPU can't handle a "no". You also have to have a strategy for those users who gave the command SET CPU ONLY CPUn where n is the CPU going down. >Gracefully removing a CPU that failed while executing in user space is >reasonably easy. You kill the user task that was running. No, no. You don't kill it. A graceful shutdown puts the user task out for another CPU to service. There are exceptions when you do have to kill the user task. > >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? That's why you need to make the CPU driver reentrant and be very careful about where and how CPU-specific data is defined. > .. 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. This is when hardware and software cooperation during the design phase is important. An experienced software guy can tell the hardware guy what is useful...and more importantly, what sucks. > >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. That's one piece of code that JMF did. Another that seems to have been lost is the code done when he was on the Unix project to do SMP. That code appears to have disappeared also. There were papers written. One was about TOPS-10. Another was about the Unix effort; I think the Unix paper is still the property of Compaq. >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. Right. That's why the TOPS-10 people didn't consider it. JMF thought of it as a very expensive way to flip a coin. > >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. It used to be that this kind of care was necessary only in places where men couldn't go to look at the machine...like space. Are there now other niches where this kind of care is required? /BAH Subtract a hundred and four for e-mail.