Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: Casper.Dik@Holland.Sun.Com (Casper H.S. Dik - Network Security Engineer)
Subject: Re: Single process with many sockets (was: [Q] Where is the select() Java call?)
Date: 1999/01/16	[thread overview]
Message-ID: <casper.916494410@nl-usenet.sun.com> (raw)
In-Reply-To: 77pqb5$eil$1@Starbase.NeoSoft.COM

[[ PLEASE DON'T SEND ME EMAIL COPIES OF POSTINGS ]]

claird@Starbase.NeoSoft.COM (Cameron Laird) writes:

>I'm interested to learn what Solaris's limits are, also, in this
>regard.  I've had anecdotal reports of Solaris 2.7 bogging down (in
>memory exhaustion?) when running some servers with lots of file
>descriptors, where the corresponding 2.6 installation did fine.

Well, Solaris 7 should handle more fds better, not worse.

The solaris FAQ says:

3.45) How can I increase the number of file descriptors per process?

    In 2.3 in earlier this requires poking the kernel.
    In Solaris 2.4+, this can be accomplished by adding the
    following lines to /etc/system:

	* set hard limit on file descriptors
	set rlim_fd_max = 4096
	* set soft limit on file descriptors
	set rlim_fd_cur = 1024

    Raising the soft limit past 256 may confuse certain applications,
    especially BCP applications.  Raising the limit past 1024 may
    confuse applications that use select().  Select() cannot use more
    than 1024 file descriptors at this time prior to Solaris 7.  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.

    Solaris 7 allows upto 65536 fds passed to select; this does
    require recompiling with a larger value for FD_SETSIZE.

    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.
    Programs using many filedescriptors should try and reserve a number
    of low numbered file descriptors for use by stdio.

    The stdio limit is fixed for 64 bit applications in Solaris 7;
    if you really need more than 256 FILE * in and you can't use Solaris 7+
    or need to run in 32 bits, you can use SFIO from AT&T.
	    <http://www.research.att.com/sw/tools/sfio/>

    --- end of excerpt from the FAQ

Questions marked with a * or + have been changed or added since
the FAQ was last posted

The most recently posted version of the FAQ is available from
<http://www.wins.uva.nl/pub/solaris/solaris2/>
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.



      reply	other threads:[~1999-01-16  5:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <369C2109.1370A274@geocities.com>
     [not found] ` <369E51A5.36461E3E@bmsi.com>
1999-01-16  5:00   ` Single process with many sockets (was: [Q] Where is the select() Java call?) Cameron Laird
1999-01-16  5:00     ` Casper H.S. Dik - Network Security Engineer [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox