You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Illumos 5661 - ZFS: "compression = on" should use lz4 if feature is enabled
5661 ZFS: "compression = on" should use lz4 if feature is enabled
Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Reviewed by: Xin LI <delphij@freebsd.org>
Approved by: Robert Mustacchi <rm@joyent.com>
References:
illumos/illumos-gate@db1741fhttps://www.illumos.org/issues/5661
Ported-by: kernelOfTruth kerneloftruth@gmail.com
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes#3571
Controls the compression algorithm used for this dataset. The \fBlzjb\fR compression algorithm is optimized for performance while providing decent data compression. Setting compression to \fBon\fR uses the \fBlzjb\fR compression algorithm.
848
+
Controls the compression algorithm used for this dataset.
848
849
.sp
849
-
The \fBgzip\fR compression algorithm uses the same compression as the \fBgzip\fR(1) command. You can specify the \fBgzip\fR level by using the value \fBgzip-\fR\fIN\fR where \fIN\fR is an integer from 1 (fastest) to 9 (best compression ratio). Currently, \fBgzip\fR is equivalent to \fBgzip-6\fR (which is also the default for \fBgzip\fR(1)).
850
+
Setting compression to \fBon\fR indicates that the current default
851
+
compression algorithm should be used. The default balances compression
852
+
and decompression speed, with compression ratio and is expected to
853
+
work well on a wide variety of workloads. Unlike all other settings for
854
+
this property, \fBon\fR does not select a fixed compression type. As
855
+
new compression algorithms are added to ZFS and enabled on a pool, the
856
+
default compression algorithm may change. The current default compression
857
+
algorthm is either \fBlzjb\fR or, if the \fBlz4_compress\fR feature is
858
+
enabled, \fBlz4\fR.
850
859
.sp
851
-
The \fBzle\fR (zero-length encoding) compression algorithm is a fast and simple algorithm to eliminate runs of zeroes.
860
+
The \fBlzjb\fR compression algorithm is optimized for performance while
861
+
providing decent data compression.
852
862
.sp
853
863
The \fBlz4\fR compression algorithm is a high-performance replacement
854
864
for the \fBlzjb\fR algorithm. It features significantly faster
@@ -858,7 +868,15 @@ the \fBlz4_compress\fR feature set to \fIenabled\fR. See
858
868
\fBzpool-features\fR(5) for details on ZFS feature flags and the
859
869
\fBlz4_compress\fR feature.
860
870
.sp
861
-
This property can also be referred to by its shortened column name \fBcompress\fR. Changing this property affects only newly-written data.
871
+
The \fBgzip\fR compression algorithm uses the same compression as
872
+
the \fBgzip\fR(1) command. You can specify the \fBgzip\fR level by using the
873
+
value \fBgzip-\fR\fIN\fR where \fIN\fR is an integer from 1 (fastest) to 9
874
+
(best compression ratio). Currently, \fBgzip\fR is equivalent to \fBgzip-6\fR
875
+
(which is also the default for \fBgzip\fR(1)). The \fBzle\fR compression
876
+
algorithm compresses runs of zeros.
877
+
.sp
878
+
This property can also be referred to by its shortened column name
879
+
\fBcompress\fR. Changing this property affects only newly-written data.
0 commit comments