Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/kern Set the high water mark on the mbuf cluster pool to...
details: https://anonhg.NetBSD.org/src/rev/850cea75d793
branches: trunk
changeset: 467321:850cea75d793
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Mar 23 02:51:27 1999 +0000
description:
Set the high water mark on the mbuf cluster pool to NMBCLUSTERS.
diffstat:
sys/kern/uipc_mbuf.c | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diffs (22 lines):
diff -r 906f55882c9f -r 850cea75d793 sys/kern/uipc_mbuf.c
--- a/sys/kern/uipc_mbuf.c Tue Mar 23 02:49:03 1999 +0000
+++ b/sys/kern/uipc_mbuf.c Tue Mar 23 02:51:27 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uipc_mbuf.c,v 1.36 1999/03/22 22:06:58 thorpej Exp $ */
+/* $NetBSD: uipc_mbuf.c,v 1.37 1999/03/23 02:51:27 thorpej Exp $ */
/*
* Copyright (c) 1982, 1986, 1988, 1991, 1993
@@ -84,6 +84,12 @@
pool_init(&mbpool, MSIZE, 0, 0, 0, "mbpl", 0, NULL, NULL, 0);
pool_init(&mclpool, MCLBYTES, 0, 0, 0, "mclpl", 0, mclpool_alloc,
mclpool_release, 0);
+
+ /*
+ * Set the high water mark on the mclpool to the number of
+ * mbuf clusters the kernel is to support.
+ */
+ pool_sethiwat(&mclpool, NMBCLUSTERS);
}
void *
Home |
Main Index |
Thread Index |
Old Index