Module Name: src
Committed By: tsutsui
Date: Sat Dec 12 05:48:55 UTC 2020
Modified Files:
src/sys/arch/hp300/conf: INSTALL RAMDISK
Log Message:
Remove options (NVNODE, NBUF, and BUFPAGES) for small RAM machines.
These options make extracting binary sets much slower even on miniroot.
Instead, use "options BUFCACHE=5" (use 5% of memory for buffercache) and
also specify "-fno-unwind-tables" for COPTS to shrink INSTALL kernel.
Worth to pullup to netbsd-9.
To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 src/sys/arch/hp300/conf/INSTALL
cvs rdiff -u -r1.15 -r1.16 src/sys/arch/hp300/conf/RAMDISK
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/hp300/conf/INSTALL
diff -u src/sys/arch/hp300/conf/INSTALL:1.65 src/sys/arch/hp300/conf/INSTALL:1.66
--- src/sys/arch/hp300/conf/INSTALL:1.65 Sun Sep 27 13:48:51 2020
+++ src/sys/arch/hp300/conf/INSTALL Sat Dec 12 05:48:55 2020
@@ -1,4 +1,4 @@
-# $NetBSD: INSTALL,v 1.65 2020/09/27 13:48:51 roy Exp $
+# $NetBSD: INSTALL,v 1.66 2020/12/12 05:48:55 tsutsui Exp $
#
# INSTALL machine description file
#
@@ -10,10 +10,11 @@ include "arch/hp300/conf/std.hp300"
#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
# optimise for smaller kernels
-makeoptions COPTS="-Os"
-options NVNODE=50
-options NBUF=16
-options BUFPAGES=16
+makeoptions COPTS="-Os -fno-unwind-tables"
+#options NVNODE=50
+#options NBUF=16
+#options BUFPAGES=16
+options BUFCACHE=5
options NFS_V2_ONLY
options NFS_DEFAULT_NIOTHREADS=1
options USERCONF # userconf(4) support
Index: src/sys/arch/hp300/conf/RAMDISK
diff -u src/sys/arch/hp300/conf/RAMDISK:1.15 src/sys/arch/hp300/conf/RAMDISK:1.16
--- src/sys/arch/hp300/conf/RAMDISK:1.15 Tue Dec 29 14:51:38 2015
+++ src/sys/arch/hp300/conf/RAMDISK Sat Dec 12 05:48:55 2020
@@ -1,4 +1,4 @@
-# $NetBSD: RAMDISK,v 1.15 2015/12/29 14:51:38 christos Exp $
+# $NetBSD: RAMDISK,v 1.16 2020/12/12 05:48:55 tsutsui Exp $
#
# RAMDISK machine description file
#
@@ -7,11 +7,6 @@
include "arch/hp300/conf/INSTALL"
-# These options for small RAM machines makes extracting binaries much slower.
-no options NVNODE
-no options NBUF
-no options BUFPAGES
-
# Enable the hooks used for initializing the root memory-disk.
options MEMORY_DISK_HOOKS
options MEMORY_DISK_IS_ROOT # force root on memory disk