[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

d-i runs out of RAM on 32 MB machine with 1 GB hard drive



I received several reports that installing Debian on a NSLU2 (32 MB
RAM) with a 1 GB USB hard drive leads to failures because the system
runs out of memory and kills ssh.  Now I received some more
information on this problem:

* Emanuele Rocca <ema@debian.org> [2006-11-20 17:25]:
> I've encountered some issues with Debian Installer RC1 on a brand new
> NSLU2, using a 1GB memory stick.
> 
> The first problem I ran into was ssh being killed by the OOM killer
> while creating an ext3 filesystem on the memory stick, even if I
> manually enabled an 80M swap partition before the fs creation step.
> 
> I restarted the nslu2, created a larger swap partition (128M) and now
> the installation is going on happily.
> 
> Note that askig the partitioner to choose the partitions' size by
> itself, it creates a swap area of circa 80M, which as I mentioned
> earlier is not enough to create a root fs and continue the installation.

This problem can presumbly be fixed by raising the minimum of swap
created from 64 to 128.  Since this issue probably affects all
systems, I suggest to do this for all recipes, as in the patch below.
Comments?


Index: recipes-hppa/home
===================================================================
--- recipes-hppa/home	(revision 42768)
+++ recipes-hppa/home	(working copy)
@@ -21,7 +21,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-hppa/multi
===================================================================
--- recipes-hppa/multi	(revision 42768)
+++ recipes-hppa/multi	(working copy)
@@ -37,7 +37,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /var } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-hppa/atomic
===================================================================
--- recipes-hppa/atomic	(revision 42768)
+++ recipes-hppa/atomic	(working copy)
@@ -21,7 +21,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-chrp_pegasos/home
===================================================================
--- recipes-powerpc-chrp_pegasos/home	(revision 42768)
+++ recipes-powerpc-chrp_pegasos/home	(working copy)
@@ -16,7 +16,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-chrp_pegasos/multi
===================================================================
--- recipes-powerpc-chrp_pegasos/multi	(revision 42768)
+++ recipes-powerpc-chrp_pegasos/multi	(working copy)
@@ -32,7 +32,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /var } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-chrp_pegasos/atomic
===================================================================
--- recipes-powerpc-chrp_pegasos/atomic	(revision 42768)
+++ recipes-powerpc-chrp_pegasos/atomic	(working copy)
@@ -16,7 +16,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-mipsel-cobalt/home
===================================================================
--- recipes-mipsel-cobalt/home	(revision 42768)
+++ recipes-mipsel-cobalt/home	(working copy)
@@ -17,7 +17,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	method{ swap }
 	format{ } .
 
Index: recipes-mipsel-cobalt/multi
===================================================================
--- recipes-mipsel-cobalt/multi	(revision 42768)
+++ recipes-mipsel-cobalt/multi	(working copy)
@@ -31,7 +31,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /var } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	method{ swap }
 	format{ } .
 
Index: recipes-mipsel-cobalt/atomic
===================================================================
--- recipes-mipsel-cobalt/atomic	(revision 42768)
+++ recipes-mipsel-cobalt/atomic	(working copy)
@@ -17,6 +17,6 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	method{ swap }
 	format{ } .
Index: recipes-mips-sb1-bcm91250a/home
===================================================================
--- recipes-mips-sb1-bcm91250a/home	(revision 42768)
+++ recipes-mips-sb1-bcm91250a/home	(working copy)
@@ -28,7 +28,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /home } .
 
-64 512 512 linux-swap
+128 512 512 linux-swap
 	method{ swap }
 	format{ } .
 
Index: recipes-mips-sb1-bcm91250a/multi
===================================================================
--- recipes-mips-sb1-bcm91250a/multi	(revision 42768)
+++ recipes-mips-sb1-bcm91250a/multi	(working copy)
@@ -49,6 +49,6 @@
 	filesystem{ ext3 }
 	mountpoint{ /home } .
 
-64 512 512 linux-swap
+128 512 512 linux-swap
 	method{ swap }
 	format{ } .
