4 ms·
ZFS runs with even better performance when you turn compression on. zfs set compression=lz4
by acd 10y ago
ZFS runs with even better performance when you turn compression on.
zfs set compression=lz4
- voltagex_ 10y agoI noticed a massive write performance hit when I enabled this. Note that it'll only compress data after you enable it, it isn't retroactive
- pixl97 10y agoWhat CPUs do you have in your box? In most modern systems the rate at which the CPU can compress data is many, many times faster than the disk can write data. In general compression greatly increases write speeds because less disk IO is needed. The vast majority of benchmarks show that to be the case too. TL:DR, if you notice a performance decrease after enabling compression, something is wrong with your NAS/SAN. That said, if you are just storing large encrypted files on your ZFS then compression isn't needed.
- voltagex_ 10y agoThought that might be the case - it's an Atom C2758 on a SuperMicro board.
- acd 10y agoCPU is most likely the bottle neck. So my comment should have read if you have a fast cpu you may benefit from ZFS compression. On modern CPU LZ4 should enable about 400MB/s current PCU write compression https://github.com/Cyan4973/lz4 https://github.com/Cyan4973/lz4
- voltagex_ 10y agoThank you for that - it was interesting at least, even if I've probably done it all wrong (TLDR - compression on ZFS definitely varies with the data you try to compress) https://blog.voltagex.org/2016/08/26/benchmarking-compression-on-freebsd/ https://blog.voltagex.org/2016/08/26/benchmarking-compressio... Fun fact: while researching this I found yet another article that contradicts the information I had when I built my zpool, and apparently I've done it all wrong (again).
- Fzzr 10y agoFreeNAS turns lz4 compression on by default for new pools.