SUMMARY: problem with the number of file descriptors

From: Mike Xu (mxu_98@hotmail.com)
Date: Fri Oct 02 1998 - 23:46:25 CDT


Many thanks to:

Emad Ragy Anwar <emanwar@aucegypt.edu>
jsturges@gmri.com
Brian Laughton <brian@sprint.ca>
Casper Dik <casper@holland.Sun.COM>
mwang@tech.cicg.ml.com (Michael Wang)
Dave McFerren <davem@solve.net>
TSI Europe Helpdesk <tsi-he@tibco.com>
Karl Vogel <vogelke@c17mis.region2.wpafb.af.mil>
Ann Benninger <ahb@exelixis.com>
... ...
all the repliers for the question

SUMMARY:
The suggestion from most of the repliers is:
In the /etc/system file, add the lines,

# set hard limit on file descriptors
set rlim_fd_max = 1024
# set soft limit on file descriptors
set rlim_fd_cur = 256

then reboot the system by "boot -r" or "boot -a".

some of repliers mentioned:

"I wouldn't rely on 256 working for all applications; as I recall,
there's a limit of 64 somewhere in the C library (possibly stdio.h)"

"Raising the soft limit past 256 may confuse certain applications,
especially BCP applications. Raising the limit past 1024 may
confuse applications that use select(). In Solaris 2.6,
the RPC code was rewritten to use poll(), which does work with
many more fds than select(). Prior to 2.6, all RPC servers will
likely crash and burn if you increase the fd soft limit past 1024.
Programs using stdio or even library calls that use stdio may break
when they have more than 256 files open as that is the stdio limit"

The original question:
>I want to change permanently the default number of file
>descriptors to 256 for all user's shells in Solaris 2.5.1 OS. The
>default number in Solaris 2.5.1 is 64 (see the output of command:
>ulimit -a). I was able to change the number by the command "ulimit -n
>256" for a current user's shell and all children shells of it.
>However, after the system reboot, the number returned to its default
>number (64). How can I permanently change the number to 256?
>
>
>I will summarize.
>
>Thank you very much.
>
>Mike
>
>
>
>
>
>
>_________________________________________________________
>DO YOU YAHOO!?
>Get your free @yahoo.com address at http://mail.yahoo.com
>
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:12:50 CDT