From b64b660cd30bcc23284bf62f98870f1b3ed647da Mon Sep 17 00:00:00 2001 From: David Greenman Date: Thu, 25 May 1995 07:41:28 +0000 Subject: 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 --- sys/amd64/include/vmparam.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'sys/amd64/include') diff --git a/sys/amd64/include/vmparam.h b/sys/amd64/include/vmparam.h index b38e914dd7c9..8ff3b451fcc2 100644 --- a/sys/amd64/include/vmparam.h +++ b/sys/amd64/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) -- cgit v1.3