zramSwap: default to 1 device

One device per cpu is only needed for kernel 3.14
This commit is contained in:
Wout Mertens 2018-04-19 16:44:08 +02:00 committed by GitHub
parent e821f40c26
commit dd5e2a08fb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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