home *** CD-ROM | disk | FTP | other *** search
- Xref: sparky fj.sys.sun:1261 fj.sys.news:772
- Path: sparky!uunet!ccut!news.u-tokyo.ac.jp!wnoc-tyo-news!sranha!sran265!katsu
- From: katsu@sran14.sra.co.jp (WATANABE katsuhiro)
- Newsgroups: fj.sys.sun,fj.sys.news
- Subject: Re: open 257 files in a process (Re: Open file par process)
- Message-ID: <KATSU.93Jan11094958@sran14.sra.co.jp>
- Date: 11 Jan 93 00:49:58 GMT
- References: <RYU.92Dec10151440@sushi.goldman.co.jp>
- Sender: news@sran265.sra.co.jp
- Followup-To: fj.sys.sun
- Distribution: fj
- Organization: Software Research Associates, Inc.,Japan
- Lines: 144
- In-reply-to: ryu@sushi.goldman.co.jp's message of 10 Dec 92 06:14:40 GMT
-
- $B!J(BNewsgroups: $B$KCm0U!K(B
- $B!!%U%)%m!<$NCY$5$J$i(B *.jp $B$G==;X$K(B$B$O$$$k$G$"$m$&EOn4!w#S#R#A$G$9!#(B
-
- $B!!%*!<%W%s$G$-$k%U%!%$%k$N?t$rA}$d$9$?$a$K(B limit $B$r$$$8$k7o$K$D$$$F(B$B$G$9!#(B
- $B!!(Blimit descriptors(RLIMIT_NOFILE) $B$O(B SunOS 4.1 $B$+$iF3F~$5$l$?$b$N$@$H(B
- $B;W$$$^$9$,!"(BNEWS-OS $B$G$b(B R4.2 $B$+$i$3$l$,F3F~$5$l$?$h$&$G$9$M!#(B
-
- $B!!(Blimit $B$r;H$$$3$J$9$K$O!"EvA3$J$,$iBP>]$H$J$C$F$$$k;q8;$NCN<1(B$B$,(B
- $BI,MW$G$9!#%U%)%m!<$K$"$C$?(B limit(1) $B$d(B csh(1) $B$O$b$A$m$s!"(B
- setrlimit(2) $B$NN`$b!"$3$NE@$G$OLr$KN)$D(B$B$H$O;W$($^$;$s!#(B
-
- $B5-;v(B <RYU.92Dec10151440@sushi.goldman.co.jp> $B$G(B
- ryu@sushi.goldman.co.jp (Masahiro Yanagisawa) $B$5$s$$$O$/(B
- > $B>/$7A0$K(B limit $B$G(B $B#1%W%m%;%9$,(Bopen$B$G$-$k?t$r(B 256 $B$KA}$d$9$H$$$&(B
- > $B$*OC$,$"$j$^(B$B$7$?$h$M!#(B
-
- > $B;d$b6=L#$r;}$C$?$s$G$9$,!"(B
- > csh> limit
- > descriptors 64
- > $B$3$N#6#4$C$F$$$&?t;z$O2?(B$B=h$G%G%U%)%k%H@_Dj$5$l$k$s$G$7$g$&!)(B
-
- > $B%Q%i%a!<%?$rJQ$($F(B reconfig $B$7$F$_$?$s$G$9$,!"(B
- > 64, 256 $B$H$$(B$B$&%G%U%)%k%H$KJQ2=$OL5$$$h$&$G$7$?!#(B
-
- $B!!(B/vmunix $B$N(B main() $B$G(B swapper(process 0) $B$r:n$k$H$-$K@_Dj$5$l!"(B$B$3$l$,(B
- $B7Q>5$5$l$F$$$/$h$&$G$9!#!J(BNEWS-OS 4.2 $B$bF1$8!K(B
- $B!!0lIt$G?.$8$i$l$F$$$k$h$&$J!"(Binit $B$,@_Dj$9$k$H(B$B$+!"(Bkernel $B$,(B init $B$K(B
- $BBP$7$F@_Dj$9$k$H$$$&$N$O8m$j$@$H;W$$$^$9!#(B
- $B!!$3$NCM$,5$$KF~$i$J$1$l$P!"(Breconfig $B$J$I$G$OJQ99$G$-$J$$$N$G!"(B
- /vmunix $B$N%P%$%J%j$K%Q%C%A$rEv$F$k$3$H$K$J$j$^$9!#!J@)8B$r6/$a$k(B
- $BJ}8~$O4J(B$BC1$G$9!#$7$+$7?t$rA}$d$9J}8~$b4JC1$+$I$&$+$OITL@$G$9!#!K(B
-
- $B!J$D$$$G$J$,$i!"(Bdescriptors $B0J30$N(B limit $B$O(B$B$I$3$G@_Dj$5$l$k$+$H$$$&(B
- $B5?Ld$,EvA3$o$-$*$3$k$3$H$G$7$g$&!#(BNEWS-OS $B$N(B $B>l9g!"(Bmain() $B$G(B
- process 0 $B$KBP$9(B$B$k(B limit $B$,0lC6A4$F(B RLIMIT_INFINITY $B$K@_Dj$5$l!"(B
- $B$5$i$K(B stacksize, memoryuse, memoryuse $BEy$,(B vminit() $B$GE,Ev$K(B
- $B:F@_Dj$5$l$k$h$&$G$9!#(BSun OS $B$G$O$I$&$J$N$+$OCN$j$^$;$s!#>\$7$$J}(B
- $B65$($F2<$5$$!#!K(B
-
- $B!!(Breconfig $B$G$OJQ99$,H?1G$5$l$J$$7o$OJL$N5-;v(B
- <KATSU.93Jan11091828@sran14.sra.co.jp> $B$G@bL@$7$F$*$-$^$7$?!#(B
- $B!!%+!<%M%k$N%=!<%9>e$G$I$N$h$&$K(B 64 $B$H$$$&$N$,I=8=$5$l$F$$$k$+$H$$$&(B
- $BLdBj$J$i$P!"(BNOFILE_IN_U $B$r;2>H$9(B$B$k$HA[A|$7$F$$$^$9!#(Bhard limit $B$N(B
- $BJ}$O(B NOFILE $B$G$O$J$$$G$7$g$&$+!#$b$A$m$s$3$&$7$?A':w$O2f!9%f!<%6!<$K(B$B$O(B
- $B$"$^$j0UL#$,$J$$$+$b$7$l$^$;$s!#(B
-
-
- > csh> limit descriptors 256 $B$O=PMh$F$b!"(B
- > csh> limit descriptors 257 $B$O(B
- > limit: descriptors: Can't set limit
- > $B$H$J$C$F$7$^$$$^$9!#(B
-
- $B!!$3$3$G!"(B"Can't set limit" $B$H$$$&7Y9p$,=P$?$N$O!"(Bhard limit $B$r1[$($F(B
- $B@_Dj$7$h$&$H$7$?$+$i$K2a$.$J$$$H;W$$$^$9!#(B
- $B!!$G$O(B limit -h $BEy$G(B hard limit $B$NJ}$r(B 256 $B$h$jBg$-$/$G$-$k$+$H$$$&$H!"(B
- $B$G$-$^$;$s!#(Bsetrlimit(2) $B%7%9%F%`%3!<%kFb$G!"(Bdescriptor $B$N(B
- hard limit $B$r(B 256 $B$h$jBg$-$/@_Dj$7$h$&$H$7$?$H$-$O!"(B256 $B$K@_Dj$7$F(B
- $B$7$^$&$h$&$K$J$C$F$$(B$B$k$+$i$G$9!#!J(BNEWS-OS 4.2 $B$G$bF1$8!K(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CD'$r$$$/$D$+L@$i$+$K$7$F$*$-$^$9!#(B
-
- [1] descriptor table $B$NF0E*$J3d$jEv$F$NJ}K!(B
- $B!!%*!<%W%s$7$F$$$k%U%!%$%k$N(B descriptor $B$N:GBg$NHV9f(B u.u_lastfile $B$,(B
- 64 $BL$K~$N;~$O5lMh$I$*$j(B u area $BFb$K%F!<%V%k$,$"$j$^$9!#(B64 $B0J>e$K(B
- $B$J$k$H$-$K$O$8$a$FF0E*$J3d$jEv$F$,5/$3(B$B$j!"(Bu area $B$N30It!J%+!<%M%k$N(B
- $B%G!<%?NN0h!K$K%F!<%V%k$,CV$+$l$k$h$&$K$J$j$^$9!#!J(BSunOS, NEWS-OS
- $BN>J}$H(B$B$b!K(B
- $B!!(Bdescriptors $B$N(B soft limit $B$,IaCJ$O(B 64 $B$G$"$k$N$b!"E,Ev$J?t$r(B
- $BWs0UE*$K;}$C$F$-$?$o$1$G$O$J$/!"$3(B$B$&$7$?M}M3$K$h$k$b$N$G$7$g$&!#(B
-
- $B$A$J$_$K!"$3$N$h$&$JITO"B3$J07$$$r<u$1$F$$$kM}M3$G$9$,!D!D!D!D(B
- #ifdef $BA[A|(B
- $B!!(Bdescriptor table $B$OK\Mh$J$i(B u area $BFb$K$"$k$Y$-$b$N$G!"(Bswap out
- $B$5$l$k$Y$-$b$N$G$9$,(B$B!"F0E*$K3d$jEv$F$?(B descriptor $BMQ$NNN0h$b(B
- swap out $B$7$J$1$l$P$J$i$J$$$G$7$g$&$+!)$b$A$m$s$3$l$OLLE](B$B$J$N$G(B
- swap out $B$7$?$/$"$j$^$;$s$,!"%7%9%F%`Fb$GF0$$$F$$$k%W%m%;%9A4It$N(B
- descriptor table $B$,>o(B$BCs$9$k$N$b9%$^$7$/$J$$$G$7$g$&!#$=$3$G!"(B
- descriptor $B$r(B 64 $B8D0J2<$7$+;H$o$J$$BgItJ,$N%W%m%;%9$O=>Mh(B$B$I$*$j(B
- u area $B$K%F!<%V%k$r3NJ]$7!"Bt;3$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