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:
parent
e821f40c26
commit
dd5e2a08fb
1 changed files with 3 additions and 2 deletions
|
@ -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.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue