summaryrefslogtreecommitdiff
path: root/sys/kern/uipc_mbuf.c
diff options
context:
space:
mode:
authorMats O Jansson <maja@cvs.openbsd.org>2002-02-17 22:59:54 +0000
committerMats O Jansson <maja@cvs.openbsd.org>2002-02-17 22:59:54 +0000
commit7beb673ee2a6f26cb92ffbcee12d36dd3f705fd8 (patch)
treef241a99972126accf4f3a3e5afc119bb3b5e7109 /sys/kern/uipc_mbuf.c
parente59357f842efb4b5301b194970688e1d2da24d97 (diff)
Patch from Daniel Lucq <daniel@lucq.org>
The patch allows you to change the value of NMBCLUSTERS, BUFCACHEPERCENT and NKMEMPAGES using the config command, instead of recompiling the kernel. This is the kernel part of the patch. I have compiled it on i386, sparc64, alpha and macppc. -moj ok art@ maja@
Diffstat (limited to 'sys/kern/uipc_mbuf.c')
-rw-r--r--sys/kern/uipc_mbuf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/uipc_mbuf.c b/sys/kern/uipc_mbuf.c
index 45cb3624086..6a913bb0e98 100644
--- a/sys/kern/uipc_mbuf.c
+++ b/sys/kern/uipc_mbuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: uipc_mbuf.c,v 1.54 2002/02/05 22:06:43 angelos Exp $ */
+/* $OpenBSD: uipc_mbuf.c,v 1.55 2002/02/17 22:59:53 maja Exp $ */
/* $NetBSD: uipc_mbuf.c,v 1.15.4.1 1996/06/13 17:11:44 cgd Exp $ */
/*
@@ -117,7 +117,7 @@ mbinit()
vaddr_t minaddr, maxaddr;
mb_map = uvm_km_suballoc(kernel_map, &minaddr, &maxaddr,
- VM_MBUF_SIZE, VM_MAP_INTRSAFE, FALSE, NULL);
+ nmbclust*(MCLBYTES), VM_MAP_INTRSAFE, FALSE, NULL);
pool_init(&mbpool, MSIZE, 0, 0, 0, "mbpl", NULL);
pool_init(&mclpool, MCLBYTES, 0, 0, 0, "mclpl", &mclpool_allocator);
@@ -130,7 +130,7 @@ mbinit()
* mbuf clusters the kernel is to support. Log the limit
* reached message max once a minute.
*/
- pool_sethardlimit(&mclpool, nmbclusters, mclpool_warnmsg, 60);
+ pool_sethardlimit(&mclpool, nmbclust, mclpool_warnmsg, 60);
/*
* Set a low water mark for both mbufs and clusters. This should