Subject: kern/23415: NKMEMPAGES_MIN knob disconnected in NetBSD 1.6
To: None <>
From: None <Nicholas.Gimbrone@CatchFS.Com>
List: netbsd-bugs
Date: 11/11/2003 23:07:12
>Number:         23415
>Category:       kern
>Synopsis:       NKMEMPAGES_MIN knob disconnected in NetBSD 1.6
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Nov 11 23:08:00 UTC 2003
>Originator:     Nicholas Gimbrone
>Release:        NetBSD 1.6
CatchFIRE Systems, Inc.
NetBSD FIRENode 1.6 NetBSD 1.6 (FIRENode) #686: Tue Nov 11 17:13:47 EST 2003
 njg@njgrouter:/mnt/nfs/njg/home/njg/cvs/FIRENode/netbsd/usr/src/sys/arch/i386/compile/FIRENode i386
In attempting to turn the NKMEMPAGES_MIN config knob on a 1.6 system I found that it was not properly connected. It seems to have become disconnected sometime between 1.5 and 1.6, and remains so today on the -current line. To reconnect the knob I applied a change to usr/src/sys/conf/files (to restore the missing leading "N" ;-) and then all was once again happy.
Alter a kernel config file to contain a line such as:
   options NKMEMPAGES_MIN="((32*1024*1024) >> PAGE_SHIFT)"
and run config for this file. Note that the opt_kmempages.h file does not get modified and when you do a make on the kernel that kern/kern_malloc is not recompiled.

Apply the fix and these symptoms go away, allowing the knob to be reconnected.
cvs diff -u conf
cvs server: Diffing conf
Index: conf/files
RCS file: /catchfs/cvsroot/FIRENode/netbsd/usr/src/sys/conf/files,v
retrieving revision
diff -u -r1.1.1.2 files
--- conf/files  14 Mar 2003 16:28:50 -0000
+++ conf/files  11 Nov 2003 22:51:06 -0000
@@ -28,7 +28,7 @@

 defflag        opt_ntp.h               PPS_SYNC NTP

-defparam opt_kmempages.h       NKMEMPAGES KMEMPAGES_MIN NKMEMPAGES_MAX
+defparam opt_kmempages.h       NKMEMPAGES NKMEMPAGES_MIN NKMEMPAGES_MAX
 defflag        opt_malloclog.h         MALLOCLOG
 defparam opt_malloclog.h       MALLOCLOGSIZE
 defflag        opt_malloc_debug.h      MALLOC_DEBUG