summary refs log tree commit diff
path: root/nixos/modules/profiles/installation-device.nix
diff options
context:
space:
mode:
authorRenaud <c0bw3b@users.noreply.github.com>2018-10-28 10:48:00 +0100
committerGitHub <noreply@github.com>2018-10-28 10:48:00 +0100
commitfc476599adc6a990c0484e00ce16b76f31076092 (patch)
tree43aeca7faee8f3018bbd348beabe0e0b6b0b73e4 /nixos/modules/profiles/installation-device.nix
parent15759508fa29ccb0fba33e0ee9e2c740f48b2849 (diff)
downloadnixpkgs-fc476599adc6a990c0484e00ce16b76f31076092.tar
nixpkgs-fc476599adc6a990c0484e00ce16b76f31076092.tar.gz
nixpkgs-fc476599adc6a990c0484e00ce16b76f31076092.tar.bz2
nixpkgs-fc476599adc6a990c0484e00ce16b76f31076092.tar.lz
nixpkgs-fc476599adc6a990c0484e00ce16b76f31076092.tar.xz
nixpkgs-fc476599adc6a990c0484e00ce16b76f31076092.tar.zst
nixpkgs-fc476599adc6a990c0484e00ce16b76f31076092.zip
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
Diffstat (limited to 'nixos/modules/profiles/installation-device.nix')
-rw-r--r--nixos/modules/profiles/installation-device.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/profiles/installation-device.nix b/nixos/modules/profiles/installation-device.nix
index 370db2b0845..580ea4a58e5 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