Increase maxfiles to NPROC*2. This makes the per-process open file limit

highly bogus, however, and this needs to be fixed.
This commit is contained in:
David Greenman 1995-01-12 03:38:12 +00:00
parent 4d7b8c9269
commit ec2bb6ade1
2 changed files with 4 additions and 4 deletions

View File

@ -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' */

View File

@ -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' */