1*7638Ssam /* param.c 4.13 82/08/01 */ 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" 16*7638Ssam #include "../h/quota.h" 173124Swnj /* 183124Swnj * System parameter formulae. 193124Swnj * 203124Swnj * This file is copied into each directory where we compile 213124Swnj * the kernel; it should be modified there to suit local taste 223124Swnj * if necessary. 233124Swnj * 243124Swnj * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx 253124Swnj */ 263124Swnj 273124Swnj int hz = HZ; 283124Swnj int timezone = TIMEZONE; 293124Swnj int dstflag = DST; 303124Swnj #define NPROC (20 + 8 * MAXUSERS) 313124Swnj int nproc = NPROC; 323124Swnj int ntext = 24 + MAXUSERS; 333463Sroot int ninode = (NPROC + 16 + MAXUSERS) + 32; 346469Swnj int nfile = 16 * (NPROC + 16 + MAXUSERS) / 10 + 32; 353124Swnj int ncallout = 16 + MAXUSERS; 363124Swnj int nclist = 100 + 16 * MAXUSERS; 373620Sroot int nport = NPROC / 2; 385148Swnj int nmbclusters = NMBCLUSTERS; 39*7638Ssam #if QUOTA 40*7638Ssam int nquota = (MAXUSERS * 9)/7 + 3; 41*7638Ssam int ndquot = (MAXUSERS*NMOUNT)/4 + NPROC; 42*7638Ssam #endif 433124Swnj 443124Swnj /* 453124Swnj * These are initialized at bootstrap time 463124Swnj * to values dependent on memory size 473124Swnj */ 483124Swnj int nbuf, nswbuf; 493124Swnj 503124Swnj /* 513124Swnj * These have to be allocated somewhere; allocating 523124Swnj * them here forces loader errors if this file is omitted. 533124Swnj */ 543124Swnj struct proc *proc, *procNPROC; 553124Swnj struct text *text, *textNTEXT; 563124Swnj struct inode *inode, *inodeNINODE; 573124Swnj struct file *file, *fileNFILE; 583124Swnj struct callout *callout; 593124Swnj struct cblock *cfree; 603124Swnj struct buf *buf, *swbuf; 613124Swnj short *swsize; 623124Swnj int *swpf; 633124Swnj char *buffers; 643124Swnj struct cmap *cmap, *ecmap; 65*7638Ssam #if QUOTA 66*7638Ssam struct quota *quota, *quotaNQUOTA; 67*7638Ssam struct dquot *dquot, *dquotNDQUOT; 68*7638Ssam #endif 69