xref: /csrg-svn/sys/conf/param.c (revision 3124)
1*3124Swnj /*	param.c	4.1	81/03/09	*/
2*3124Swnj 
3*3124Swnj #include "../h/param.h"
4*3124Swnj #include "../h/systm.h"
5*3124Swnj #include "../h/dir.h"
6*3124Swnj #include "../h/user.h"
7*3124Swnj #include "../h/proc.h"
8*3124Swnj #include "../h/text.h"
9*3124Swnj #include "../h/inode.h"
10*3124Swnj #include "../h/file.h"
11*3124Swnj #include "../h/callout.h"
12*3124Swnj #include "../h/clist.h"
13*3124Swnj #include "../h/cmap.h"
14*3124Swnj /*
15*3124Swnj  * System parameter formulae.
16*3124Swnj  *
17*3124Swnj  * This file is copied into each directory where we compile
18*3124Swnj  * the kernel; it should be modified there to suit local taste
19*3124Swnj  * if necessary.
20*3124Swnj  *
21*3124Swnj  * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx
22*3124Swnj  */
23*3124Swnj 
24*3124Swnj int	hz = HZ;
25*3124Swnj int	timezone = TIMEZONE;
26*3124Swnj int	dstflag = DST;
27*3124Swnj #define	NPROC (20 + 8 * MAXUSERS)
28*3124Swnj int	nproc = NPROC;
29*3124Swnj int	ntext = 24 + MAXUSERS;
30*3124Swnj int	ninode = NPROC + 16 + MAXUSERS;
31*3124Swnj int	nfile = 8 * (NPROC + 16 + MAXUSERS) / 10;
32*3124Swnj int	ncallout = 16 + MAXUSERS;
33*3124Swnj int	nclist = 100 + 16 * MAXUSERS;
34*3124Swnj 
35*3124Swnj /*
36*3124Swnj  * These are initialized at bootstrap time
37*3124Swnj  * to values dependent on memory size
38*3124Swnj  */
39*3124Swnj int	nbuf, nswbuf;
40*3124Swnj 
41*3124Swnj /*
42*3124Swnj  * These have to be allocated somewhere; allocating
43*3124Swnj  * them here forces loader errors if this file is omitted.
44*3124Swnj  */
45*3124Swnj struct	proc *proc, *procNPROC;
46*3124Swnj struct	text *text, *textNTEXT;
47*3124Swnj struct	inode *inode, *inodeNINODE;
48*3124Swnj struct	file *file, *fileNFILE;
49*3124Swnj struct 	callout *callout;
50*3124Swnj struct	cblock *cfree;
51*3124Swnj 
52*3124Swnj struct	buf *buf, *swbuf;
53*3124Swnj short	*swsize;
54*3124Swnj int	*swpf;
55*3124Swnj char	*buffers;
56*3124Swnj struct	cmap *cmap, *ecmap;
57