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/pc98 | |
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/pc98')
-rw-r--r-- | sys/pc98/i386/machdep.c | 8 | ||||
-rw-r--r-- | sys/pc98/pc98/machdep.c | 8 |
2 files changed, 2 insertions, 14 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index 791b098..56cd258 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.122 1999/06/30 13:30:10 kato Exp $ + * $Id: machdep.c,v 1.123 1999/07/03 08:31:32 kato Exp $ */ #include "apm.h" @@ -401,12 +401,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)); diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 791b098..56cd258 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.122 1999/06/30 13:30:10 kato Exp $ + * $Id: machdep.c,v 1.123 1999/07/03 08:31:32 kato Exp $ */ #include "apm.h" @@ -401,12 +401,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)); |