mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-11 15:08:33 +01:00
zramSwap: default to 1 device
One device per cpu is only needed for kernel 3.14
This commit is contained in:
parent
e821f40c26
commit
dd5e2a08fb
|
@ -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.
|
||||
'';
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue