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


Groups > comp.arch.embedded > #23775

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

From Don Y <blockedofcourse@foo.invalid>
Newsgroups comp.arch.embedded
Subject Re: RAM Failure modes [long -- whiners don't read]
Date 2016-04-26 13:05 -0700
Organization A noiseless patient Spider
Message-ID <nfohh9$u32$1@dont-email.me> (permalink)
References <nfmmgh$h0k$1@dont-email.me> <nfnitl$4q2$1@dont-email.me> <nfo7vm$lss$1@dont-email.me> <p7evhbhu9bbamuq011taoal6cle34bnakv@4ax.com>

Show all headers | View raw


On 4/26/2016 12:08 PM, Robert Wessel wrote:
> 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 the literature tends to be concerned with large memory arrays.
And, large memory arrays tend to be constructed differently.  And,
operated in different environments, attended by "professionals", etc.

> But if you assume independence in bit errors, the calculation is for

The literature suggests failures repeat.  So, its not a uniform distribution
across an entire device/array.  I.e., stumbling onto a soft error suggests
you're more likely to find another in that same spot than elsewhere.
(This, in turn, suggests you treat the soft error as if it is -- or will
become -- a hard error)

> 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.

Some studies show hard errors are more prevalent than soft; others
show the exact opposite.  A google study (big data farms) claimed
~50,000 FiT/Mb.  Further, it appeared to correlate error rates with
device age -- as if cells were "wearing out" from use.

And, its not "a soft error every few months" but, rather, several thousands
per year (per GB so figure I'm at 1/4 of that -- per device node!)

>>> 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.

But you can do more than that.  You can retire the affected memory
so it no longer presents a (potential) problem.

> 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

That isn't true, either.  What if the opcode should have been a
"jump if zero" and, instead, gets decoded (bad fetch) as "jump
unconditionally".  This only causes a problem if the value was NOT
zero!

And, even if it *was* zero, the consequences may not be fatal.
Maybe a light blinks a little faster.  Or, a newline gets inserted
in the middle of a line of text.  etc.

This can be happening all the time and no one could be the wiser!

OTOH, if something told you that it was likely happening -- and could
quantify that frequency -- you might be more predisposed to taking
remedial action before the fit hits the shan!

If the only assessment you make of the integrity of your memory
happens at POST, a cautious user would be reseting the device often
just to ensure POST runs often!

> 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