nixos/redis: don't disable transparent hugepages

Since https://github.com/redis/redis/pull/4001 included in 6.2.0
transparent hugepages works when being set to madvise which is the NixOS
and upstream recommended default.
This commit is contained in:
Sandro Jäckel 2024-04-02 23:53:20 +02:00
parent 5071c02bb0
commit 5f349abc7b
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -312,10 +312,9 @@ in {
'';
}) enabledServers);
boot.kernel.sysctl = mkMerge [
{ "vm.nr_hugepages" = "0"; }
( mkIf cfg.vmOverCommit { "vm.overcommit_memory" = "1"; } )
];
boot.kernel.sysctl = mkIf cfg.vmOverCommit {
"vm.overcommit_memory" = "1";
};
networking.firewall.allowedTCPPorts = concatMap (conf:
optional conf.openFirewall conf.port