login
Header Space

 
 

ECC and DMA to/from disk controllers

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linux Kernel Mailing List <linux-kernel@...>
Cc: Bruce Allen <ballen@...>, Bruce Allen <bruce.allen@...>
Date: Monday, September 10, 2007 - 8:19 am

Dear LKML,

Apologies in advance for potential mis-use of LKML, but I don't know where 
else to ask.

An ongoing study on datasets of several Petabytes have shown that there 
can be 'silent data corruption' at rates much larger than one might 
naively expect from the expected error rates in RAID arrays and the 
expected probability of single bit uncorrected errors in hard disks.

The origin of this data corruption is still unknown.  See for example 
http://cern.ch/Peter.Kelemen/talk/2007/kelemen-2007-C5-Silent_Corruptions.pdf

In thinking about this, I began to wonder about the following.  Suppose 
that a (possibly RAID) disk controller correctly reads data from disk and 
has correct data in the controller memory and buffers.  However when that 
data is DMA'd into system memory some errors occur (cosmic rays, 
electrical noise, etc).  Am I correct that these errors would NOT be 
detected, even on a 'reliable' server with ECC memory?  In other words the 
ECC bits would be calculated in server memory based on incorrect data from 
the disk.

The alternative is that disk controllers (or at least ones that are meant 
to be reliable) DMA both the data AND the ECC byte into system memory. 
So that if an error occurs in this transfer, then it would most likely be 
picked up and corrected by the ECC mechanism.  But I don't think that 
'this is how it works'.  Could someone knowledgable please confirm or 
contradict?

Cheers,
 	Bruce
-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
ECC and DMA to/from disk controllers, Bruce Allen, (Mon Sep 10, 8:19 am)
Re: ECC and DMA to/from disk controllers, linux-os (Dick Johnson), (Mon Sep 10, 2:05 pm)
Re: ECC and DMA to/from disk controllers, Alan Cox, (Mon Sep 10, 9:54 am)
Re: ECC and DMA to/from disk controllers, KELEMEN Peter, (Fri Sep 14, 5:32 am)
speck-geostationary