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


Groups > sci.electronics.design > #409263

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

From Don Y <blockedofcourse@foo.invalid>
Newsgroups sci.electronics.design
Subject Re: RAM Failure modes [long -- whiners don't read]
Date 2016-04-26 01:47 -0700
Organization A noiseless patient Spider
Message-ID <nfn9pd$5e2$1@dont-email.me> (permalink)
References <nfmmgh$h0k$1@dont-email.me> <c6943a51-04c2-4c7d-834a-9ddeeb579a04@googlegroups.com>

Show all headers | View raw


On 4/25/2016 10:54 PM, mrdarrett@gmail.com wrote:
> Have you considered running Memtest86 for a few weeks?
>
> It is available for free as part of the Linux Mint package, and likely other
> Linux distributions as well.
>
> Perhaps you are proposing modifications to Memtest86, where you methodically
> read from a memory location a few hours or days after it was written to.

You're missing the point.  I'll try to put it in Linux-ish terms
(though I don't run Linux so my specifics are more *BSD-centric).

[(sigh) This is going to get longer...  :< ]

Imagine you are booting a Linux system from a CD.  No hard disk
available.  So, the only place to store stuff is in RAM.  The
machine does not have ECC capabilities so you have no way of
detecting/correcting errors in memory as they occur.

But, you expect errors to creep in, over time!  Given enough
time, the RAM devices will ultimately FAIL; between now and then,
they will exhibit an assortment of errors -- some permanent
(*stuck* at 1 or 0) and some soft/temporary.

The kernel boots and loads into RAM.  Eventually, the userland
starts up -- also running (/bin/sh) out of RAM.  From there,
you (user) launch programs and the system runs like this for
weeks/months/etc.

Each "program" is loaded (copied from some set of files on the CD)
into its own virtual memory space.  So, several of these virtual
memory spaces coexist alongside each other (yet isolated from each
other) at the same time.

In theory, you know where each program came from (on the CD) and
could potentially compare the contents of the virtual memory
currently EXECUTING "program X" with the original contents of
"program X" as it still resides on the CD.

Or, you could save yourself the hassle of comparing byte-by-byte
and just recompute the checksum for the copy of program X that
is executing in memory and compare that checksum to the checksum
for the original CD copy of the program.

In this way, you could reassure yourself that the program, IN MEMORY,
is still the same program that you loaded; that none of its contents
have degraded in the time elapsed since it was loaded (due to memory
errors).

You could do this for EVERY program that is currently running on
that machine -- including the kernel -- to effectively test the
physical memory WHILE THE PROGRAMS ARE USING IT!  I.e., without
stopping the programs or rebooting the OS.  The "checker" program
just looks like a very special program that runs just like any other
program -- taking some portion of the CPU's resources to do its
job.

Of course, the more often you do this, the more time gets "wasted";
taken away from the other programs that, presumably, are doing "real
work".  But, it gives you a sense of how reliable the system is at
a given time and, hopefully, a predictor of impending failure

Note that a memory error detected in a portion of a program that is not
actually being executed -- that PORTION of the program -- at the present
time isn't a manifest failure!  It's only when that corrupted memory
gets referenced BY the program that you risk defective behavior!

Similarly, a memory error in a portion of memory that *is* being referenced
may not have deleterious (or even noticeable!) impact on the program.
If, for example, the instruction that determines the blink rate for the
cursor changes from specifying a period of "1" second to "2" seconds, the
user probably would never notice.

Likewise, if the error is "permanent" and forces that '1' to always be
"an odd number" (i.e., the least significant bit is stuck on), then
'1' still satisfies that memory limitation!  So, "No user detectable error"

With a virtual memory subsystem, you can "play games" with how you
handle physical memory.  For example, you can take a "page" of memory
in one process's (program's) address space and replace it with ANOTHER
*physical* page of memory -- without the program being aware of it.

As such, I can take a section of program A, copy it into another piece
of physical memory, then SWAP the original piece of physical memory
that contained that portion of the program with the "new copy" of
that portion.  When the program looks at it's "logical memory", it
sees all the same values in all the same places; it continues to
run as if nothing had happened!

Meanwhile, I've removed that old piece (page) -- complete with its
previous contents -- and can conduct more extensive tests on it...
WHILE THE PROGRAM IS BUSILY USING THE REPLICA of that page!

So, I can try to change that '1' to a '6' and ultimately see that
it changes to a '7'!  (because the least significant bit is stuck ON).
Knowing this, I can decide that this page of PHYSICAL memory is broken
and mark it as such -- so nothing else will reuse it (because that
"something else" might want to store a 6 in that location and would
experience a failure when the 6 turned into a 7!)

Or, I might fill the memory page with a set of unique values:
1, 2, 3, 4, 5, 6, 7, 8, ...  Then, go back to verify them and find
2, 2, 4, 4, 6, 6, 8, 8, ... if, for example, the decode logic in the
memory device is not letting the least significant address line assume
a '0' state (so address 0000 actually appears as 0001, 0001 also appears
as 0001, 0010 appears as 0011, 0011 appears as 0011, etc.) -- a "decode"
error.

Or, maybe hammer away at the "page" for a while and discover that,
sometimes, location 27 screws up -- and other times it doesn't.

Etc.

Of course, if the physical memory in question is not currently being
USED (by the kernel or some other "program"), then I can play with it
as much as I like -- there is nothing that was contained in it that needs
to be preserved!

The point of all of this is to be doing it WHILE THE NORMAL PROGRAM(s)
ARE RUNNING.  *Not* as part of POST.  Not as part of a diagnostic
program that is running IN LIEU OF the real application(s).

Capisc?

In light of this, my questions can be restated as:
- how does DRAM fail, over time (i.e., days/weeks/months after it has
   passed final test at the manufacturing facility where it has been
   integrated into this product)?
- same question for internal MCU SRAM/PSRAM?
- i.e., do bits get "stuck"?  do they get "intermittent"?  do they
   dislike being warm?  are they more likely to misremember when the
   power supply is at the low end of it's normal operating conditions?
   or, the high end?  are better results obtained by executing stricter
   controls on the environment (tighter Vcc, temperature, power supply
   ripple, etc.) and not bothering to "test"?
- is monitoring the physical/electrical environment a better predictor
   of memory integrity than all of this brute force testing (that *hopes*
   to catch a bit in the act of defying its intended state)?
- instead of testing, is it better to just constantly "rewrite" the
   data in memory (refresh it, so to speak) even though nothing is
   *supposed* to be altering it?

Back to sci.electronics.design | 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] mrdarrett@gmail.com - 2016-04-25 22:54 -0700
    Re: RAM Failure modes [long -- whiners don't read] "Tim Williams" <tiwill@seventransistorlabs.com> - 2016-04-26 02:57 -0500
      Re: RAM Failure modes [long -- whiners don't read] DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-26 04:02 -0400
      Re: RAM Failure modes [long -- whiners don't read] DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-26 04:07 -0400
      Re: RAM Failure modes [long -- whiners don't read] DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-26 04:09 -0400
      Re: RAM Failure modes [long -- whiners don't read] Don Y <blockedofcourse@foo.invalid> - 2016-04-26 02:19 -0700
        Re: RAM Failure modes [long -- whiners don't read] upsidedown@downunder.com - 2016-04-27 10:05 +0300
          Re: RAM Failure modes [long -- whiners don't read] Don Y <blockedofcourse@foo.invalid> - 2016-04-27 05:19 -0700
            Re: RAM Failure modes [long -- whiners don't read] upsidedown@downunder.com - 2016-04-27 23:07 +0300
    Re: RAM Failure modes [long -- whiners don't read] Don Y <blockedofcourse@foo.invalid> - 2016-04-26 01:47 -0700
      Re: RAM Failure modes [long -- whiners don't read] Rob <nomail@example.com> - 2016-04-26 09:23 +0000
        Re: RAM Failure modes [long -- whiners don't read] Don Y <blockedofcourse@foo.invalid> - 2016-04-26 03:11 -0700
          Re: RAM Failure modes [long -- whiners don't read] DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-26 07:45 -0400
            Re: RAM Failure modes [long -- whiners don't read] Stephen Wolstenholme <steve@easynn.com> - 2016-04-26 14:04 +0100
              Re: RAM Failure modes [long -- whiners don't read] Don Y <blockedofcourse@foo.invalid> - 2016-04-26 10:04 -0700
                Re: RAM Failure modes [long -- whiners don't read] Rob <nomail@example.com> - 2016-04-26 17:24 +0000
                Re: RAM Failure modes [long -- whiners don't read] Don Y <blockedofcourse@foo.invalid> - 2016-04-26 10:41 -0700
                Re: RAM Failure modes [long -- whiners don't read] Rob <nomail@example.com> - 2016-04-26 21:29 +0000
                Re: RAM Failure modes [long -- whiners don't read] DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-26 22:22 -0400
                Re: RAM Failure modes [long -- whiners don't read] DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-26 22:24 -0400
                Re: RAM Failure modes [long -- whiners don't read] DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-26 22:25 -0400
                Re: RAM Failure modes [long -- whiners don't read] jrwalliker@gmail.com - 2016-04-27 00:18 -0700
                Re: RAM Failure modes [long -- whiners don't read] Don Y <blockedofcourse@foo.invalid> - 2016-04-27 05:38 -0700
      Re: RAM Failure modes [long -- whiners don't read] DecadentLinuxUserNumeroUno <DLU1@DecadentLinuxUser.org> - 2016-04-26 07:42 -0400
  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

csiph-web