Index: recipes-mips-sb1-bcm91250a/atomic
===================================================================
--- recipes-mips-sb1-bcm91250a/atomic	(revision 42768)
+++ recipes-mips-sb1-bcm91250a/atomic	(working copy)
@@ -21,6 +21,6 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 512 linux-swap
+128 512 512 linux-swap
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-powermac_oldworld/home
===================================================================
--- recipes-powerpc-powermac_oldworld/home	(revision 42768)
+++ recipes-powerpc-powermac_oldworld/home	(working copy)
@@ -15,7 +15,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-powermac_oldworld/multi
===================================================================
--- recipes-powerpc-powermac_oldworld/multi	(revision 42768)
+++ recipes-powerpc-powermac_oldworld/multi	(working copy)
@@ -31,7 +31,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /var } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-powermac_oldworld/atomic
===================================================================
--- recipes-powerpc-powermac_oldworld/atomic	(revision 42768)
+++ recipes-powerpc-powermac_oldworld/atomic	(working copy)
@@ -15,7 +15,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-chrp_ibm/home
===================================================================
--- recipes-powerpc-chrp_ibm/home	(revision 42768)
+++ recipes-powerpc-chrp_ibm/home	(working copy)
@@ -23,7 +23,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-chrp_ibm/multi
===================================================================
--- recipes-powerpc-chrp_ibm/multi	(revision 42768)
+++ recipes-powerpc-chrp_ibm/multi	(working copy)
@@ -39,7 +39,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /var } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-chrp_ibm/atomic
===================================================================
--- recipes-powerpc-chrp_ibm/atomic	(revision 42768)
+++ recipes-powerpc-chrp_ibm/atomic	(working copy)
@@ -23,7 +23,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-arm-iop32x/home
===================================================================
--- recipes-arm-iop32x/home	(revision 42768)
+++ recipes-arm-iop32x/home	(working copy)
@@ -17,7 +17,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	method{ swap }
 	format{ } .
 
Index: recipes-arm-iop32x/multi
===================================================================
--- recipes-arm-iop32x/multi	(revision 42768)
+++ recipes-arm-iop32x/multi	(working copy)
@@ -31,7 +31,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /var } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	method{ swap }
 	format{ } .
 
Index: recipes-arm-iop32x/atomic
===================================================================
--- recipes-arm-iop32x/atomic	(revision 42768)
+++ recipes-arm-iop32x/atomic	(working copy)
@@ -17,6 +17,6 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	method{ swap }
 	format{ } .
Index: recipes/home
===================================================================
--- recipes/home	(revision 42768)
+++ recipes/home	(working copy)
@@ -20,7 +20,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes/multi
===================================================================
--- recipes/multi	(revision 42768)
+++ recipes/multi	(working copy)
@@ -36,7 +36,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /var } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes/atomic
===================================================================
--- recipes/atomic	(revision 42768)
+++ recipes/atomic	(working copy)
@@ -20,7 +20,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-ia64/home
===================================================================
--- recipes-ia64/home	(revision 42768)
+++ recipes-ia64/home	(working copy)
@@ -13,7 +13,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 2048 linux-swap
+128 512 2048 linux-swap
 	method{ swap }
 	format{ } .
 
Index: recipes-ia64/multi
===================================================================
--- recipes-ia64/multi	(revision 42768)
+++ recipes-ia64/multi	(working copy)
@@ -27,7 +27,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /var } .
 
-64 512 2048 linux-swap
+128 512 2048 linux-swap
 	method{ swap }
 	format{ } .
 
Index: recipes-ia64/atomic
===================================================================
--- recipes-ia64/atomic	(revision 42768)
+++ recipes-ia64/atomic	(working copy)
@@ -13,6 +13,6 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 2048 linux-swap
+128 512 2048 linux-swap
 	method{ swap }
 	format{ } .
Index: recipes-mips-sb1a-bcm91480b/home
===================================================================
--- recipes-mips-sb1a-bcm91480b/home	(revision 42768)
+++ recipes-mips-sb1a-bcm91480b/home	(working copy)
@@ -28,7 +28,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /home } .
 
