compression=on | off | lzjb | gzip | gzip-N | zle | lz4
Controls the compression algorithm used for this dataset. Setting
compression to on indicates that the current default compression
algorithm should be used. The default balances compression and
decompression speed, with compression ratio and is expected to work
well on a wide variety of workloads. Unlike all other settings for
this property, on does not select a fixed compression type. As new
compression algorithms are added to ZFS and enabled on a pool, the
default compression algorithm may change. The current default com-
pression algorthm is either lzjb or, if the lz4_compress feature is
enabled, lz4. The lzjb compression algorithm is optimized for per-
formance while providing decent data compression. Setting compression
to on uses the lzjb compression algorithm. The gzip compression algo-
rithm uses the same compression as the gzip(1) command. You can spec-
ify the gzip level by using the value gzip-N where N is an integer
from 1 (fastest) to 9 (best compression ratio). Currently, gzip is
equivalent to gzip-6 (which is also the default for gzip(1)). The
zle compression algorithm compresses runs of zeros.