summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_param.c
diff options
context:
space:
mode:
authordg <dg@FreeBSD.org>1995-01-12 03:38:12 +0000
committerdg <dg@FreeBSD.org>1995-01-12 03:38:12 +0000
commit3043f5e1402ea2749148814a14709f3a9ca3a372 (patch)
tree4f716a49ecd098908b6674e39cf4222f7e25108b /sys/kern/subr_param.c
parentd1ae26706817022aea13ccd7e3e88c62aab244a1 (diff)
downloadFreeBSD-src-3043f5e1402ea2749148814a14709f3a9ca3a372.zip
FreeBSD-src-3043f5e1402ea2749148814a14709f3a9ca3a372.tar.gz
Increase maxfiles to NPROC*2. This makes the per-process open file limit
highly bogus, however, and this needs to be fixed.
Diffstat (limited to 'sys/kern/subr_param.c')
-rw-r--r--sys/kern/subr_param.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c
index bc6ccb3..b0cca50 100644
--- a/sys/kern/subr_param.c
+++ b/sys/kern/subr_param.c
@@ -36,7 +36,7 @@
* SUCH DAMAGE.
*
* @(#)param.c 8.2 (Berkeley) 1/21/94
- * $Id: param.c,v 1.4 1994/09/13 14:46:24 dfr Exp $
+ * $Id: param.c,v 1.5 1995/01/09 16:04:20 davidg Exp $
*/
#include <sys/param.h>
@@ -82,7 +82,7 @@ int tickadj = 30000 / (60 * HZ); /* can adjust 30ms in 60s */
struct timezone tz = { TIMEZONE, DST };
#define NPROC (20 + 16 * MAXUSERS)
int maxproc = NPROC; /* maximum # of processes */
-int maxfiles = 256; /* open files per process limit */
+int maxfiles = NPROC*2; /* system wide open files limit */
int ncallout = 16 + NPROC; /* maximum # of timer events */
int nmbclusters = NMBCLUSTERS;
int fscale = FSCALE; /* kernel uses `FSCALE', user uses `fscale' */
OpenPOWER on IntegriCloud