Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Single process with many sockets (was: [Q] Where is the select() Java call?)
       [not found] ` <369E51A5.36461E3E@bmsi.com>
@ 1999-01-16  5:00   ` Cameron Laird
  1999-01-16  5:00     ` Casper H.S. Dik - Network Security Engineer
  0 siblings, 1 reply; 2+ messages in thread
From: Cameron Laird @ 1999-01-16  5:00 UTC (permalink / raw)


In article <369E51A5.36461E3E@bmsi.com>,
Stuart D. Gathman <stuart@bmsi.com> wrote:
			.
			.
			.
>separate boxes.  Note than none of the unix or Windoze OSes I use can support
>reading from 4000 Sockets in a single process - even with select().  (I
>suspect some high end machines probably can.)
			.
			.
			.
I notice in "Release Notes for Version 4.0D" these passages:

    The DIGITAL UNIX Version 4.0D software is a replacement
    for the Version 4.0A, Version 4.0B, and Version 4.0C
    operating system software and provides new or additional
    support for the following:

    ...

    1.10    Maximum Number of Open Files per Process

        In previous versions of the DIGITAL UNIX
        operating system, the number of file
        descriptors, or the maximum number of open
        files per process, was limited to 4096.  For
        DIGITAL UNIX Version 4.0D, the number has
        been increased to 65,536 file descriptors
        (64K) per process.

I haven't experimented yet with so many sockets, but perhaps I can
make time soon.

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.
-- 

Cameron Laird           http://starbase.neosoft.com/~claird/home.html
claird@NeoSoft.com      +1 281 996 8546 FAX



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Single process with many sockets (was: [Q] Where is the select() Java call?)
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Casper H.S. Dik - Network Security Engineer @ 1999-01-16  5:00 UTC (permalink / raw)


[[ 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.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-01-16  5:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox