Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/conf Add `mblowat' and `mcllowat' low water mark variabl...



details:   https://anonhg.NetBSD.org/src/rev/d6d0cfbd47c6
branches:  trunk
changeset: 472283:d6d0cfbd47c6
user:      thorpej <thorpej%NetBSD.org@localhost>
date:      Mon Apr 26 21:53:59 1999 +0000

description:
Add `mblowat' and `mcllowat' low water mark variables for mbufs and mbuf
clusters.

diffstat:

 sys/conf/param.c |  19 +++++++++++++++++--
 1 files changed, 17 insertions(+), 2 deletions(-)

diffs (37 lines):

diff -r bee56248fe22 -r d6d0cfbd47c6 sys/conf/param.c
--- a/sys/conf/param.c  Mon Apr 26 20:33:18 1999 +0000
+++ b/sys/conf/param.c  Mon Apr 26 21:53:59 1999 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: param.c,v 1.28 1999/04/25 04:51:53 simonb Exp $        */
+/*     $NetBSD: param.c,v 1.29 1999/04/26 21:53:59 thorpej Exp $       */
 
 /*
  * Copyright (c) 1980, 1986, 1989 Regents of the University of California.
@@ -97,11 +97,26 @@
 int    desiredvnodes = NVNODE;
 int    maxfiles = 3 * (NPROC + MAXUSERS) + 80;
 int    ncallout = 16 + NPROC;
-int    nmbclusters = NMBCLUSTERS;
 u_long sb_max = SB_MAX;        /* maximum socket buffer size */
 int    fscale = FSCALE;        /* kernel uses `FSCALE', user uses `fscale' */
 
 /*
+ * Various mbuf-related parameters.  These can also be changed at run-time
+ * with sysctl.
+ */
+int    nmbclusters = NMBCLUSTERS;
+
+#ifndef MBLOWAT
+#define        MBLOWAT         16
+#endif
+int    mblowat = MBLOWAT;
+
+#ifndef MCLLOWAT
+#define        MCLLOWAT        8
+#endif
+int    mcllowat = MCLLOWAT;
+
+/*
  * Values in support of System V compatible shared memory.     XXX
  */
 #ifdef SYSVSHM



Home | Main Index | Thread Index | Old Index