0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

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

View file

@ -26,15 +26,16 @@ in
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. It is recommended to enable only for kernel 3.14 or higher.
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. It should be equal to the
number of CPU cores your system has. number of CPU cores your system has for kernel < v3.15.
''; '';
}; };