Subject: Re: help building new kernel
To: None <shettich@uci.edu>
From: Chris G Demetriou <Chris_G_Demetriou@ux2.sp.cs.cmu.edu>
List: port-alpha
Date: 12/02/1996 16:21:01
> Is maxusers the right way to get more mbufs?

Uh, mbufs are dynamically allocated, they are not fixed in number.
To increase the amount of kvm allocatable as mbufs (actually, more
generall, as kernel virtual memory, since they're allocated out of the
general malloc pool), increase NKMEMCLUSTERS.

mbuf clusters, on the other hand are fixed in number and are allocated
out of a private map.  To increase the number of them you can use,
increase NKMEMCLUSTERS.

The default values for both of those constants are in
<machine/param.h>, and both should be settable as kernel options (at
least, they are in -current, i forget whether or not they were in
1.2).


maxusers can't be increased on NetBSD/alpha, because it ends up
increasing the maximum number of processes available in the system,
which in turn ends up increasing (by an unreasonable amount) the
amount of memory allocated for process page tables.  To fix this the
pmap (machine-dependent VM) code needs to be rewritten.  See PR 2846
for a previous response, re: increasing maxusers.


chris