Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/hp300/conf Remove options (NVNODE, NBUF, and BUFPAG...



details:   https://anonhg.NetBSD.org/src/rev/20e2b60d522f
branches:  trunk
changeset: 979038:20e2b60d522f
user:      tsutsui <tsutsui%NetBSD.org@localhost>
date:      Sat Dec 12 05:48:55 2020 +0000

description:
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.

diffstat:

 sys/arch/hp300/conf/INSTALL |  11 ++++++-----
 sys/arch/hp300/conf/RAMDISK |   7 +------
 2 files changed, 7 insertions(+), 11 deletions(-)

diffs (46 lines):

diff -r 77bd13379191 -r 20e2b60d522f sys/arch/hp300/conf/INSTALL
--- a/sys/arch/hp300/conf/INSTALL       Sat Dec 12 05:23:21 2020 +0000
+++ b/sys/arch/hp300/conf/INSTALL       Sat Dec 12 05:48:55 2020 +0000
@@ -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 @@
 #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
diff -r 77bd13379191 -r 20e2b60d522f sys/arch/hp300/conf/RAMDISK
--- a/sys/arch/hp300/conf/RAMDISK       Sat Dec 12 05:23:21 2020 +0000
+++ b/sys/arch/hp300/conf/RAMDISK       Sat Dec 12 05:48:55 2020 +0000
@@ -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



Home | Main Index | Thread Index | Old Index