Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Jan 2003 14:44:10 -0800 (PST)
From:      Matthew Dillon <dillon@apollo.backplane.com>
To:        Robert Watson <rwatson@FreeBSD.ORG>
Cc:        Sam Tannous <stannous@employees.org>, freebsd-hackers@FreeBSD.ORG
Subject:   Re: max simultaneous TCP connections (32,763)?
Message-ID:  <200301262244.h0QMiA8s069212@apollo.backplane.com>
References:   <Pine.NEB.3.96L.1030126163650.24134L-100000@fledge.watson.org>

next in thread | previous in thread | raw e-mail | index | archive | help

:
:> I have two freebsd boxes (back to back) and I've been playing with a
:> simple server on one machine and client on the other machine (this was
:> simply an exercise with playing with kqueue).  Both the server and the
:> client are single processes and the client seems to stop at 32,763
:> connections. 
:> 
:> I've modified the port range, tcp keepalive, kern.ipc.somaxconn,
:> maxfiles, maxsockets, nmbclusters.  I even tried
:> net.inet.tcp.tcbhashsize (up to 1024). 
:> 
:> Is there some other parameter I'm missing?  Or is this a known
:> limitation/bug? 
:
:Some of this has to do with limits on the available ancillary ports for
:out-going connections.  Try adding additional IP addresses to the client
:...
:Robert N M Watson             FreeBSD Core Team, TrustedBSD Projects
:robert@fledge.watson.org      Network Associates Laboratories

    It could be a file descriptor limit being hit.

    apollo:/home/dillon> sysctl -a | fgrep maxfi
    kern.maxfiles: 6120
    kern.maxfilesperproc: 5508
    test2:/home/dillon> sysctl -a | fgrep maxfi
    kern.maxfiles: 12328
    kern.maxfilesperproc: 11095

					-Matt
					Matthew Dillon 
					<dillon@backplane.com>

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301262244.h0QMiA8s069212>