Skip to content

Commit

Permalink
zramSwap: default to 1 device
Browse files Browse the repository at this point in the history
One device per cpu is only needed for kernel 3.14
  • Loading branch information
wmertens committed Apr 19, 2018
1 parent e821f40 commit dd5e2a0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nixos/modules/config/zram.nix
Expand Up @@ -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.
'';
};

Expand Down

0 comments on commit dd5e2a0

Please sign in to comment.