recognize and handle carrier loss
[unix-history] / usr / src / sys / conf / param.c
CommitLineData
92e67171 1/* param.c 6.1 83/07/29 */
ec6f91b0
BJ
2
3#include "../h/param.h"
4#include "../h/systm.h"
751b301e 5#include "../h/socket.h"
ec6f91b0
BJ
6#include "../h/dir.h"
7#include "../h/user.h"
8#include "../h/proc.h"
9#include "../h/text.h"
10#include "../h/inode.h"
11#include "../h/file.h"
12#include "../h/callout.h"
13#include "../h/clist.h"
14#include "../h/cmap.h"
01966f05 15#include "../h/mbuf.h"
ab12a1f4 16#include "../h/quota.h"
bf75e5ce 17#include "../h/kernel.h"
ec6f91b0
BJ
18/*
19 * System parameter formulae.
20 *
21 * This file is copied into each directory where we compile
22 * the kernel; it should be modified there to suit local taste
23 * if necessary.
24 *
25 * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx
26 */
27
bf75e5ce 28#define HZ 100
ec6f91b0 29int hz = HZ;
bf75e5ce
BJ
30int tick = 1000000 / HZ;
31struct timezone tz = { TIMEZONE, DST };
ec6f91b0
BJ
32#define NPROC (20 + 8 * MAXUSERS)
33int nproc = NPROC;
ab5b52ea
SL
34#ifdef INET
35#define NETSLOP 20 /* for all the lousy servers*/
36#else
37#define NETSLOP 0
38#endif
39int ntext = 24 + MAXUSERS + NETSLOP;
4aef8eda 40int ninode = (NPROC + 16 + MAXUSERS) + 32;
ab5b52ea 41int nfile = 16 * (NPROC + 16 + MAXUSERS) / 10 + 32 + 2 * NETSLOP;
2067e85f 42int ncallout = 16 + NPROC;
ec6f91b0 43int nclist = 100 + 16 * MAXUSERS;
ef49a333 44int nport = NPROC / 2;
5b3fa994 45int nmbclusters = NMBCLUSTERS;
af0b24db 46#ifdef QUOTA
ab12a1f4
SL
47int nquota = (MAXUSERS * 9)/7 + 3;
48int ndquot = (MAXUSERS*NMOUNT)/4 + NPROC;
49#endif
ec6f91b0
BJ
50
51/*
52 * These are initialized at bootstrap time
53 * to values dependent on memory size
54 */
55int nbuf, nswbuf;
56
57/*
58 * These have to be allocated somewhere; allocating
59 * them here forces loader errors if this file is omitted.
60 */
61struct proc *proc, *procNPROC;
62struct text *text, *textNTEXT;
63struct inode *inode, *inodeNINODE;
64struct file *file, *fileNFILE;
65struct callout *callout;
66struct cblock *cfree;
ec6f91b0
BJ
67struct buf *buf, *swbuf;
68short *swsize;
69int *swpf;
70char *buffers;
71struct cmap *cmap, *ecmap;
af0b24db 72#ifdef QUOTA
ab12a1f4
SL
73struct quota *quota, *quotaNQUOTA;
74struct dquot *dquot, *dquotNDQUOT;
75#endif