Skip to content

Commit dd5e2a0

Browse files
authoredApr 19, 2018
zramSwap: default to 1 device
One device per cpu is only needed for kernel 3.14
1 parent e821f40 commit dd5e2a0

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎nixos/modules/config/zram.nix

+3-2
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,16 @@ in
2626
description = ''
2727
Enable in-memory compressed swap space provided by the zram kernel
2828
module. It is recommended to enable only for kernel 3.14 or higher.
29+
See https://www.kernel.org/doc/Documentation/blockdev/zram.txt
2930
'';
3031
};
3132

3233
numDevices = mkOption {
33-
default = 4;
34+
default = 1;
3435
type = types.int;
3536
description = ''
3637
Number of zram swap devices to create. It should be equal to the
37-
number of CPU cores your system has.
38+
number of CPU cores your system has for kernel < v3.15.
3839
'';
3940
};
4041

0 commit comments

Comments
 (0)