summaryrefslogtreecommitdiffstats
path: root/nixos/modules/config/zram.nix
diff options
context:
space:
mode:
authorDanylo Hlynskyi <abcz2.uprola@gmail.com>2019-03-07 02:07:52 +0200
committerdanbst <abcz2.uprola@gmail.com>2019-03-07 02:11:20 +0200
commitef1911d045df6052491632bcb621c15a8e8fb00d (patch)
treeb0d542b030f4977d43f402ed13dadb8175426267 /nixos/modules/config/zram.nix
parentaf5909a27258322eba8e207c2aca68c877020ef8 (diff)
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.
Diffstat (limited to 'nixos/modules/config/zram.nix')
-rw-r--r--nixos/modules/config/zram.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/modules/config/zram.nix b/nixos/modules/config/zram.nix
index 925d945c081e..5d411c73a560 100644
--- a/nixos/modules/config/zram.nix
+++ b/nixos/modules/config/zram.nix
@@ -91,13 +91,13 @@ in
};
algorithm = mkOption {
- default = "zstd";
- example = "lzo";
+ default = "lzo";
+ example = "lz4";
type = with types; either (enum [ "lzo" "lz4" "zstd" ]) str;
description = ''
Compression algorithm. <literal>lzo</literal> has good compression,
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
<programlisting>cat /sys/class/block/zram*/comp_algorithm</programlisting>
'';