-64 512 512 linux-swap
+128 512 512 linux-swap
 	method{ swap }
 	format{ } .
 
Index: recipes-mips-sb1a-bcm91480b/multi
===================================================================
--- recipes-mips-sb1a-bcm91480b/multi	(revision 42768)
+++ recipes-mips-sb1a-bcm91480b/multi	(working copy)
@@ -49,6 +49,6 @@
 	filesystem{ ext3 }
 	mountpoint{ /home } .
 
-64 512 512 linux-swap
+128 512 512 linux-swap
 	method{ swap }
 	format{ } .
Index: recipes-mips-sb1a-bcm91480b/atomic
===================================================================
--- recipes-mips-sb1a-bcm91480b/atomic	(revision 42768)
+++ recipes-mips-sb1a-bcm91480b/atomic	(working copy)
@@ -21,6 +21,6 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 512 linux-swap
+128 512 512 linux-swap
 	method{ swap }
 	format{ } .
Index: recipes-sparc/home
===================================================================
--- recipes-sparc/home	(revision 42768)
+++ recipes-sparc/home	(working copy)
@@ -16,7 +16,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-sparc/multi
===================================================================
--- recipes-sparc/multi	(revision 42768)
+++ recipes-sparc/multi	(working copy)
@@ -32,7 +32,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /var } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-sparc/atomic
===================================================================
--- recipes-sparc/atomic	(revision 42768)
+++ recipes-sparc/atomic	(working copy)
@@ -16,7 +16,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-powermac_newworld/home
===================================================================
--- recipes-powerpc-powermac_newworld/home	(revision 42768)
+++ recipes-powerpc-powermac_newworld/home	(working copy)
@@ -20,7 +20,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-powermac_newworld/multi
===================================================================
--- recipes-powerpc-powermac_newworld/multi	(revision 42768)
+++ recipes-powerpc-powermac_newworld/multi	(working copy)
@@ -36,7 +36,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /var } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-powermac_newworld/atomic
===================================================================
--- recipes-powerpc-powermac_newworld/atomic	(revision 42768)
+++ recipes-powerpc-powermac_newworld/atomic	(working copy)
@@ -20,7 +20,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-arm-netwinder/home
===================================================================
--- recipes-arm-netwinder/home	(revision 42768)
+++ recipes-arm-netwinder/home	(working copy)
@@ -17,7 +17,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	method{ swap }
 	format{ } .
 
Index: recipes-arm-netwinder/multi
===================================================================
--- recipes-arm-netwinder/multi	(revision 42768)
+++ recipes-arm-netwinder/multi	(working copy)
@@ -31,7 +31,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /var } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	method{ swap }
 	format{ } .
 
Index: recipes-arm-netwinder/atomic
===================================================================
--- recipes-arm-netwinder/atomic	(revision 42768)
+++ recipes-arm-netwinder/atomic	(working copy)
@@ -17,6 +17,6 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	method{ swap }
 	format{ } .
Index: recipes-mipsel-sb1-bcm91250a/home
===================================================================
--- recipes-mipsel-sb1-bcm91250a/home	(revision 42768)
+++ recipes-mipsel-sb1-bcm91250a/home	(working copy)
@@ -28,7 +28,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /home } .
 
-64 512 512 linux-swap
+128 512 512 linux-swap
 	method{ swap }
 	format{ } .
 
Index: recipes-mipsel-sb1-bcm91250a/multi
===================================================================
--- recipes-mipsel-sb1-bcm91250a/multi	(revision 42768)
+++ recipes-mipsel-sb1-bcm91250a/multi	(working copy)
@@ -49,6 +49,6 @@
 	filesystem{ ext3 }
 	mountpoint{ /home } .
 
-64 512 512 linux-swap
+128 512 512 linux-swap
 	method{ swap }
 	format{ } .
