Include VM_MAX_KERNEL_BUF constant to put a cap on buffer cache KVM usage.

Override via config file possible.

XXX this is a stopgap measure.
This commit is contained in:
fvdl 1996-12-09 22:49:42 +00:00
parent 3fe99e29ea
commit 3dc301ff58

View File

@ -1,4 +1,4 @@
/* $NetBSD: vmparam.h,v 1.16 1996/11/15 09:21:41 fvdl Exp $ */
/* $NetBSD: vmparam.h,v 1.17 1996/12/09 22:49:42 fvdl Exp $ */
/*-
* Copyright (c) 1990 The Regents of the University of California.
@ -139,6 +139,12 @@
/* APTDPTDI<<PDSHIFT */
#define VM_MAX_KERNEL_ADDRESS ((vm_offset_t)0xffc00000)
/* XXX max. amount of KVM to be used by buffers. */
#ifndef VM_MAX_KERNEL_BUF
#define VM_MAX_KERNEL_BUF \
((VM_MAX_KERNEL_ADDRESS - VM_MIN_KERNEL_ADDRESS) * 7 / 10)
#endif
/* virtual sizes (bytes) for various kernel submaps */
#define VM_MBUF_SIZE (NMBCLUSTERS*MCLBYTES)
#define VM_KMEM_SIZE (NKMEMCLUSTERS*CLBYTES)