Re: DM-CRYPT: Scale to multiple CPUs v3 on 2.6.37-rc* ?

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Mike Snitzer
Date: Monday, November 8, 2010 - 7:58 am

On Sun, Nov 07 2010 at  6:05pm -0500,
Andi Kleen <andi@firstfloor.org> wrote:


[cc'ing linux-btrfs, hopefully in the future dm-devel will get cc'd when
concerns about DM come up on linux-btrfs (or other lists)]

I spoke with Josef Bacik and these corruption reports are apparently
against older kernels (e.g. <= 2.6.33).  I say <= 2.6.33 because:

https://btrfs.wiki.kernel.org/index.php/Gotchas states:
"btrfs volumes on top of dm-crypt block devices (and possibly LVM)
require write-caching to be turned off on the underlying HDD. Failing to
do so, in the event of a power failure, may result in corruption not yet
handled by btrfs code. (2.6.33)"

But Josef was not aware of any reports with kernels newer than 2.6.32
(F12).

Josef also noted that until last week btrfs wouldn't retry another
mirror in the face of some corruption, the fix is here:
http://git.kernel.org/?p=linux/kernel/git/mason/btrfs-unstable.git;a=commit;h=cb44921a...

This obviously doesn't fix any source of corruption but it makes btrfs
more resilient when it encounters the corruption.


Can you please be more specific?  What test(s)?  What kernel(s)?

Any pointers to previous (and preferably: recent) reports would be
appreciated.

The DM barrier code has seen considerable change recently (via flush+fua
changes in 2.6.37).  Those changes have been tested quite a bit
(including ext4 consistency after a crash).

But even prior to those flush+fua changes DM's support for barriers
(Linux >= 2.6.31) was held to be robust.  No known (at least no
reported) issues with DM's barrier support.

Mike
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: DM-CRYPT: Scale to multiple CPUs v3 on 2.6.37-rc* ?, Mike Snitzer, (Mon Nov 8, 7:58 am)
Re: dm-crypt barrier support is effective, Milan Broz, (Sun Nov 14, 2:54 pm)
Re: dm-crypt barrier support is effective, Matt, (Sun Nov 14, 4:24 pm)
Re: dm-crypt barrier support is effective, Heinz Diehl, (Mon Nov 15, 12:25 am)
Re: dm-crypt barrier support is effective, Milan Broz, (Mon Nov 15, 1:41 am)
Re: dm-crypt barrier support is effective, Matt, (Wed Dec 1, 9:05 am)
Re: dm-crypt barrier support is effective, Mike Snitzer, (Wed Dec 1, 9:52 am)
Re: dm-crypt barrier support is effective, Matt, (Wed Dec 1, 10:35 am)
Re: dm-crypt barrier support is effective, Milan Broz, (Wed Dec 1, 11:24 am)
Re: dm-crypt barrier support is effective, Jon Nelson, (Wed Dec 1, 12:34 pm)
Re: dm-crypt barrier support is effective, Heinz Diehl, (Wed Dec 1, 12:59 pm)
Re: dm-crypt barrier support is effective, Milan Broz, (Wed Dec 1, 1:45 pm)
Re: hunt for 2.6.37 dm-crypt+ext4 corruption?, Milan Broz, (Sun Dec 5, 3:21 am)
Re: hunt for 2.6.37 dm-crypt+ext4 corruption?, Heinz Diehl, (Sun Dec 5, 5:49 am)
Re: [dm-devel] hunt for 2.6.37 dm-crypt+ext4 corruption?, Daniel J Blueman, (Sun Dec 5, 1:17 pm)
Re: hunt for 2.6.37 dm-crypt+ext4 corruption?, Mike Snitzer, (Sun Dec 5, 2:15 pm)
Re: hunt for 2.6.37 dm-crypt+ext4 corruption?, Milan Broz, (Wed Dec 8, 1:03 am)