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 = ''
|
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…
x
Reference in New Issue
Block a user