Subject: kern/23415: NKMEMPAGES_MIN knob disconnected in NetBSD 1.6
To: None <gnats-bugs@gnats.NetBSD.org>
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
>Closed-Date:
>Last-Modified:
>Originator:     Nicholas Gimbrone
>Release:        NetBSD 1.6
>Organization:
CatchFIRE Systems, Inc.
>Environment:
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
>Description:
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.
>How-To-Repeat:
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.
>Fix:
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 1.1.1.2
diff -u -r1.1.1.2 files
--- conf/files  14 Mar 2003 16:28:50 -0000      1.1.1.2
+++ 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
>Release-Note:
>Audit-Trail:
>Unformatted: