4.2 distribution
[unix-history] / usr / src / sys / conf / param.c
index dc82bf9..418fb9c 100644 (file)
@@ -1,4 +1,4 @@
-/*     param.c 4.10    81/11/14        */
+/*     param.c 6.1     83/07/29        */
 
 #include "../h/param.h"
 #include "../h/systm.h"
 
 #include "../h/param.h"
 #include "../h/systm.h"
@@ -13,6 +13,8 @@
 #include "../h/clist.h"
 #include "../h/cmap.h"
 #include "../h/mbuf.h"
 #include "../h/clist.h"
 #include "../h/cmap.h"
 #include "../h/mbuf.h"
+#include "../h/quota.h"
+#include "../h/kernel.h"
 /*
  * System parameter formulae.
  *
 /*
  * System parameter formulae.
  *
  * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx
  */
 
  * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx
  */
 
+#define        HZ 100
 int    hz = HZ;
 int    hz = HZ;
-int    timezone = TIMEZONE;
-int    dstflag = DST;
+int    tick = 1000000 / HZ;
+struct timezone tz = { TIMEZONE, DST };
 #define        NPROC (20 + 8 * MAXUSERS)
 int    nproc = NPROC;
 #define        NPROC (20 + 8 * MAXUSERS)
 int    nproc = NPROC;
-int    ntext = 24 + MAXUSERS;
+#ifdef INET
+#define        NETSLOP 20                      /* for all the lousy servers*/
+#else
+#define        NETSLOP 0
+#endif
+int    ntext = 24 + MAXUSERS + NETSLOP;
 int    ninode = (NPROC + 16 + MAXUSERS) + 32;
 int    ninode = (NPROC + 16 + MAXUSERS) + 32;
-int    nfile = 8 * (NPROC + 16 + MAXUSERS) / 10 + 32;
-int    ncallout = 16 + MAXUSERS;
+int    nfile = 16 * (NPROC + 16 + MAXUSERS) / 10 + 32 + 2 * NETSLOP;
+int    ncallout = 16 + NPROC;
 int    nclist = 100 + 16 * MAXUSERS;
 int    nport = NPROC / 2;
 int    nclist = 100 + 16 * MAXUSERS;
 int    nport = NPROC / 2;
-int     nmbpages = NMBPAGES;
+int     nmbclusters = NMBCLUSTERS;
+#ifdef QUOTA
+int    nquota = (MAXUSERS * 9)/7 + 3;
+int    ndquot = (MAXUSERS*NMOUNT)/4 + NPROC;
+#endif
 
 /*
  * These are initialized at bootstrap time
 
 /*
  * These are initialized at bootstrap time
@@ -57,3 +69,7 @@ short *swsize;
 int    *swpf;
 char   *buffers;
 struct cmap *cmap, *ecmap;
 int    *swpf;
 char   *buffers;
 struct cmap *cmap, *ecmap;
+#ifdef QUOTA
+struct quota *quota, *quotaNQUOTA;
+struct dquot *dquot, *dquotNDQUOT;
+#endif