From owner-FreeBSD-users-jp@jp.freebsd.org  Mon Oct 13 21:39:19 1997
Received: by jaz.jp.freebsd.org (8.8.7+2.7Wbeta7/8.7.3) id VAA23615
	Mon, 13 Oct 1997 21:39:19 +0900 (JST)
Received: by jaz.jp.freebsd.org (8.8.7+2.7Wbeta7/8.7.3) with ESMTP id VAA23609
	for <FreeBSD-users-jp@jp.freebsd.org>; Mon, 13 Oct 1997 21:39:18 +0900 (JST)
Received: from sjc.mitaka.yokogawa.co.jp ([133.140.4.100]) by spgate.yokogawa.co.jp (8.8.5+2.7Wbeta5/3.5Wpl5:970807) with ESMTP id VAA26219 for <FreeBSD-users-jp@jp.freebsd.org>; Mon, 13 Oct 1997 21:39:17 +0900 (JST)
Received: from leia-spider.pa.yokogawa.co.jp by sjc.mitaka.yokogawa.co.jp (8.7.3+2.6Wbeta5/6.4J.6-YOKOGAWA-R/GW)
	id VAA24933; Mon, 13 Oct 1997 21:39:16 +0900 (JST)
Received: from teddy by leia-spider.pa.yokogawa.co.jp (1.38.193.4/6.4J.6-YOKOGAWA/pa)
	id AA28523; Mon, 13 Oct 1997 21:39:15 +0900
Received: from hirame by teddy.pa.yokogawa.co.jp (1.38.193.4/6.4J.6-pa/Slave)
	id AA28596; Mon, 13 Oct 1997 21:43:37 +0900
Date: Mon, 13 Oct 1997 21:43:37 +0900
Message-Id: <9710131243.AA28596@teddy.pa.yokogawa.co.jp>
X-Sender: y_saito@teddy
X-Mailer: Windows Eudora Pro Version 2.2-Jr2 (32)
Mime-Version: 1.0
Content-Type: text/plain; charset="ISO-2022-JP"
To: FreeBSD-users-jp@jp.freebsd.org
From: Yuji Saito <Yuuji_Saitou@yokogawa.co.jp>
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute [version 2.1 (Alpha) patchlevel=20]
X-Sequence: FreeBSD-users-jp 19256
Subject: [FreeBSD-users-jp 19256] CHILD_MAX
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

$B:XF#!w2#2OEE5!$H?=$7$^$9!#(J

$B%f!<%6$"$?$j$N:GBg%W%m%;%9?t$K$D$$$F$*J9$-$7$?$/%a%$%k$$$?$7$^$7$?!#(J
$B8=:_!"(JFreeBSD 2.2.2R $B$r;HMQ$7$F$$$^$9!#(J
ulimit $B%3%^%s%I$G%f!<%6$"$?$j$N%W%m%;%9?t$N>e8B$r3NG'$9$k$H0J2<$N$h$&$K(J
64$B$H$J$C$F$$$^$9!#(J

# ulimit -a
cpu time               (seconds, -t)  unlimited
file size           (512-blocks, -f)  unlimited
data seg size           (kbytes, -d)  131072
stack size              (kbytes, -s)  65536
core file size      (512-blocks, -c)  unlimited
max memory size         (kbytes, -m)  32768
locked memory           (kbytes, -l)  unlimited
max user processes              (-u)  64
open files                      (-n)  1024

$B$3$N>e8BCM$rA}$d$7$?$/!"%+!<%M%k%3%s%U%#%0%l!<%7%g%s%U%!%$%k$N0J2<$N8D=j$r(J
$BJQ99$7$F%8%'%l!<%7%g%s$r9T$$$^$7$?$,!"$I$&$7$F$b(J64 $B$+$iA}$($F$/$l$^$;$s!#(J

# Under some circumstances it is convenient to increase the defaults
# for the maximum number of processes per user and the maximum number
# of open files files per user.  E.g., (1) in a large news server, user
# `news' may need more than 100 concurrent processes.  (2) a user may
# need lots of windows under X.  In both cases, it may be inconvenient
# to start all the processes from a parent whose soft rlimit on the
# number of processes is large enough.  The following options work by
# changing the soft rlimits for init.
#
options         CHILD_MAX=128
options         OPEN_MAX=128

ulimit $B%3%^%s%I$G0l;~E*$KJQ99$9$k$3$H$O$G$-$^$7$?!#(J
FreeBSD 2.1.5R $B$G$O>e5-JQ99$G%f!<%6$"$?$j$N%W%m%;%9?t$N>e8B$r(J128$B$K(J
$BJQ99$7$?%+!<%M%k$r9=C[$G$-$?$N$G$9$,!"(J2.2.2R$B$G$O$3$N$"$?$j$N;EAH$_$,JQ(J
$B$o$C$?$N$G$7$g$&$+!)(J

ulimit $B$,$&$=$rJV$7$F$$$k$N$+$b$H;W$$!"(Jgetrlimit()$B$GD4$Y$F$_$^$7$?$,!"(J
$BF1MM$N7k2L$G!"%W%m%;%9$r<!!9<B9T$7$F$$$/$H$d$O$j!"(J64$B$rD6$($?$H$3$m(J
$B$G(Jfork$B$N%(%i!<$H$J$j$^$9!#(J

$B2?$+>pJs$,$4$6$$$^$7$?$i$h$m$7$/$*4j$$$$$?$7$^$9!#(J

