diff options
author | msmith <msmith@FreeBSD.org> | 1999-07-05 08:52:54 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1999-07-05 08:52:54 +0000 |
commit | af7615d39a0a05294c977a44b96e0abd75a0e723 (patch) | |
tree | d39acb1756b5a1342da8e9e7436ed7232c818bf1 /sys/amd64 | |
parent | 36e6752409ff0942f4248605bd0089086ffb9dfe (diff) | |
download | FreeBSD-src-af7615d39a0a05294c977a44b96e0abd75a0e723.zip FreeBSD-src-af7615d39a0a05294c977a44b96e0abd75a0e723.tar.gz |
Move the initialisation/tuning of nmbclusters from param.c/machdep.c
into uipc_mbuf.c. This reduces three sets of identical tunable code to
one set, and puts the initialisation with the mbuf code proper.
Make NMBUFs tunable as well.
Move the nmbclusters sysctl here as well.
Move the initialisation of maxsockets from param.c to uipc_socket2.c,
next to its corresponding sysctl.
Use the new tunable macros for the kern.vm.kmem.size tunable (this should have
been in a separate commit, whoops).
Diffstat (limited to 'sys/amd64')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 34b9c8e..54c72fc 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.350 1999/07/04 00:25:17 mckusick Exp $ + * $Id: machdep.c,v 1.351 1999/07/04 02:26:23 jlemon Exp $ */ #include "apm.h" @@ -390,12 +390,6 @@ again: */ { vm_offset_t mb_map_size; - int xclusters; - - /* Allow override of NMBCLUSTERS from the kernel environment */ - if (getenv_int("kern.ipc.nmbclusters", &xclusters) && - xclusters > nmbclusters) - nmbclusters = xclusters; mb_map_size = nmbufs * MSIZE + nmbclusters * MCLBYTES; mb_map_size = roundup2(mb_map_size, max(MCLBYTES, PAGE_SIZE)); |