33
[Discussion] Flatpaks, ram/disk usage and compression
(lemmy.world)
From Wikipedia, the free encyclopedia
Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).
Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.
Community icon by Alpár-Etele Méder, licensed under CC BY 3.0
No idea how flatpak or snap works here (I want my rpm:s dammit) but I bet someone started adding compression to something at some point.
You can’t deduplicate already compressed data, except in theory. If you want deduplication, do that first, then compress the data. (i.e. use ZFS. Friends don’t let friends use subpar filesystems.)
I've got 4.6GB of flatpaks installed on their own subvolume and compression only reduces that to 4.1GB. I would guess that it's mostly compressed already. The same compression settings reduced my root subvolume from 23GB to 8.4GB.
And even then, zfs dedup is a WHOLE can of worms.
Yup. Apparently got much better last year, but don’t turn it on unless you know what you ate doing.
I'd imagine that BTRFS dedup works the same. Any other way would be stupid. Of course if the stuff is compressed by flatpak already there's nothing either FS can do.
Everytime someone says something positive about BTRFS I’m compelled to verify whether RAID6 is usable.
Alas, no. The Arch wiki still contains the same quote, and friends don’t let friends store data without parity.
So in the end, the best BTRFS can do right now is running RAID10 for a storage efficiency of 50%. Running dedup on that feels a bit wasteful…
(Sidenote: actually, ZFS runs dedup after per block compression, so it can only dedup blocks that are identical. Still works though, unlike when people do user level .tar.gz-style compression. The it’s game over.)