All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arno Wagner <arno@wagner.name>
To: dm-crypt@saout.de
Subject: Re: [dm-crypt] Memory errors and and 3TB RAID5 partition
Date: Wed, 16 Jan 2013 12:23:21 +0100	[thread overview]
Message-ID: <20130116112321.GA6637@tansi.org> (raw)
In-Reply-To: <CAFRU1Xvk8oH-vgy4qWDj7PPhankZQMzNaB7+uLk2Tr-vOpvE=g@mail.gmail.com>

Hi Frederico,

impossible to quantify, and you may also get errors in the
busses, controller and (very rare unless overclocked) CPU.

The thing about "massive file corruption" is a myth though:
Most flipped bit just lead to a flipped bit because they 
happen before encryption. Even after encryption, you lose
only one 512 byte sector per flipped bit.

What you do is, if this is critical, _underclock_ everything in
your machine by 10-20%, get ECC RAM, ensure good cooling and clean 
power. Before undercklocking, test the machine extensively at 100% 
speed or maybe even 110% or the like.

An alternative is to verify each write. Here you have to be careful
to empty all buffers and caches before doing it. That is what I
do for large files. 

Arno

On Wed, Jan 16, 2013 at 12:08:15PM +0100, Federico Foschini wrote:
> Hi all,
> I'm reading the FAQ on cryptsetup wiki because I'm plannig to set up a
> software raid 5 (mdadm) with 3 1,5TB disks and I'm a bit scared about
> memory errors.  I read that a single flipped bit can lead in a massive
> file corruption and I've got 2GB of non ECC ram on my machine... what
> is the risk of encounter a memory error writing big files (like 8-10
> GiB)?
> 
> --
> Federico Foschini.
> _______________________________________________
> dm-crypt mailing list
> dm-crypt@saout.de
> http://www.saout.de/mailman/listinfo/dm-crypt

-- 
Arno Wagner,     Dr. sc. techn., Dipl. Inform.,    Email: arno@wagner.name
GnuPG: ID: CB5D9718  FP: 12D6 C03B 1B30 33BB 13CF  B774 E35C 5FA1 CB5D 9718
----
One of the painful things about our time is that those who feel certainty
are stupid, and those with any imagination and understanding are filled
with doubt and indecision. -- Bertrand Russell

  reply	other threads:[~2013-01-16 11:23 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-16 11:08 [dm-crypt] Memory errors and and 3TB RAID5 partition Federico Foschini
2013-01-16 11:23 ` Arno Wagner [this message]
2013-01-16 12:00   ` Matthias Schniedermeyer
2013-01-16 12:06     ` Federico Foschini
2013-01-16 16:30     ` Karol Babioch
2013-01-16 19:26       ` Matthias Schniedermeyer
2013-01-16 11:24 ` Ralf Ramsauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130116112321.GA6637@tansi.org \
    --to=arno@wagner.name \
    --cc=dm-crypt@saout.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.