diff options
| author | joerg <joerg@NetBSD.org> | 2010-02-08 19:02:25 +0000 |
|---|---|---|
| committer | joerg <joerg@NetBSD.org> | 2010-02-08 19:02:25 +0000 |
| commit | d621e29eca6ed3edd1d7caaaceb7ccb8b82370c1 (patch) | |
| tree | adb0f943ba6b3de5e80b0ae817ca90cd75c28a70 /sys/conf/param.c | |
| parent | 9554bb1e78d735e5062a5e9030caf7a12de78552 (diff) | |
Remove separate mb_map. The nmbclusters is computed at boot time based
on the amount of physical memory and limited by NMBCLUSTERS if present.
Architectures without direct mapping also limit it based on the kmem_map
size, which is used as backing store. On i386 and ARM, the maximum KVA
used for mbuf clusters is limited to 64MB by default.
The old default limits and limits based on GATEWAY have been removed.
key_registered_sb_max is hard-wired to a value derived from 2048
clusters.
Diffstat (limited to 'sys/conf/param.c')
| -rw-r--r-- | sys/conf/param.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/conf/param.c b/sys/conf/param.c index a408a8d6589..f16ce200d5d 100644 --- a/sys/conf/param.c +++ b/sys/conf/param.c @@ -1,4 +1,4 @@ -/* $NetBSD: param.c,v 1.62 2009/05/03 21:25:44 elad Exp $ */ +/* $NetBSD: param.c,v 1.63 2010/02/08 19:02:33 joerg Exp $ */ /* * Copyright (c) 1980, 1986, 1989 Regents of the University of California. @@ -37,13 +37,12 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: param.c,v 1.62 2009/05/03 21:25:44 elad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: param.c,v 1.63 2010/02/08 19:02:33 joerg Exp $"); #include "opt_hz.h" #include "opt_rtc_offset.h" #include "opt_sysv.h" #include "opt_sysvparam.h" -#include "opt_nmbclusters.h" #include "opt_multiprocessor.h" #include <sys/param.h> @@ -135,7 +134,7 @@ size_t coherency_unit = ALIGNBYTES + 1; * Various mbuf-related parameters. These can also be changed at run-time * with sysctl. */ -int nmbclusters = NMBCLUSTERS; +int nmbclusters = 0; #ifndef MBLOWAT #define MBLOWAT 16 |
