Compression?

All your general support questions for OpenZFS on OS X.

Compression?

Postby xbytor » Wed Aug 10, 2016 4:45 am

A quick question. Is there really any benefit to turn on compression when your data is primarily images and video (which are already compressed)? I'm only in the 4TB range so it may not matter but I see compression advocated a lot.

To be honest, I come from a XX-DOS background where I could recover data with low level sector editing tools where encryption and compression were not an impedance.

Are there any real datum that show that compression is beneficial where the files are already compressed? I understand that ZFS/metadata would benefit but it is unclear to me how big the benefit would be if I had to also compress a 2Gb video file as well.
xbytor
 
Posts: 22
Joined: Sun Jun 29, 2014 7:52 pm

Re: Compression?

Postby Brendon » Wed Aug 10, 2016 12:58 pm

Highly compressed files usually cannot be further compressed. In fact they may grow due to compressor metadata overheads. ZFS will make best effort to compress data, however it stops when it realizes that its not making a difference. Therefore you can turn compression on, knowing that ZFS will do the right thing automatically.

- Brendon
Brendon
 
Posts: 286
Joined: Thu Mar 06, 2014 12:51 pm

Re: Compression?

Postby xbytor » Wed Aug 10, 2016 3:33 pm

Thanks for that. I'll start turning it on for new pools then.
xbytor
 
Posts: 22
Joined: Sun Jun 29, 2014 7:52 pm


Return to General Help

Who is online

Users browsing this forum: No registered users and 20 guests