zram: revert "change default algorithm to zstd" (#56856)
19.03 default kernel is still 4.14, which doesn't support zstd. So, zramSwap in current fasion fails on default kernel.
This commit is contained in:
parent
af5909a272
commit
ef1911d045
|
@ -577,7 +577,7 @@
|
||||||
but is still possible by setting <literal>zramSwap.swapDevices</literal> explicitly.
|
but is still possible by setting <literal>zramSwap.swapDevices</literal> explicitly.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Default algorithm for ZRAM swap was changed to <literal>zstd</literal>.
|
ZRAM algorithm can be changed now.
|
||||||
</para>
|
</para>
|
||||||
<para>
|
<para>
|
||||||
Changes to ZRAM algorithm are applied during <literal>nixos-rebuild switch</literal>,
|
Changes to ZRAM algorithm are applied during <literal>nixos-rebuild switch</literal>,
|
||||||
|
|
|
@ -91,13 +91,13 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
algorithm = mkOption {
|
algorithm = mkOption {
|
||||||
default = "zstd";
|
default = "lzo";
|
||||||
example = "lzo";
|
example = "lz4";
|
||||||
type = with types; either (enum [ "lzo" "lz4" "zstd" ]) str;
|
type = with types; either (enum [ "lzo" "lz4" "zstd" ]) str;
|
||||||
description = ''
|
description = ''
|
||||||
Compression algorithm. <literal>lzo</literal> has good compression,
|
Compression algorithm. <literal>lzo</literal> has good compression,
|
||||||
but is slow. <literal>lz4</literal> has bad compression, but is fast.
|
but is slow. <literal>lz4</literal> has bad compression, but is fast.
|
||||||
<literal>zstd</literal> is both good compression and fast.
|
<literal>zstd</literal> is both good compression and fast, but requires newer kernel.
|
||||||
You can check what other algorithms are supported by your zram device with
|
You can check what other algorithms are supported by your zram device with
|
||||||
<programlisting>cat /sys/class/block/zram*/comp_algorithm</programlisting>
|
<programlisting>cat /sys/class/block/zram*/comp_algorithm</programlisting>
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in New Issue