Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.arch.embedded > #23765
| From | David Brown <david.brown@hesbynett.no> |
|---|---|
| Newsgroups | comp.arch.embedded |
| Subject | Re: RAM Failure modes [long -- whiners don't read] |
| Date | 2016-04-26 13:23 +0200 |
| Organization | A noiseless patient Spider |
| Message-ID | <nfnitl$4q2$1@dont-email.me> (permalink) |
| References | <nfmmgh$h0k$1@dont-email.me> |
On 26/04/16 05:18, Don Y wrote:
> [crossposted; feel free to elide either group in your reply]
>
> I have typically tested "RAM" (writeable memory) in POST for
> gross errors. Usually, a couple of passes writing, then reading
> back the output of a LFSR derived PRNG with a long and "relatively
> prime" period. (One goal of POST being 'short and sweet')
>
> This catches "stuck at" errors, decode errors, etc. It does
> very little by way of catching soft errors (unless it gets lucky).
>
> For modest amounts of memory and relatively short power-on times
> (hours/days), this has been satisfactory.
>
> But, for larger memory configurations and much longer up-times
> (weeks/months/years), I suspect not so much.
>
> My question(s) concern internal (MCU) memory (typ static or psuedostatic)
> and external (DRAM) memory.
>
> Additionally, memory that is used to store code (r/o) as well as data.
>
> "Code" is protected from accidental overwrites by hardware (so, only
> "suspect" if that hardware fails *or* software deliberately disables
> it -- bug, no need to worry about those).
>
> "Data" is, well, data; hard to really know WHAT it should be at any
> time (unless I wrap everything in monitors, etc.).
>
> All the memory is "soldered down" so no issues with flakey connectors,
> vibration, etc. ECC is not (easily) available' I'd have to create and
> verify syndromes with external logic and would be unable to do anything
> more than complain (crash) when an error was detected (no ability to
> rerun bus cycles)
>
> Assume operating conditions are "within published specifications".
> Separately, I'll ask the value of putting in hardware to VERIFY that
> is true, ongoing.
>
> BEYOND POST...
>
> I can verify the contents of "code" memory by simply running ongoing
> checksums (hashes) periodically. I.e., compute the hash when the code
> is loaded; then verify it remains unchanged during execution.
>
> I can regularly check pages of memory as they are released from use
> ("free") as well as regularly swap out in use pages (code or data)
> for analysis.
>
> I can coordinate groups of such pages -- at some difficulty and cost
> (in terms of idled resources) -- to check for decode errors.
>
> And, of course, rely on various watchdogs/daemons to HOPEFULLY spot
> behaviors that manifest as the result of corrupted data or code.
>
> There are, of course, run time costs for all of this (which I can
> bear -- IF they are fruitful).
>
> [I'm operating in the 1Mb internal SRAM, 2Gb DRAM (DDR2/LPDDR) arena.]
>
> So, the questions I have are:
>
> - what are the typical POST DELIVERY failure modes for DRAM technologies?
> internal SRAM/PSRAM?
> - how do these correlate with product age, temperature, etc.? (is it
> more effective to MORE tightly control certain aspects of the
> environment)
> - is it worthwhile to monitor the environment and signal operating
> conditions
> that are suggestive of memory failures (instead of hunting for broken
> bits)?
> - is it better to just "refresh" memory contents inherently in the design
> than to rely on them remaining static and unchanged?
I would first ask why you are concerned about this. 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?
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.
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 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.
Back to comp.arch.embedded | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll 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