Index: recipes-mipsel-sb1-bcm91250a/atomic
===================================================================
--- recipes-mipsel-sb1-bcm91250a/atomic	(revision 42768)
+++ recipes-mipsel-sb1-bcm91250a/atomic	(working copy)
@@ -21,6 +21,6 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 512 linux-swap
+128 512 512 linux-swap
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-prep/home
===================================================================
--- recipes-powerpc-prep/home	(revision 42768)
+++ recipes-powerpc-prep/home	(working copy)
@@ -23,7 +23,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-prep/multi
===================================================================
--- recipes-powerpc-prep/multi	(revision 42768)
+++ recipes-powerpc-prep/multi	(working copy)
@@ -39,7 +39,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /var } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-prep/atomic
===================================================================
--- recipes-powerpc-prep/atomic	(revision 42768)
+++ recipes-powerpc-prep/atomic	(working copy)
@@ -23,7 +23,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-mipsel-sb1a-bcm91480b/home
===================================================================
--- recipes-mipsel-sb1a-bcm91480b/home	(revision 42768)
+++ recipes-mipsel-sb1a-bcm91480b/home	(working copy)
@@ -28,7 +28,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /home } .
 
-64 512 512 linux-swap
+128 512 512 linux-swap
 	method{ swap }
 	format{ } .
 
Index: recipes-mipsel-sb1a-bcm91480b/multi
===================================================================
--- recipes-mipsel-sb1a-bcm91480b/multi	(revision 42768)
+++ recipes-mipsel-sb1a-bcm91480b/multi	(working copy)
@@ -49,6 +49,6 @@
 	filesystem{ ext3 }
 	mountpoint{ /home } .
 
-64 512 512 linux-swap
+128 512 512 linux-swap
 	method{ swap }
 	format{ } .
Index: recipes-mipsel-sb1a-bcm91480b/atomic
===================================================================
--- recipes-mipsel-sb1a-bcm91480b/atomic	(revision 42768)
+++ recipes-mipsel-sb1a-bcm91480b/atomic	(working copy)
@@ -21,6 +21,6 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 512 linux-swap
+128 512 512 linux-swap
 	method{ swap }
 	format{ } .
Index: recipes-alpha/small_disk
===================================================================
--- recipes-alpha/small_disk	(revision 42768)
+++ recipes-alpha/small_disk	(working copy)
@@ -10,6 +10,6 @@
 	filesystem{ ext2 }
 	mountpoint{ / } .
 
-64 512 512 linux-swap
+128 512 512 linux-swap
 	method{ swap }
 	format{ } .
Index: recipes-alpha/home
===================================================================
--- recipes-alpha/home	(revision 42768)
+++ recipes-alpha/home	(working copy)
@@ -17,7 +17,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	method{ swap }
 	format{ } .
 
Index: recipes-alpha/multi
===================================================================
--- recipes-alpha/multi	(revision 42768)
+++ recipes-alpha/multi	(working copy)
@@ -24,7 +24,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /var } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	method{ swap }
 	format{ } .
 
Index: recipes-alpha/atomic
===================================================================
--- recipes-alpha/atomic	(revision 42768)
+++ recipes-alpha/atomic	(working copy)
@@ -17,6 +17,6 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-apus/home
===================================================================
--- recipes-powerpc-apus/home	(revision 42768)
+++ recipes-powerpc-apus/home	(working copy)
@@ -23,7 +23,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-apus/multi
===================================================================
--- recipes-powerpc-apus/multi	(revision 42768)
+++ recipes-powerpc-apus/multi	(working copy)
@@ -39,7 +39,7 @@
 	filesystem{ ext3 }
 	mountpoint{ /var } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .
Index: recipes-powerpc-apus/atomic
===================================================================
--- recipes-powerpc-apus/atomic	(revision 42768)
+++ recipes-powerpc-apus/atomic	(working copy)
@@ -23,7 +23,7 @@
 	filesystem{ ext3 }
 	mountpoint{ / } .
 
-64 512 300% linux-swap
+128 512 300% linux-swap
 	$lvmok{ }
 	method{ swap }
 	format{ } .

-- 
Martin Michlmayr
http://www.cyrius.com/



Reply to: