comp.lang.ada
 help / color / mirror / Atom feed
From: "Dr. Adrian Wrigley" <amtw@linuxchip.demon.co.uk.uk.uk>
Subject: Re: pointer questions
Date: Wed, 02 Nov 2005 00:52:16 GMT
Date: 2005-11-02T00:52:16+00:00	[thread overview]
Message-ID: <pan.2005.11.02.00.51.10.448346@linuxchip.demon.co.uk.uk.uk> (raw)
In-Reply-To: RJi9f.3950$yX2.944@newsread2.news.pas.earthlink.net

On Mon, 31 Oct 2005 06:21:37 +0000, Jeffrey R. Carter wrote:

> Robert A Duff wrote:
> 
>> That's hard to believe.  Dr. Wrigley said the hardware failures turned
>> from "insideous" to "catastophic" when he changed some sort of Things to
>> pointers-to-Things.  I take that to mean, he got wrong answers before,
>> and crashes after.  Is that right, Dr. Wrigley?

I Thinks so, but the error rate was very low, so it is hard to tell.

> Thinking about it a little more, I get the idea that before he had 1 pointer to 
> a 1 GB data structure on the heap. Then he changed to a large number of pointers 
> to smaller data structures on the heap, equivalent to the previous 1 GB structure.

This is exactly the situation.  The "Things" were about 36 bytes each
and I changed to having around 20 million pointers to things.
Single bit errors in pointers had a much more significant effect
than single bit errors in "Things" (which tended to be ignored
for various reasons).

> With more pointers, there's a greater chance that one of the pointers might have 
> a bit flip, resulting in the occasional crash (1 crash every few months, IIRC).

Yes.

> Of course, this is sheer speculation.

well speculated! (was it so unclear?)

Another "feature" I observed was that files could stay cached by the OS
for months, and accumulate the occasional single-bit error.  But when you
evict the cached pages and read the data again, the errors disappear.
Plenty of scope for very rare Heisenbugs.

The warning I give is that these error rates are "normal" for modern SDRAM,
but aren't usually noticed because they usually only show up if
you have several GB of memory and care about every bit 24/7.
Operating a financial business, I care about this!
-- 
Adrian




  reply	other threads:[~2005-11-02  0:52 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-26 23:01 pointer questions Szymon Guz
2005-10-26 23:51 ` Gene
2005-10-26 23:58 ` tmoran
2005-10-27  1:12 ` Stephen Leake
2005-10-27  2:30 ` Steve
2005-10-27  5:56 ` Jeffrey R. Carter
2005-10-27 10:19   ` Szymon Guz
2005-10-27 14:14     ` Robert A Duff
2005-11-07  4:21       ` Dave Thompson
2005-10-27 14:11   ` Robert A Duff
2005-10-27 15:13     ` Marc A. Criley
2005-10-27 18:53       ` Jeffrey R. Carter
2005-10-27 17:29     ` Martin Dowie
2005-10-27 18:28       ` Marc A. Criley
2005-10-27 19:28         ` Martin Dowie
2005-10-28  0:12           ` Robert A Duff
2005-10-28 11:57           ` Dr. Adrian Wrigley
2005-10-28 21:26             ` Jeffrey R. Carter
2005-10-30 22:26               ` Robert A Duff
2005-10-31  6:21                 ` Jeffrey R. Carter
2005-11-02  0:52                   ` Dr. Adrian Wrigley [this message]
2005-11-02  3:46                     ` Jeffrey R. Carter
2005-11-02 11:16                       ` Dr. Adrian Wrigley
2005-11-02 13:39                     ` Robert A Duff
2005-11-02 15:34                     ` Bob Spooner
2005-11-02 18:59                     ` Björn Persson
2005-10-27 18:43     ` Jeffrey R. Carter
2005-10-28  0:42       ` Robert A Duff
2005-10-28  5:58         ` Martin Dowie
2005-10-28 21:24         ` Jeffrey R. Carter
2005-10-28 11:53     ` David
2005-10-29 12:25       ` Simon Wright
2005-10-27 17:19 ` Martin Krischik
2005-11-07  4:21   ` Dave Thompson
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox