Subject: Re: kernel build failure after Feb 16 sup (NKMEMCLUSTERS)
To: NetBSD Mailing list <netbsd@mrynet.com>
From: Jason Thorpe <thorpej@nas.nasa.gov>
List: port-pmax
Date: 02/17/2000 10:33:35
On Thu, 17 Feb 2000 02:32:44 +0000 
 netbsd@mrynet.com (NetBSD Mailing list) wrote:

 > The following problem did not occur after the previous night's sup and
 > kernel build, but after last night's sup I am experiencing the following
 > failure:
 > 
 > cc  -O2 -Wall -Werror -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-main -G 0 -mno-abicalls -mno-half-pic -I. -I../../../../arch -I../../../.. -nostdinc -I../../../../../gnu/sys -DMIPS1 -DLKM -DNKMEMCLUSTERS=1024 -DHZ=256 -DMAXUSERS=64 
  -D_KERNEL -Dpmax  -c ../../../../kern/kern_malloc.c 
 > ../../../../kern/kern_malloc.c:59: #error NKMEMCLUSTERS is obsolete; use NKMEMPAGES instead or let the kernel auto-size
 > *** Error code 1

I'm pretty sure I mentioned this on current-users, but maybe I forgot.

In any case, remove the "options NKMEMCLUSTERS=..." from your kernel config
file, rerun config, and build your kernel.  The kernel now attempts to
auto-size the kmem_map based on the amount of memory your system has, but
the NKMEMPAGES option is still available if you need to override what
the system selects (which you can get with the new sysctl vm.nkmempages).

        -- Jason R. Thorpe <thorpej@nas.nasa.gov>