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