1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-15 15:06:42 +00:00

Make CHILD_MAX and OPEN_MAX a tunable parameter.

This commit is contained in:
Scott Mace 1994-12-03 17:36:37 +00:00
parent d025cfd6c5
commit 663afbc34f
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=4934
4 changed files with 32 additions and 4 deletions

View File

@ -4,7 +4,7 @@
#
# This kernel is NOT MEANT to be runnable!
#
# $Id: LINT,v 1.110 1994/11/27 14:59:54 ats Exp $
# $Id: LINT,v 1.111 1994/12/03 00:17:54 wollman Exp $
#
#
@ -31,6 +31,14 @@ ident LINT
#
maxusers 10
#
# Under some circumstances it is necessary to make the default max
# number of proccesses per user and open files per user more than the
# defaults on bootup. (an example is a large news server in which
# the uid, news, can sometimes need > 100 simultaneous processes running)
options "CHILD_MAX=128"
options "OPEN_MAX=128"
#
# A math emulator is mandatory if you wish to run on hardware which
# does not have a floating-point processor. Pick either the original,

View File

@ -4,7 +4,7 @@
#
# This kernel is NOT MEANT to be runnable!
#
# $Id: LINT,v 1.110 1994/11/27 14:59:54 ats Exp $
# $Id: LINT,v 1.111 1994/12/03 00:17:54 wollman Exp $
#
#
@ -31,6 +31,14 @@ ident LINT
#
maxusers 10
#
# Under some circumstances it is necessary to make the default max
# number of proccesses per user and open files per user more than the
# defaults on bootup. (an example is a large news server in which
# the uid, news, can sometimes need > 100 simultaneous processes running)
options "CHILD_MAX=128"
options "OPEN_MAX=128"
#
# A math emulator is mandatory if you wish to run on hardware which
# does not have a floating-point processor. Pick either the original,

View File

@ -4,7 +4,7 @@
#
# This kernel is NOT MEANT to be runnable!
#
# $Id: LINT,v 1.110 1994/11/27 14:59:54 ats Exp $
# $Id: LINT,v 1.111 1994/12/03 00:17:54 wollman Exp $
#
#
@ -31,6 +31,14 @@ ident LINT
#
maxusers 10
#
# Under some circumstances it is necessary to make the default max
# number of proccesses per user and open files per user more than the
# defaults on bootup. (an example is a large news server in which
# the uid, news, can sometimes need > 100 simultaneous processes running)
options "CHILD_MAX=128"
options "OPEN_MAX=128"
#
# A math emulator is mandatory if you wish to run on hardware which
# does not have a floating-point processor. Pick either the original,

View File

@ -31,20 +31,24 @@
* SUCH DAMAGE.
*
* @(#)syslimits.h 8.1 (Berkeley) 6/2/93
* $Id: syslimits.h,v 1.4 1994/08/08 09:12:43 davidg Exp $
* $Id: syslimits.h,v 1.5 1994/08/21 04:41:59 paul Exp $
*/
#ifndef _SYS_SYSLIMITS_H_
#define _SYS_SYSLIMITS_H_
#define ARG_MAX 65536 /* max bytes for an exec function */
#ifndef CHILD_MAX
#define CHILD_MAX 40 /* max simultaneous processes */
#endif
#define LINK_MAX 32767 /* max file link count */
#define MAX_CANON 255 /* max bytes in term canon input line */
#define MAX_INPUT 255 /* max bytes in terminal input */
#define NAME_MAX 255 /* max bytes in a file name */
#define NGROUPS_MAX 16 /* max supplemental group id's */
#ifndef OPEN_MAX
#define OPEN_MAX 64 /* max open files per process */
#endif
#define PATH_MAX 1024 /* max bytes in pathname */
#define PIPE_BUF 512 /* max bytes for atomic pipe writes */