increase size of clists
[unix-history] / usr / src / sys / conf / param.c
CommitLineData
b1078c35
KM
1/*
2 * Copyright (c) 1980 Regents of the University of California.
3 * All rights reserved. The Berkeley software License Agreement
4 * specifies the terms and conditions for redistribution.
5 */
6
7#ifndef lint
8char copyright[] =
9"@(#) Copyright (c) 1980 Regents of the University of California.\n\
10 All rights reserved.\n";
11#endif not lint
ec6f91b0
BJ
12
13#include "../h/param.h"
14#include "../h/systm.h"
751b301e 15#include "../h/socket.h"
ec6f91b0
BJ
16#include "../h/dir.h"
17#include "../h/user.h"
18#include "../h/proc.h"
19#include "../h/text.h"
20#include "../h/inode.h"
21#include "../h/file.h"
22#include "../h/callout.h"
23#include "../h/clist.h"
24#include "../h/cmap.h"
01966f05 25#include "../h/mbuf.h"
ab12a1f4 26#include "../h/quota.h"
bf75e5ce 27#include "../h/kernel.h"
ec6f91b0
BJ
28/*
29 * System parameter formulae.
30 *
31 * This file is copied into each directory where we compile
32 * the kernel; it should be modified there to suit local taste
33 * if necessary.
34 *
35 * Compiled with -DHZ=xx -DTIMEZONE=x -DDST=x -DMAXUSERS=xx
36 */
37
bf75e5ce 38#define HZ 100
ec6f91b0 39int hz = HZ;
bf75e5ce 40int tick = 1000000 / HZ;
fab05fec 41int tickadj = 1000000 / HZ / 10;
bf75e5ce 42struct timezone tz = { TIMEZONE, DST };
ec6f91b0
BJ
43#define NPROC (20 + 8 * MAXUSERS)
44int nproc = NPROC;
e0be43f9 45int ntext = 36 + MAXUSERS;
6835b970
KM
46#define NINODE ((NPROC + 16 + MAXUSERS) + 32)
47int ninode = NINODE;
48int nchsize = NINODE * 11 / 10;
b025a45a 49int nfile = 16 * (NPROC + 16 + MAXUSERS) / 10 + 32;
2067e85f 50int ncallout = 16 + NPROC;
ec6f91b0 51int nclist = 100 + 16 * MAXUSERS;
ef49a333 52int nport = NPROC / 2;
5b3fa994 53int nmbclusters = NMBCLUSTERS;
af0b24db 54#ifdef QUOTA
72d2d310
KM
55int nquota = (MAXUSERS * 9) / 7 + 3;
56int ndquot = NINODE + (MAXUSERS * NMOUNT) / 4;
ab12a1f4 57#endif
ec6f91b0
BJ
58
59/*
60 * These are initialized at bootstrap time
61 * to values dependent on memory size
62 */
63int nbuf, nswbuf;
64
65/*
66 * These have to be allocated somewhere; allocating
67 * them here forces loader errors if this file is omitted.
68 */
69struct proc *proc, *procNPROC;
70struct text *text, *textNTEXT;
71struct inode *inode, *inodeNINODE;
72struct file *file, *fileNFILE;
73struct callout *callout;
74struct cblock *cfree;
ec6f91b0
BJ
75struct buf *buf, *swbuf;
76short *swsize;
77int *swpf;
78char *buffers;
79struct cmap *cmap, *ecmap;
f93197fc 80struct nch *nch;
af0b24db 81#ifdef QUOTA
ab12a1f4
SL
82struct quota *quota, *quotaNQUOTA;
83struct dquot *dquot, *dquotNDQUOT;
84#endif