turning off compression is completely safe. I personally have it enabled for all my VMs/containers since they compress somthing like 1.5x (which is really good) for linux .iso's i just turn compression off.

this kind of data probably doesn't compress very well (correct me if I'm wrong);

I/O will be slowed down;

zfs will require more ram to compress data

My main questions are:

is it safe to run 'zfs set compression=off pool'?

Is it better to shutdown the guest before doing that?

What do you think about it?

Thank you.

Click to expand...

this kind of data probably doesn't compress very well (correct me if I'm wrong);

ZFS support various compression methods so you can choose your best option

I/O will be slowed down;

It will request less I/O for the same data read/write

zfs will require more ram to compress data

It request more CPU like for gzip compression but I never heard anything about ram usage problem.

1. is it safe to run 'zfs set compression=off pool'?

Yes. You can use '#zfs set option pool' in any time. As for compression or deduplication data after zfs option changes will stay as they are. Only new data writes or rewrites will be in new format ( compressed/uncompressed and so on)

2. Is it better to shutdown the guest before doing that?

Not needed.

3. What do you think about it?

Compression speeds up writes and reads. You can find comparison of compression

Ok, I will not disable compression.
I'm experiences problems with a server using zfs but it seems related to zfs arc cache only.
Now I'm going to reduce zfs arc cache and move swap away from zfs.
If this will fix my problems, no need to disable compression.
Thank you all for your answers.

Quick Navigation

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get your own in 60 seconds.