much more generous NFILE
[unix-history] / usr / src / sys / conf / param.c
CommitLineData
4f483d7d 1/* param.c 4.12 82/04/03 */
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"
ec6f91b0
BJ
16/*
17 * System parameter formulae.
18 *
19 * This file is copied into each directory where we compile
20 * the kernel; it should be modified there to suit local taste
21 * if necessary.
22 *
23 * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx
24 */
25
26int hz = HZ;
27int timezone = TIMEZONE;
28int dstflag = DST;
29#define NPROC (20 + 8 * MAXUSERS)
30int nproc = NPROC;
31int ntext = 24 + MAXUSERS;
4aef8eda 32int ninode = (NPROC + 16 + MAXUSERS) + 32;
4f483d7d 33int nfile = 16 * (NPROC + 16 + MAXUSERS) / 10 + 32;
ec6f91b0
BJ
34int ncallout = 16 + MAXUSERS;
35int nclist = 100 + 16 * MAXUSERS;
ef49a333 36int nport = NPROC / 2;
5b3fa994 37int nmbclusters = NMBCLUSTERS;
ec6f91b0
BJ
38
39/*
40 * These are initialized at bootstrap time
41 * to values dependent on memory size
42 */
43int nbuf, nswbuf;
44
45/*
46 * These have to be allocated somewhere; allocating
47 * them here forces loader errors if this file is omitted.
48 */
49struct proc *proc, *procNPROC;
50struct text *text, *textNTEXT;
51struct inode *inode, *inodeNINODE;
52struct file *file, *fileNFILE;
53struct callout *callout;
54struct cblock *cfree;
ec6f91b0
BJ
55struct buf *buf, *swbuf;
56short *swsize;
57int *swpf;
58char *buffers;
59struct cmap *cmap, *ecmap;