Re:In OpenZFS and Btrfs, everyone was just guessing
by colechristensen on Thursday November 30, 2023 @10:51PM
(#38482914)
Deduplication requires an absolutely enormous amount of memory, unless you have a dataset that has a huge amount of duplication for some reason (maybe a company or school where a lot of people have their own network storage and put the same large files in?) it is usually never the right choice to enable dedup.
It is cheaper to buy more disk than the memory to enable dedup (somebody could run the numbers). ZFS ARC also likes lots of memory and you get good performance gains with more memory allocated to it.
In other words, turn on LZ4 compression everywhere and don’t think about it otherwise.
Re:In OpenZFS and Btrfs, everyone was just guessing
by 3np on Friday December 01, 2023 @12:09AM
(#38483381)
This is my understanding as well. These days we default to zstd, though.
Re:In OpenZFS and Btrfs, everyone was just guessing
by erhaetherth on Friday December 01, 2023 @01:13AM
(#38483730)
Oh good, I have it off. I was pondering that feature years ago when I set it up. Couldn't remember where I landed.
Re:In OpenZFS and Btrfs, everyone was just guessing
by keep_reading on Friday December 01, 2023 @09:19AM
(#38486938)
Deduplication in ZFS can be pushed onto dedicated flash storage now instead of requiring gobs of RAM.
Re:In OpenZFS and Btrfs, everyone was just guessing
by ungamedplayer on Friday December 01, 2023 @09:46AM
(#38487244)
Great channel for side attacks btw.
Re:In OpenZFS and Btrfs, everyone was just guessing
by nolist_policy on Friday December 01, 2023 @09:56AM
(#38487404)
Doesn't even need SSD's to open a side-channel: https://lore.kernel.org/linux-btrfs/CAKDzk=-HZardsLFH5c9HYre...
Re:In OpenZFS and Btrfs, everyone was just guessing
by keep_reading on Friday December 01, 2023 @03:54PM
(#38492233)
Without having physical access to my hardware, where every disk is FDE anyway?
Re:In OpenZFS and Btrfs, everyone was just guessing
by ungamedplayer on Tuesday December 05, 2023 @01:55AM
(#38527851)
Physical access not required. Dedupe side attack required timing measurement.
Re:In OpenZFS and Btrfs, everyone was just guessing
by ungamedplayer on Sunday December 03, 2023 @07:27AM
(#38506579)
Oh got some hate there.. pissed off the zfs kids with a dose of reality.
Dedupe can be used to infer secret data. .. more news at 11
Re:In OpenZFS and Btrfs, everyone was just guessing
by CMCDragonkai on Friday December 01, 2023 @07:21PM
(#38494458)
How to do this?
Re:In OpenZFS and Btrfs, everyone was just guessing
by eternityforest on Saturday December 02, 2023 @06:10AM
(#38497750)
Data loss bugs in ZFS?? Wow.
My personal approach to filesystem evaluation is pretty much "How long has it been since I've seen someone talk about a data loss bug". This is my first time hearing one for ZFS. BTRFS seems to have at least one post a year. Ext4 has almost none, but maybe that's because people trust it and blame hardware when unsure what the issue is.
Re:In OpenZFS and Btrfs, everyone was just guessing
by 3np on Saturday December 02, 2023 @08:34AM
(#38498511)
Comparing zfs/btrfs with ext4 is not entirely fair. They're in different domains when it comes to scope and features. To some extent, silent corruption in ext4 is expected but in zfs it's a bug.
Unless I'm just parroting truisms here, dedupe is almost never a good idea and compression is a much more common case-by-case.
> So personally I'd encourage messing around (on something non-prod, of course). Measure measure measure! Does it actually make any difference.
100%. So much depends on the particular workload and resources.
> And making backups, even for ZFS backed filesystems. Sacrilege, I know.
Logical backups, specifically. We have seen more than once corruption and data-loss in replicated encrypted snapshots due to bugs in ZFS.