Commit | Line | Data |
---|---|---|
e0be43f9 | 1 | /* param.c 6.9 85/04/17 */ |
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" |
ab12a1f4 | 16 | #include "../h/quota.h" |
bf75e5ce | 17 | #include "../h/kernel.h" |
ec6f91b0 BJ |
18 | /* |
19 | * System parameter formulae. | |
20 | * | |
21 | * This file is copied into each directory where we compile | |
22 | * the kernel; it should be modified there to suit local taste | |
23 | * if necessary. | |
24 | * | |
25 | * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx | |
26 | */ | |
27 | ||
bf75e5ce | 28 | #define HZ 100 |
ec6f91b0 | 29 | int hz = HZ; |
bf75e5ce | 30 | int tick = 1000000 / HZ; |
fab05fec | 31 | int tickadj = 1000000 / HZ / 10; |
bf75e5ce | 32 | struct timezone tz = { TIMEZONE, DST }; |
ec6f91b0 BJ |
33 | #define NPROC (20 + 8 * MAXUSERS) |
34 | int nproc = NPROC; | |
e0be43f9 | 35 | int ntext = 36 + MAXUSERS; |
6835b970 KM |
36 | #define NINODE ((NPROC + 16 + MAXUSERS) + 32) |
37 | int ninode = NINODE; | |
38 | int nchsize = NINODE * 11 / 10; | |
b025a45a | 39 | int nfile = 16 * (NPROC + 16 + MAXUSERS) / 10 + 32; |
2067e85f | 40 | int ncallout = 16 + NPROC; |
ec6f91b0 | 41 | int nclist = 100 + 16 * MAXUSERS; |
ef49a333 | 42 | int nport = NPROC / 2; |
5b3fa994 | 43 | int nmbclusters = NMBCLUSTERS; |
af0b24db | 44 | #ifdef QUOTA |
72d2d310 KM |
45 | int nquota = (MAXUSERS * 9) / 7 + 3; |
46 | int ndquot = NINODE + (MAXUSERS * NMOUNT) / 4; | |
ab12a1f4 | 47 | #endif |
ec6f91b0 BJ |
48 | |
49 | /* | |
50 | * These are initialized at bootstrap time | |
51 | * to values dependent on memory size | |
52 | */ | |
53 | int nbuf, nswbuf; | |
54 | ||
55 | /* | |
56 | * These have to be allocated somewhere; allocating | |
57 | * them here forces loader errors if this file is omitted. | |
58 | */ | |
59 | struct proc *proc, *procNPROC; | |
60 | struct text *text, *textNTEXT; | |
61 | struct inode *inode, *inodeNINODE; | |
62 | struct file *file, *fileNFILE; | |
63 | struct callout *callout; | |
64 | struct cblock *cfree; | |
ec6f91b0 BJ |
65 | struct buf *buf, *swbuf; |
66 | short *swsize; | |
67 | int *swpf; | |
68 | char *buffers; | |
69 | struct cmap *cmap, *ecmap; | |
f93197fc | 70 | struct nch *nch; |
af0b24db | 71 | #ifdef QUOTA |
ab12a1f4 SL |
72 | struct quota *quota, *quotaNQUOTA; |
73 | struct dquot *dquot, *dquotNDQUOT; | |
74 | #endif |