From 6ee609a0a3155afb85efd4909e7bdbf044c17c75 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 16 Mar 2011 15:17:54 +0000 Subject: [PATCH] * On the installation CD, set the overcommit heuristic to "always overcommit". This makes it less likely that the installer fails randomly in low memory environments. svn path=/nixos/trunk/; revision=26369 --- modules/installer/cd-dvd/installation-cd-base.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/modules/installer/cd-dvd/installation-cd-base.nix b/modules/installer/cd-dvd/installation-cd-base.nix index f4aa5c5451d1..e3a458cb92ce 100644 --- a/modules/installer/cd-dvd/installation-cd-base.nix +++ b/modules/installer/cd-dvd/installation-cd-base.nix @@ -57,6 +57,13 @@ in tar xjf ${nixpkgsTarball}/nixpkgs.tar.bz2 -C /etc/nixos/nixpkgs chown -R root.root /etc/nixos ''} + + # Make the installer more likely to succeed in low memory + # environments. The kernel's overcommit heustistics bite us + # fairly often, preventing processes such as nix-worker or + # download-using-manifests.pl from forking even if there is + # plenty of free memory. + echo 1 > /proc/sys/vm/overcommit_memory ''; # To speed up installation a little bit, include the complete stdenv