From 7bcc0f3d6669b63a2b7945c8442aad5bd3cb470b Mon Sep 17 00:00:00 2001 From: Tor Egge Date: Wed, 25 Jun 1997 20:18:58 +0000 Subject: [PATCH] Allow the kernel configuration file to override the amount of memory available to the kernel (VM_KMEM_SIZE). The default (32 MB) is too low when having 512 MB or more physical memory in a server environment. This is relevant on systems where "panic: kmem_malloc: kmem_map too small" is a problem. --- sys/amd64/include/vmparam.h | 4 +++- sys/i386/include/vmparam.h | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sys/amd64/include/vmparam.h b/sys/amd64/include/vmparam.h index 129f5c5398f4..094903ed6805 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.24 1997/02/22 09:35:23 peter Exp $ + * $Id: vmparam.h,v 1.25 1997/04/07 09:30:22 peter Exp $ */ @@ -116,6 +116,8 @@ #define VM_MIN_ADDRESS ((vm_offset_t)0) /* virtual sizes (bytes) for various kernel submaps */ +#ifndef VM_KMEM_SIZE #define VM_KMEM_SIZE (32 * 1024 * 1024) +#endif #endif /* _MACHINE_VMPARAM_H_ */ diff --git a/sys/i386/include/vmparam.h b/sys/i386/include/vmparam.h index 129f5c5398f4..094903ed6805 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.24 1997/02/22 09:35:23 peter Exp $ + * $Id: vmparam.h,v 1.25 1997/04/07 09:30:22 peter Exp $ */ @@ -116,6 +116,8 @@ #define VM_MIN_ADDRESS ((vm_offset_t)0) /* virtual sizes (bytes) for various kernel submaps */ +#ifndef VM_KMEM_SIZE #define VM_KMEM_SIZE (32 * 1024 * 1024) +#endif #endif /* _MACHINE_VMPARAM_H_ */