Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.arch.embedded > #23772

Re: RAM Failure modes [long -- whiners don't read]

From Robert Wessel <robertwessel2@yahoo.com>
Newsgroups comp.arch.embedded
Subject Re: RAM Failure modes [long -- whiners don't read]
Message-ID <p7evhbhu9bbamuq011taoal6cle34bnakv@4ax.com> (permalink)
References <nfmmgh$h0k$1@dont-email.me> <nfnitl$4q2$1@dont-email.me> <nfo7vm$lss$1@dont-email.me>
Organization Forte - www.forteinc.com
Date 2016-04-26 14:08 -0500

Show all headers | View raw


On Tue, 26 Apr 2016 10:22:57 -0700, Don Y
<blockedofcourse@foo.invalid> wrote:

>On 4/26/2016 4:23 AM, David Brown wrote:
>> I would first ask why you are concerned about this.
>
>Obviously, because I am concerned with reliability and availability.
>
>> I assume you have
>> already thought about at least some of the points below (I know you are
>> not doing memory testing merely for fun!), but perhaps you have not
>> thought about them all, and perhaps answers to them can help you or
>> others to find answers to your specific questions.
>>
>> First, have you ever found memory problems with the systems you have?
>
>Historically?  Yes.  But, memory technology has improved greatly
>in the decades that have passed.  I'd never even consider a gigabit
>of memory built from 4kx1 devices!
>
>> My experience with memory is that it very rarely fails, and when it does
>> it is mostly a system problem (like poorly terminated buses, bad
>> connections, running beyond maximum speed, etc.) rather than an issue
>> with the memory itself.  Almost all memory errors will then be caught in
>> a brief check of address lines and data lines during production testing
>> - power-up or online testing is then unnecessary.
>
>That's not what the literature indicates.  Also, doesn't explain why
>ECC memory is used.
>
>> Secondly, what would you do if you found memory problems?  If you cannot
>> rely on your memory, it is difficult to rely on /anything/ in the
>> system.  On many systems with ECC memory, detection of an uncorrectable
>> error leads to immediate shutdown because it is better to stop /now/,
>
>That's not true.  You *expect* some number of errors in any memory subsystem.
>A more interesting question is "how many ECC *corrected* errors before you
>start worrying about the ability of your ECC to *detect* errors -- even
>uncorrectable ones.


It's not like there's a lack of literature on that subject...

But if you assume independence in bit errors, the calculation is for
uncorrectable faults is simple.  If you want to consider some
probability of more difficult failures (and entire chip, and entire
DIMM), those generate hard failures immediately, unless you add
heroics like DRAM sparing (basically RAID for RAM - IBM likes the term
"RAIM"), as is done on high end servers.

If you're just doing monitoring, and then preventive maintenance,
based on an accumulated soft error rate, there again has been a fair
bit of literature, but they all come to approximately the same
conclusion - soft errors are pretty rare for most devices, and on a
handful they tend to be much more common.  So the exact threshold is
actually not that important.  So a DIMM getting a soft error every few
months in ignorable, several per day is not, and there's little in the
real world between those.


>> that to risk causing more problems.  I have no idea what sort of systems
>> you are designing, but if you can't make such an immediate shutdown, and
>> you feel memory issues are a realistic issue, then perhaps you have no
>> choice but to use some sort of ECC memory or other redundancy rather
>> than trying to spot a problem after it has happened.
>
>Memory errors do not imply a system has erred.
>
>If I'm examining a page of memory that isn't currently executing
>(because the program's control is currently somewhere else in
>the text segment) and I find an error (hard or soft) and I
>correct it or replace that page BEFORE the program has a chance
>to execute any of the commands affected by that error, then
>the program hasn't been compromised.
>
>If I find an error that causes a bit to assume the value that it
>*should* assume (e.g., lsb of a location is stuck at one but the
>location is intended to hold the value '0x9') then, likewise, no
>problem.
>
>If I find an error that causes a bit to assume a BAD value -- but
>conditions in the program effectively make that irrelevant
>(e.g., the value specifies a timeout for an operation -- but,
>the operation still manages to successfully complete before the
>timeout expires), again, no problem.
>
>Etc.
>
>You can have a system apparently running successfully in spite
>of ongoing errors.
>
>Or not.
>
>The difference is, whether you KNOW about the errors or wait to
>find out about them by the system misbehaving (e.g., a watchdog
>kicking in or some other VERY INDIRECT measurement of reliability).
>
>If the only time you have to test memory is POST (or, an explicit
>BIST invoked by the user), then you have to rely on interrupting
>the normal services of your device in order to perform that test
>and (re)gain that confidence.
>
>      "We'll be making a stop in East Bumph*ck, Iowa, while we run
>      a regular test on the memory in our avionics systems.  We're
>      sorry for the delay and promise to have you back on your way
>      as soon as possible!"
>
>The point of my questions is to inquire as to how people see and
>expect to see memory failures -- in (external) DRAM as well as
>(internal) SRAM.
>
>As I suspect most folks only test at POST, how would they react to
>a situation where the user just happened NOT to shut down their
>product/system for 10 years?  Would they feel confident that it
>was still intact?  Executing (out of RAM) the same code that they
>loaded, there, 10 years earlier?  (bugs in their software can't
>corrupt the RAM's contents -- but the RAM can degrade!)


That's called scrubbing, and is fundamental to any redundant storage
scheme, RAM or disk.  Even if you have nothing but ordinary single bit
(for RAM) errors, the odds of that turning into an uncorrectable error
are just the amount of time the condition persists and the odds of
another bit in the protected block getting hit).  So you must scrub.

And proper machine check architectures do distinguish between
immediate errors and deferrable ones.  If you get a uncorrectable
memory error during an instruction fetch, that thread is going to be
dead.  But if scrubbing turns up an uncorrectable error, it can be
reported to the OS, which can deal with it at its leisure.  That could
be reloading the page (if possible), or killing every process that has
that page mapped (if it cannot be reconstructed).

Back to comp.arch.embedded | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

RAM Failure modes [long -- whiners don't read] Don Y <blockedofcourse@foo.invalid> - 2016-04-25 20:18 -0700
  Re: RAM Failure modes [long -- whiners don't read] Jasen Betts <jasen@xnet.co.nz> - 2016-04-26 08:09 +0000
    Re: RAM Failure modes [long -- whiners don't read] Don Y <blockedofcourse@foo.invalid> - 2016-04-26 10:46 -0700
  Re: RAM Failure modes [long -- whiners don't read] David Brown <david.brown@hesbynett.no> - 2016-04-26 13:23 +0200
    Re: RAM Failure modes [long -- whiners don't read] Don Y <blockedofcourse@foo.invalid> - 2016-04-26 10:22 -0700
      Re: RAM Failure modes [long -- whiners don't read] Dimiter_Popoff <dp@tgi-sci.com> - 2016-04-26 21:08 +0300
        Re: RAM Failure modes [long -- whiners don't read] Don Y <blockedofcourse@foo.invalid> - 2016-04-26 12:41 -0700
          Re: RAM Failure modes [long -- whiners don't read] Don Y <blockedofcourse@foo.invalid> - 2016-04-26 13:29 -0700
          Re: RAM Failure modes [long -- whiners don't read] Dimiter_Popoff <dp@tgi-sci.com> - 2016-04-27 00:21 +0300
            Re: RAM Failure modes [long -- whiners don't read] Don Y <blockedofcourse@foo.invalid> - 2016-04-26 17:35 -0700
              Re: RAM Failure modes [long -- whiners don't read] Dimiter_Popoff <dp@tgi-sci.com> - 2016-04-27 04:21 +0300
                Re: RAM Failure modes [long -- whiners don't read] Don Y <blockedofcourse@foo.invalid> - 2016-04-27 06:36 -0700
                Re: RAM Failure modes [long -- whiners don't read] Dimiter_Popoff <dp@tgi-sci.com> - 2016-04-28 02:47 +0300
                Re: RAM Failure modes [long -- whiners don't read] Dimiter_Popoff <dp@tgi-sci.com> - 2016-04-28 05:09 +0300
        Re: RAM Failure modes [long -- whiners don't read] David Brown <david.brown@hesbynett.no> - 2016-04-26 22:00 +0200
      Re: RAM Failure modes [long -- whiners don't read] Robert Wessel <robertwessel2@yahoo.com> - 2016-04-26 14:08 -0500
        Re: RAM Failure modes [long -- whiners don't read] Don Y <blockedofcourse@foo.invalid> - 2016-04-26 13:05 -0700
          Re: RAM Failure modes [long -- whiners don't read] Robert Wessel <robertwessel2@yahoo.com> - 2016-04-26 23:28 -0500
            Re: RAM Failure modes [long -- whiners don't read] Don Y <blockedofcourse@foo.invalid> - 2016-04-26 22:25 -0700

csiph-web