summaryrefslogtreecommitdiffstats
path: root/sys/i386/include
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-05-25 07:41:28 +0000
committerdg <dg@FreeBSD.org>1995-05-25 07:41:28 +0000
commit6cd79fcb5a78f4d0a61b101c7c23a53ac320d42e (patch)
treef14b6bc29fde13178c952d4a17b754be0e7d3636 /sys/i386/include
parent50c29dc74f0ad2c79d20bd9b79c049ebd18dbee9 (diff)
downloadFreeBSD-src-6cd79fcb5a78f4d0a61b101c7c23a53ac320d42e.zip
FreeBSD-src-6cd79fcb5a78f4d0a61b101c7c23a53ac320d42e.tar.gz
Made "NMBCLUSTERS" calculation dynamic and fixed bogus use of "NMBCLUSTERS"
in machdep.c (it should use the global nmbclusters). Moved the calculation of nmbclusters into conf/param.c (same place where nmbclusters has always been assigned), and made the calculation include an extra amount based on "maxusers". NMBCLUSTERS can still be overrided in the kernel config file as always, but this change will make that generally unnecessary. This fixes the "bug" reports from people who have misconfigured kernels seeing the network hang when the mbuf cluster pool runs out. Reviewed by: John Dyson
Diffstat (limited to 'sys/i386/include')
-rw-r--r--sys/i386/include/param.h10
-rw-r--r--sys/i386/include/vmparam.h3
2 files changed, 2 insertions, 11 deletions
diff --git a/sys/i386/include/param.h b/sys/i386/include/param.h
index ed5f67f..716c19b 100644
--- a/sys/i386/include/param.h
+++ b/sys/i386/include/param.h
@@ -34,7 +34,7 @@
* SUCH DAMAGE.
*
* from: @(#)param.h 5.8 (Berkeley) 6/28/91
- * $Id: param.h,v 1.17 1995/01/23 19:21:49 davidg Exp $
+ * $Id: param.h,v 1.18 1995/02/19 10:36:17 gpalmer Exp $
*/
#ifndef _MACHINE_PARAM_H_
@@ -108,14 +108,6 @@
#define MCLBYTES (1 << MCLSHIFT) /* size of an m_buf cluster */
#define MCLOFSET (MCLBYTES - 1) /* offset within an m_buf cluster */
-#ifndef NMBCLUSTERS
-#ifdef GATEWAY
-#define NMBCLUSTERS 512 /* map size, max cluster allocation */
-#else
-#define NMBCLUSTERS 256 /* map size, max cluster allocation */
-#endif /* GATEWAY */
-#endif /* NMBCLUSTERS */
-
/*
* Some macros for units conversion
*/
diff --git a/sys/i386/include/vmparam.h b/sys/i386/include/vmparam.h
index b38e914..8ff3b45 100644
--- a/sys/i386/include/vmparam.h
+++ b/sys/i386/include/vmparam.h
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* from: @(#)vmparam.h 5.9 (Berkeley) 5/12/91
- * $Id: vmparam.h,v 1.16 1994/09/23 07:00:12 davidg Exp $
+ * $Id: vmparam.h,v 1.17 1995/01/09 16:04:44 davidg Exp $
*/
@@ -127,7 +127,6 @@
#define VM_MAX_KERNEL_ADDRESS ((vm_offset_t)KERNBASE + NKPDE*NBPG*NPTEPG)
/* virtual sizes (bytes) for various kernel submaps */
-#define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES)
#define VM_KMEM_SIZE (32 * 1024 * 1024)
#define VM_PHYS_SIZE (USRIOSIZE*CLBYTES)
OpenPOWER on IntegriCloud