From owner-freebsd-hackers Tue Jun 4 9: 8:50 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from patrocles.silby.com (d67.as14.nwbl0.wi.voyager.net [169.207.134.67]) by hub.freebsd.org (Postfix) with ESMTP id 99BDF37B400 for ; Tue, 4 Jun 2002 09:08:45 -0700 (PDT) Received: from patrocles.silby.com (localhost [127.0.0.1]) by patrocles.silby.com (8.12.3/8.12.3) with ESMTP id g54GAOOA042875; Tue, 4 Jun 2002 11:10:24 -0500 (CDT) (envelope-from silby@silby.com) Received: from localhost (silby@localhost) by patrocles.silby.com (8.12.3/8.12.3/Submit) with ESMTP id g54GAKs0042872; Tue, 4 Jun 2002 11:10:23 -0500 (CDT) X-Authentication-Warning: patrocles.silby.com: silby owned process doing -bs Date: Tue, 4 Jun 2002 11:10:20 -0500 (CDT) From: Mike Silbersack To: Michal Mertl Cc: hackers@freebsd.org Subject: Re: max number of tcp cons on STABLE (bug?) In-Reply-To: Message-ID: <20020604110855.H42854-100000@patrocles.silby.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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