Hi,
I have chosen to use BTRFS since I have been using that since it was included with (Open)SUSE so also chose it for Proxmox.
I noticed very low compression on my disk images. Just a few percent. You can easily investigate this by using compsize (package btrfs-compsize).
The default mount option set by Proxmox for a btrfs partition is compress=zstd:3. This option will test if a file can be compressed at creation and when the 1st blocks are written. If it can be compressed, the whole file can be compressed. If not none(!) of the remainder of the raw image will be compressed.
As it now appears the disk images for my various guests (FreeBSD, various Linuxes and Windows) are not so easily compressible in the beginning, but later can be compressed very well.
I have made this changes to my fstab and ran
So I was wondering if it would perhaps be better to have
I have chosen to use BTRFS since I have been using that since it was included with (Open)SUSE so also chose it for Proxmox.
I noticed very low compression on my disk images. Just a few percent. You can easily investigate this by using compsize (package btrfs-compsize).
The default mount option set by Proxmox for a btrfs partition is compress=zstd:3. This option will test if a file can be compressed at creation and when the 1st blocks are written. If it can be compressed, the whole file can be compressed. If not none(!) of the remainder of the raw image will be compressed.
As it now appears the disk images for my various guests (FreeBSD, various Linuxes and Windows) are not so easily compressible in the beginning, but later can be compressed very well.
I have made this changes to my fstab and ran
btrfs filesystem defragment -r -czstd /var/lib/pve/local-btrfs/images/
and other (image) storages with very good compression results, saving about 40% disk space on average. Plus, since it has been proven that compressed btrfs disks usually yield higher io throughput vm's get some better IO. So I was wondering if it would perhaps be better to have
compress-force=zstd:3
as the standard mount option for BTRFS volumes to reap the benefits of compression with BTRFS?