Merge pull request #39155 from NixOS/zramSwap-one-dev

zramSwap: default to 1 device
This commit is contained in:
Jörg Thalheim 2018-04-23 08:44:16 +01:00 committed by GitHub
commit 54bcf06084
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,16 +25,16 @@ in
type = types.bool; type = types.bool;
description = '' description = ''
Enable in-memory compressed swap space provided by the zram kernel Enable in-memory compressed swap space provided by the zram kernel
module. It is recommended to enable only for kernel 3.14 or higher. module.
See https://www.kernel.org/doc/Documentation/blockdev/zram.txt
''; '';
}; };
numDevices = mkOption { numDevices = mkOption {
default = 4; default = 1;
type = types.int; type = types.int;
description = '' description = ''
Number of zram swap devices to create. It should be equal to the Number of zram swap devices to create.
number of CPU cores your system has.
''; '';
}; };