Hi sun-managers,
sorry for long-long delay with the answer, hope it still will be usefull
for some of you.
--- Original request --------------------------------------------------
>
> I need to increase number of file descriptors per process. I've seen
> documents explaining how to do that (settings in /etc/system), but
> they claim setting fd above 1024 will cause problems with routines in
> <sys/select.h>.
>
> The only thing I'm asking now is whether this limit has resolved in
> Solaris 2.5 or 2.5.1 (all documents I've seen speak about 2.4 only).
>
--- End of original request --------------------------------------------
Thanks to all who replied: Casper Dik casper@Holland.Sun.COM
Alan Hill ahill@lanser.net
Vinay Somashekar vinay@sheiba.cbc.com
I did not mention here few Mailer-Daemons, since their answers were not
very useful. As usual :-), fastest and most complete answer received from
Casper Dik -- thank you, Casper!
--- From: Casper Dik <casper@holland.Sun.COM> ------
> I need to increase number of file descriptors per process. I've seen
> documents explaining how to do that (settings in /etc/system), but
> they claim say setting fd above 1024 will cause problems with routines
> in <sys/select.h>.
yes, you'll need to use poll(2), a more powerful and IMHO "better" interface
than select as you don't have to reset the mask and can poll for much more
different things at the same time.,
> The only thing I'm asking is whether this limit has resolved in
> Solaris 2.5 or 2.5.1 (all documents I've seen speak about 2.4 only).
No, this has not been resolved in 2.5.1 or before. Nor is it certain
it can easily be dropped.
Casper
--- From: ahill@lanser.net (Alan Hill) --------------------------------
1024, and that's all she wrote
--- From: vinay@sheiba.cbc.com (Vinay Somashekar) ---------------------
You might want to try these entries in /etc/system, but note Sun does not
reccomend doing this tho'. Why, I'm not sure I got an answer from them.
set rlim_fd_cur=512
set rlim_fd_max=1024
reboot the system after the adding the above lines.
Hope this helps, if u hear of something else please share the info.
-vinay
----------------------------------------------------------------------
Best regards,
-- Alexander Haiut, SE alx@eandm.co.il http://www.eandm.co.il/~alx
This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:43 CDT