xref: /csrg-svn/sys/conf/param.c (revision 3463)
1*3463Sroot /*	param.c	4.2	81/04/02	*/
23124Swnj 
33124Swnj #include "../h/param.h"
43124Swnj #include "../h/systm.h"
53124Swnj #include "../h/dir.h"
63124Swnj #include "../h/user.h"
73124Swnj #include "../h/proc.h"
83124Swnj #include "../h/text.h"
93124Swnj #include "../h/inode.h"
103124Swnj #include "../h/file.h"
113124Swnj #include "../h/callout.h"
123124Swnj #include "../h/clist.h"
133124Swnj #include "../h/cmap.h"
143124Swnj /*
153124Swnj  * System parameter formulae.
163124Swnj  *
173124Swnj  * This file is copied into each directory where we compile
183124Swnj  * the kernel; it should be modified there to suit local taste
193124Swnj  * if necessary.
203124Swnj  *
213124Swnj  * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx
223124Swnj  */
233124Swnj 
243124Swnj int	hz = HZ;
253124Swnj int	timezone = TIMEZONE;
263124Swnj int	dstflag = DST;
273124Swnj #define	NPROC (20 + 8 * MAXUSERS)
283124Swnj int	nproc = NPROC;
293124Swnj int	ntext = 24 + MAXUSERS;
30*3463Sroot int	ninode = (NPROC + 16 + MAXUSERS) + 32;
313124Swnj int	nfile = 8 * (NPROC + 16 + MAXUSERS) / 10;
323124Swnj int	ncallout = 16 + MAXUSERS;
333124Swnj int	nclist = 100 + 16 * MAXUSERS;
343124Swnj 
353124Swnj /*
363124Swnj  * These are initialized at bootstrap time
373124Swnj  * to values dependent on memory size
383124Swnj  */
393124Swnj int	nbuf, nswbuf;
403124Swnj 
413124Swnj /*
423124Swnj  * These have to be allocated somewhere; allocating
433124Swnj  * them here forces loader errors if this file is omitted.
443124Swnj  */
453124Swnj struct	proc *proc, *procNPROC;
463124Swnj struct	text *text, *textNTEXT;
473124Swnj struct	inode *inode, *inodeNINODE;
483124Swnj struct	file *file, *fileNFILE;
493124Swnj struct 	callout *callout;
503124Swnj struct	cblock *cfree;
513124Swnj 
523124Swnj struct	buf *buf, *swbuf;
533124Swnj short	*swsize;
543124Swnj int	*swpf;
553124Swnj char	*buffers;
563124Swnj struct	cmap *cmap, *ecmap;
57