Some statistics about BTRFS compression
dataswamp.org
dataswamp.org
I've been using zstd:2 (the default is 3), it compresses my data close to what zlib does while being pretty light on CPU.
https://docs.google.com/spreadsheets/d/1x9-3OQF4ev1fOCrYuYWt... (not mine)
https://linuxreviews.org/Comparison_of_Compression_Algorithm...
Also note that btrfs compression works on 128 KiB chunks and if you work with small files a lot (frontend work, etc), it may actually increase your SSD wear. I've seen this in practice.
david@pc1:~$ /sbin/zfs get compressratio rpool tank
NAME PROPERTY VALUE SOURCE
rpool compressratio 1.93x -
tank compressratio 1.20x -
rpool contains the root filesystem and my home directory. tank contains movies, music, recordings and backups.I run NixOS, and on /nix/store itself, i get 2.32x compressratio :D
I would have expected some savings from games but mayhaps not from lz4. Music and movies though, if lz4 had significant savings to provide these would have long been added to the media formats (likely in a more specialised and effective or efficient form).
Meanwhile the bazillion petabytes on the world's synology NAS run fine, and are BTRFS.
They tooted something around the release of DSM 7 that Btrfs now used native self healing instead of relying on lvm, but of course i can't find any documentation for it.
"So, we'll repeat this once more: as a single-disk filesystem, btrfs has been stable and for the most part performant for years."
https://arstechnica.com/gadgets/2021/09/examining-btrfs-linu...