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

Bug#696786: please adjust MFSROOT_LIMIT; adjust lowmem thresholds



Control: -1 tags + patch

Hi,

Please consider lowering MFSROOT_LIMIT to 72m on kfreebsd-amd64.


The initial size of data in the installer MFS roots are:

~/debian-installer/build/tmp$ du -xm --max-depth=0 */tree | sort -bn
9       cdrom_grub/tree
10      netboot/tree
10      netboot-9/tree
37      cdrom_gtk/tree
38      netboot-gtk/tree
38      netboot-gtk-9/tree

Testing with netboot-gtk-9, the largest size I've been able to fill the
ramdisk to is 68389 KiB used.

If we set MFSROOT_LIMIT := 72m this leaves some room whilst still
allowing installs with as low as 128 MiB RAM.  That is also the default
memory setting for qemu-system-x86_64.


With MFSROOT_LIMIT := 72m, qemu -m 128 corresponds with a 39444 KiB
MemTotal.

Smaller than this (e.g. at -m 124), the first thing to fail is actually
devd in the early initscripts.  So we should set a low=38 threshold to
warn the user about 'unpredictable behaviour' otherwise.

level1 and level2 memory conservations don't help at this early stage,
so they can be set to the same value of 38.  (They don't give noticeable
benefit anyway since on kFreeBSD the ramdisk allocation is of fixed
size, no matter how full it is).


Once d-i is running, plenty of memory is free probably for even a full
GTK install.  But GTK doesn't trigger below MemTotal >= 134 due to the
calculation by rootskel S60frontend.  It corresponds with qemu -m 224.

We could (later?) try to lower that threshold, because on kFreeBSD the
text-mode installer lacks support for a number of languages, therefore
we'd like the GTK installer to be available wherever possible.


For the purposes of installation-guide, we can therefore suggest
minimum_memory=128, minimum_memory_gtk=224

Thanks!
Regards,
-- 
Steven Chamberlain
steven@pyro.eu.org
diff --git a/build/Makefile b/build/Makefile
index 60d1845..1e5952d 100644
--- a/build/Makefile
+++ b/build/Makefile
@@ -133,7 +133,7 @@ endef
 ifeq ($(DEB_HOST_ARCH),kfreebsd-i386)
 MFSROOT_LIMIT := 42m
 else ifeq ($(DEB_HOST_ARCH),kfreebsd-amd64)
-MFSROOT_LIMIT := 128m
+MFSROOT_LIMIT := 72m
 endif
 
 define mkfs.ufs1
Index: build/arch-options/kfreebsd-amd64
===================================================================
--- build/arch-options/kfreebsd-amd64	(revision 68416)
+++ build/arch-options/kfreebsd-amd64	(working copy)
@@ -6,9 +6,9 @@
 arch_listname="bsd"
 arch_porturl="kfreebsd-gnu"
 # This is also in the lowmem package
-minimum_memory=110
+minimum_memory=128
 # This is also in the rootskel package, S60frontend
-minimum_memory_gtk=170
+minimum_memory_gtk=224
 # These two options should be set if condition 'smp' is set below
 # TODO: update
 smp_config_section="Processor type and features"
diff --git a/debian-installer-startup.d/S15lowmem b/debian-installer-startup.d/S15lowmem
index e53ad78..74da8a9 100644
--- a/debian-installer-startup.d/S15lowmem
+++ b/debian-installer-startup.d/S15lowmem
@@ -67,9 +67,9 @@ else
 			min=28
 		;;
 		kfreebsd-amd64)
-			level1=64 # MT=66456, qemu: -m 146
-			level2=32 # MT=33688, qemu: -m 114
-			min=29    # MT=29592, qemu: -m 110
+			level1=38 # MT=39444, qemu: -m 128
+			level2=38 # MT=39444, qemu: -m 128
+			min=38    # MT=39444, qemu: -m 128
 		;;
 		kfreebsd-i386)
 			level1=64 # MT=66008, qemu: -m 121

Attachment: signature.asc
Description: OpenPGP digital signature


Reply to: