From fc476599adc6a990c0484e00ce16b76f31076092 Mon Sep 17 00:00:00 2001 From: Renaud Date: Sun, 28 Oct 2018 10:48:00 +0100 Subject: installation-device: set GC initial heap size to 1MB 100000 (100kB) is too aggressive (too low) and gets ignored by the GC See issue #43339 --- nixos/modules/profiles/installation-device.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'nixos/modules/profiles') diff --git a/nixos/modules/profiles/installation-device.nix b/nixos/modules/profiles/installation-device.nix index 370db2b08452..580ea4a58e5b 100644 --- a/nixos/modules/profiles/installation-device.nix +++ b/nixos/modules/profiles/installation-device.nix @@ -63,7 +63,7 @@ with lib; # Tell the Nix evaluator to garbage collect more aggressively. # This is desirable in memory-constrained environments that don't # (yet) have swap set up. - environment.variables.GC_INITIAL_HEAP_SIZE = "100000"; + environment.variables.GC_INITIAL_HEAP_SIZE = "1M"; # Make the installer more likely to succeed in low memory # environments. The kernel's overcommit heustistics bite us -- cgit v1.2.3