devnullius
Patron
- Joined
- Dec 9, 2015
- Messages
- 289
What does it mean to have a compression ratio of 1.09 on ZFS FreeNAS system? I couldn't find an abvious answer, so I googled a bit. I found an answer here: https://pthree.org/2012/12/18/zfs-administration-part-xi-compression-and-deduplication/
All in all an interesting article to read (it talks about deduplication too).
Small remaining question: can I tweak the GUI to not show 1.04 but 96% instead? Makes more sense to me :)
Peace!
Devnullius
Now that we've enabled compression on this dataset, let's copy over some uncompressed data, and see what sort of savings we would see. A great source of uncompressed data would be the /etc/ and /var/log/ directories. Let's create a tarball of these directories, see it's raw size and see what sort of space savings we achieved:
tank/test compressratio 2.14x -
So, in my case, I created a 24 MB uncompressed tarball. After copying it to the dataset that had compression enabled, it only occupied 11.1 MB. This is less than half the size (text compresses very well)! We can read the "compressratio" property on the dataset to see what sort of space savings we are achieving. In my case, the output is telling me that the compressed data would occupy 2.14 times the amount of disk space, if uncompressed. Very nice.
All in all an interesting article to read (it talks about deduplication too).
Small remaining question: can I tweak the GUI to not show 1.04 but 96% instead? Makes more sense to me :)
Peace!
Devnullius