Allow setting MAXFILES in the kernel config.
This commit is contained in:
parent
8b220a611d
commit
5a00f36414
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=45515
@ -1,4 +1,4 @@
|
||||
# $Id: options,v 1.130 1999/03/17 01:48:34 mjacob Exp $
|
||||
# $Id: options,v 1.131 1999/04/08 17:58:07 n_hibma Exp $
|
||||
#
|
||||
# On the handling of kernel options
|
||||
#
|
||||
@ -126,6 +126,7 @@ UNION
|
||||
|
||||
# Options used only in param.c.
|
||||
HZ opt_param.h
|
||||
MAXFILES opt_param.h
|
||||
MAXUSERS opt_param.h
|
||||
MSGMNB opt_param.h
|
||||
MSGMNI opt_param.h
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)param.c 8.3 (Berkeley) 8/20/94
|
||||
* $Id: param.c,v 1.31 1998/11/05 14:28:17 dg Exp $
|
||||
* $Id: param.c,v 1.32 1998/12/14 08:34:54 dillon Exp $
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
@ -74,7 +74,9 @@ int hz = HZ;
|
||||
int tick = 1000000 / HZ;
|
||||
int tickadj = howmany(30000, 60 * HZ); /* can adjust 30ms in 60s */
|
||||
#define NPROC (20 + 16 * MAXUSERS)
|
||||
#ifndef MAXFILES
|
||||
#define MAXFILES (NPROC*2)
|
||||
#endif
|
||||
int maxproc = NPROC; /* maximum # of processes */
|
||||
int maxprocperuid = NPROC-1; /* maximum # of processes per user */
|
||||
int maxfiles = MAXFILES; /* system wide open files limit */
|
||||
|
@ -36,7 +36,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* @(#)param.c 8.3 (Berkeley) 8/20/94
|
||||
* $Id: param.c,v 1.31 1998/11/05 14:28:17 dg Exp $
|
||||
* $Id: param.c,v 1.32 1998/12/14 08:34:54 dillon Exp $
|
||||
*/
|
||||
|
||||
#include <stddef.h>
|
||||
@ -74,7 +74,9 @@ int hz = HZ;
|
||||
int tick = 1000000 / HZ;
|
||||
int tickadj = howmany(30000, 60 * HZ); /* can adjust 30ms in 60s */
|
||||
#define NPROC (20 + 16 * MAXUSERS)
|
||||
#ifndef MAXFILES
|
||||
#define MAXFILES (NPROC*2)
|
||||
#endif
|
||||
int maxproc = NPROC; /* maximum # of processes */
|
||||
int maxprocperuid = NPROC-1; /* maximum # of processes per user */
|
||||
int maxfiles = MAXFILES; /* system wide open files limit */
|
||||
|
Loading…
Reference in New Issue
Block a user