From e1a6c85c2ba53933bfe5b6a86b9031cc28e4f9e1 Mon Sep 17 00:00:00 2001 From: Martino Fontana Date: Wed, 21 Jun 2023 19:23:08 +0200 Subject: nixos/sysctl: raise default vm.max_map_count to 1048576 --- pkgs/applications/networking/browsers/firefox/common.nix | 1 + 1 file changed, 1 insertion(+) (limited to 'pkgs/applications/networking/browsers/firefox/common.nix') diff --git a/pkgs/applications/networking/browsers/firefox/common.nix b/pkgs/applications/networking/browsers/firefox/common.nix index ae7223ec721..0a578520ae2 100644 --- a/pkgs/applications/networking/browsers/firefox/common.nix +++ b/pkgs/applications/networking/browsers/firefox/common.nix @@ -357,6 +357,7 @@ buildStdenv.mkDerivation ({ export MOZILLA_OFFICIAL=1 '' + lib.optionalString stdenv.hostPlatform.isMusl '' # linking firefox hits the vm.max_map_count kernel limit with the default musl allocator + # TODO: Default vm.max_map_count has been increased, retest without this export LD_PRELOAD=${mimalloc}/lib/libmimalloc.so ''; -- cgit 1.4.1