Merge pull request #39155 from NixOS/zramSwap-one-dev
zramSwap: default to 1 device
This commit is contained in:
commit
54bcf06084
@ -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.
|
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user