Originally posted by ChrisIrwin
View Post
Announcement
Collapse
No announcement yet.
Btrfs RAID: Built-In/Native RAID vs. Mdadm
Collapse
X
-
Originally posted by Ardje View PostI usually am very quick to say to not use btrfs. Because the only good experience was a desktop experience, and in all other cases btrfs always corrupted itself in such a way that we just had to delete 1...4TB of data and start all over.
But once btrfs is really trustworthy I would run it instead of mdadm.
Comment
-
Originally posted by liam View PostThose checking features aren't the default. They are mount options called check_int and check_into_data (iirc), and are considered only useful for debugging b/c they cause massive slow downs (their words).
Comment
-
Originally posted by ua=42 View PostUmmm. Source? I don't see any reference to this in the gotcha's page.
Says, in bold, that they are for debugging purposes as they will massively slow down the system.
This shouldn't be hugely surprising as that's why we have scrub. I'd imagine that zfs also does the same thing (relies on periodic scrubs rather than a per read integrity check).
I'm not sure why it would slow things down, though, as long as the checksum is near the data extents. Perhaps it's because it forces, effectively, direct io of the entire file rather than mmap and lazy reads? Certainly the checksum should be extremely fast for most computers.
Comment
-
Integrity check option is not the same as checksumming
Originally posted by liam View Posthttps://btrfs.wiki.kernel.org/index.php/Mount_options
Says, in bold, that they are for debugging purposes as they will massively slow down the system.
This shouldn't be hugely surprising as that's why we have scrub. I'd imagine that zfs also does the same thing (relies on periodic scrubs rather than a per read integrity check).
I'm not sure why it would slow things down, though, as long as the checksum is near the data extents. Perhaps it's because it forces, effectively, direct io of the entire file rather than mmap and lazy reads? Certainly the checksum should be extremely fast for most computers.
The option that turns checksumming off is called nodatasum(documented on the same page) - it says turning it off doesn't result in any considerable performance gains on a modern CPU.
Comment
-
Originally posted by pascal_dher View PostThe integrity check is not the same as the checksumming.
The option that turns checksumming off is called nodatasum(documented on the same page) - it says turning it off doesn't result in any considerable performance gains on a modern CPU.
Word on the street is that turning off checksumming via nodatasum has pretty impressive speedups.
Comment
-
Originally posted by pascal_dher View PostThe integrity check is not the same as the checksumming.
The option that turns checksumming off is called nodatasum(documented on the same page) - it says turning it off doesn't result in any considerable performance gains on a modern CPU.
If you have a reference that says otherwise I'd be happy to read it.
Comment
-
Originally posted by benmoran View PostExactly right, it would be pretty stupid if checksumming wasn't enabled by default. It's half the point of the fs!
Word on the street is that turning off checksumming via nodatasum has pretty impressive speedups.
Again, that's why theres the scrub utility.
Comment
-
Does Btrfs have data recovery capabilites when using only one disk? For example, use an error correction code at the expense of disk space and performance?
I was confused when data integrity checking and recovery occurred. From the comments, it sounds like it's either done manually through a command (default) or on every read (for debugging only).
Comment
Comment