Don't explode when we've got a lot of RAM. Limit our space for buffers

to 1/4 of the kernel VM map.
This commit is contained in:
cjs 2000-01-26 07:35:51 +00:00
parent e5aaa3fce0
commit cfc246f9d8
2 changed files with 6 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: param.h,v 1.41 1999/12/04 21:21:28 ragge Exp $ */
/* $NetBSD: param.h,v 1.42 2000/01/26 07:35:51 cjs Exp $ */
/*
* Copyright (c) 1992, 1993
@ -89,6 +89,9 @@ extern int nbpg, pgofset, pgshift;
#endif
#define KERNBASE 0xf0000000 /* start of kernel virtual space */
#define KERNEND 0xfe000000 /* end of kernel virtual space */
/* Arbitrarily only use 1/4 of the kernel address space for buffers. */
#define VM_MAX_KERNEL_BUF ((KERNEND - KERNBASE)/4)
#define PROM_LOADADDR 0x00004000 /* where the prom loads us */
#define KERNTEXTOFF (KERNBASE+PROM_LOADADDR)/* start of kernel text */

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.22 1999/12/04 21:21:29 ragge Exp $ */
/* $NetBSD: vmparam.h,v 1.23 2000/01/26 07:35:52 cjs Exp $ */
/*
* Copyright (c) 1992, 1993
@ -125,7 +125,7 @@
#define VM_MAX_ADDRESS ((vaddr_t)KERNBASE)
#define VM_MAXUSER_ADDRESS ((vaddr_t)KERNBASE)
#define VM_MIN_KERNEL_ADDRESS ((vaddr_t)KERNBASE)
#define VM_MAX_KERNEL_ADDRESS ((vaddr_t)0xfe000000)
#define VM_MAX_KERNEL_ADDRESS ((vaddr_t)KERNEND)
/* virtual sizes (bytes) for various kernel submaps */
#define VM_KMEM_SIZE (NKMEMCLUSTERS*NBPG)