Module Name: src
Committed By: martin
Date: Mon Dec 14 17:29:35 UTC 2020
Modified Files:
src/sys/arch/hp300/conf [netbsd-9]: INSTALL RAMDISK
Log Message:
Pull up following revision(s) (requested by tsutsui in ticket #1152):
sys/arch/hp300/conf/RAMDISK: revision 1.16
sys/arch/hp300/conf/INSTALL: revision 1.66
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.64 -r1.64.4.1 src/sys/arch/hp300/conf/INSTALL
cvs rdiff -u -r1.15 -r1.15.22.1 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.64 src/sys/arch/hp300/conf/INSTALL:1.64.4.1
--- src/sys/arch/hp300/conf/INSTALL:1.64 Thu Mar 14 16:59:09 2019
+++ src/sys/arch/hp300/conf/INSTALL Mon Dec 14 17:29:35 2020
@@ -1,4 +1,4 @@
-# $NetBSD: INSTALL,v 1.64 2019/03/14 16:59:09 thorpej Exp $
+# $NetBSD: INSTALL,v 1.64.4.1 2020/12/14 17:29:35 martin 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.15.22.1
--- src/sys/arch/hp300/conf/RAMDISK:1.15 Tue Dec 29 14:51:38 2015
+++ src/sys/arch/hp300/conf/RAMDISK Mon Dec 14 17:29:35 2020
@@ -1,4 +1,4 @@
-# $NetBSD: RAMDISK,v 1.15 2015/12/29 14:51:38 christos Exp $
+# $NetBSD: RAMDISK,v 1.15.22.1 2020/12/14 17:29:35 martin 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