From owner-freebsd-net Wed Mar 20 12:37:10 2002 Delivered-To: freebsd-net@freebsd.org Received: from mail.chesapeake.net (chesapeake.net [205.130.220.14]) by hub.freebsd.org (Postfix) with ESMTP id 1842A37B417 for ; Wed, 20 Mar 2002 12:36:31 -0800 (PST) Received: from localhost (jroberson@localhost) by mail.chesapeake.net (8.11.6/8.11.6) with ESMTP id g2KKaPj37893; Wed, 20 Mar 2002 15:36:25 -0500 (EST) (envelope-from jroberson@chesapeake.net) Date: Wed, 20 Mar 2002 15:36:25 -0500 (EST) From: Jeff Roberson To: Mike Silbersack Cc: net@freebsd.org Subject: Re: Getting rid of maxsockets. In-Reply-To: <20020320141306.K54496-100000@patrocles.silby.com> Message-ID: <20020320152915.Q41335-100000@mail.chesapeake.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org On Wed, 20 Mar 2002, Mike Silbersack wrote: > > We still need to cap the number of sockets somehow, as it would be bad for > sockets to consume all memory. If you want to move the socket limit to > someplace where it can be modified via a sysctl, that'd be great. As > you're going through and UMAing everything, I think it'd be best if you > kept the limits the same for now. > I have kept the current limits in place, but I think that it's somewhat ugly to have this policy enforced in the allocator where it is hard to adjust with a sysctl. Perhaps maxsockets could stay but become run time adjustable. Is there any case where we will have lots of pcbs w/o sockets? If so, all of the limits checking can be done in the socket code and the pcb code can completely forget about it. > > Once everything's UMA'd, then we can develop new sizing parameters. Everything has been UMA'd other than MD code, so I'm working on making the system take advantage of it. > > Mike "Silby" Silbersack > Thanks! Jeff To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message