Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Jun 2002 11:10:20 -0500 (CDT)
From:      Mike Silbersack <silby@silby.com>
To:        Michal Mertl <mime@traveller.cz>
Cc:        hackers@freebsd.org
Subject:   Re: max number of tcp cons on STABLE (bug?)
Message-ID:  <20020604110855.H42854-100000@patrocles.silby.com>
In-Reply-To: <Pine.BSF.4.41.0206041626520.11266-100000@prg.traveller.cz>

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

On Tue, 4 Jun 2002, Michal Mertl wrote:

> My main observation:
> >From the names of OIDs I thought the high limit on net.inet.tcp.pcbcount
> could be somehow controlled by kern.ipc.maxsockets. That seems to be true
> on CURRENT but not on STABLE.
>
> I understand that it's not very common to have more than ~4000 sockets but
> I think it should be possible. It can be the reason of others' failures I
> guess.
>
>
> --
> Michal Mertl
> mime@traveller.cz

Change the following sysctl variables:

net.inet.ip.portrange.first: 49152
net.inet.ip.portrange.last: 65535

That range determines the max number of outbound connections you can have.
(For now, I'll get around to removing that limitation one of these
days...)  You're probably safe moving portrange.first all the way down to
1024, if you really want to, and need that many connections.

Mike "Silby" Silbersack


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?20020604110855.H42854-100000>