diff options
author | wollman <wollman@FreeBSD.org> | 1996-05-10 19:28:55 +0000 |
---|---|---|
committer | wollman <wollman@FreeBSD.org> | 1996-05-10 19:28:55 +0000 |
commit | a28a8481af3f2a2145d2a6c164a6299934c2bb3f (patch) | |
tree | fab5023c844a9f8148e7c028b3bd0bc0cb934ed5 /sys/conf/param.c | |
parent | 32706d589a389e3534278d9dec0d4dc6fbacbeca (diff) | |
download | FreeBSD-src-a28a8481af3f2a2145d2a6c164a6299934c2bb3f.zip FreeBSD-src-a28a8481af3f2a2145d2a6c164a6299934c2bb3f.tar.gz |
Allocate mbufs from a separate submap so that NMBCLUSTERS works as
expected.
Diffstat (limited to 'sys/conf/param.c')
-rw-r--r-- | sys/conf/param.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/conf/param.c b/sys/conf/param.c index da221c8..f86e749 100644 --- a/sys/conf/param.c +++ b/sys/conf/param.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)param.c 8.3 (Berkeley) 8/20/94 - * $Id: param.c,v 1.17 1996/05/02 10:42:51 phk Exp $ + * $Id: param.c,v 1.18 1996/05/02 14:19:18 phk Exp $ */ #include "opt_sysvipc.h" @@ -91,10 +91,12 @@ int ncallout = 16 + NPROC; /* maximum # of timer events */ /* maximum # of mbuf clusters */ #ifndef NMBCLUSTERS -int nmbclusters = 512 + MAXUSERS * 16; -#else -int nmbclusters = NMBCLUSTERS; +#define NMBCLUSTERS (512 + MAXUSERS * 16) #endif +int nmbclusters = NMBCLUSTERS; + +/* allocate same amount of virtual address space for mbufs XXX */ +int nmbufs = NMBCLUSTERS * (MCLBYTES / MSIZE); int fscale = FSCALE; /* kernel uses `FSCALE', user uses `fscale' */ |