From owner-freebsd-hackers Thu Aug 27 12:04:58 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id MAA03694 for freebsd-hackers-outgoing; Thu, 27 Aug 1998 12:04:58 -0700 (PDT) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from zibbi.mikom.csir.co.za (zibbi.mikom.csir.co.za [146.64.24.58]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id MAA03660 for ; Thu, 27 Aug 1998 12:04:43 -0700 (PDT) (envelope-from jhay@zibbi.mikom.csir.co.za) Received: (from jhay@localhost) by zibbi.mikom.csir.co.za (8.9.1/8.9.1) id VAA24468; Thu, 27 Aug 1998 21:03:27 +0200 (SAT) From: John Hay Message-Id: <199808271903.VAA24468@zibbi.mikom.csir.co.za> Subject: Re: FW: Q was on questions, now putting it here. In-Reply-To: <7283DE19D141D111AD0E00A0C95B1955CF12B6@mail2.aiinet.com> from "Gessner, Matt" at "Aug 27, 98 01:30:54 pm" To: mattg@aiinet.com (Gessner, Matt) Date: Thu, 27 Aug 1998 21:03:26 +0200 (SAT) Cc: freebsd-hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL32 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG You have run into FreeBSD's week spot. You ran out of mbufs. Try a value for NMBCLUSTERS that is your amount of RAM / 2048. Then at least you will hit some other limitation before you run out of mbufs. John -- John Hay -- John.Hay@mikom.csir.co.za > > > > ---------- > > From: Gessner, Matt > > Sent: Thursday, August 27, 1998 10:40 AM > > To: 'freebsd-questions@freebsd.org' > > Subject: FW: Q was on questions, now putting it here. > > > > I guess this died of lack of notice??? > > > > Can anyone suggest somewhere to at least start looking into making this > > work? > > Or is 2048 TCP connections too much to ask of this setup? > > > > TIA > > > > > ---------- > > > From: Gessner, Matt > > > Sent: Sunday, August 23, 1998 10:44 PM > > > To: 'hackers' > > > Subject: Q was on questions, now putting it here. > > > > > > Hi, all, > > > > > > I posted to comp.unix.bsd.freebsd.misc but nothing's come back... news > > > takes > > > a while. > > > > > > I'm running 2.2.7-RELEASE, and I've already changed my kernel a bit to > > > allow me to do a whole bunch of simultaneous connections, but I've > > > probably done something wrong, because it ain't working. > > > > > > Here's what I have: > > > > > > P5-166 Gateway > > > 32 MB RAM > > > 2 GB disk, 850MB belongs to FreeBSD, of which 100MB is swap. > > > PCI DEC Ethernet card > > > > > > Here's how I've mangled my poor kernel: > > > maxusers 128 > > > options CHILD_MAX=256 > > > options OPEN_MAX=2048 > > > options NMBCLUSTERS=4096 > > > > > > Here's how I've changed login.conf > > > > > > default and root both have unlimited child process and open file > > > counts. > > > > > > I've done a little poking around in param.c and don't see immediately > > > that I've violated any rules by setting these limits the way I have. > > > > > > When I type limits, I get the following info back: > > > > > > maxprocesses 2067 > > > openfiles 4136 > > > > > > But I can't find anything anywhere that talks about tuning the kernel > > > for doing this. > > > > > > What I need to do is be able to run lots of TCP connections, and I know > > > it can be done with FreeBSD. > > > > > > The connections are being made from FreeBSD to a proprietary board and > > > then to a Solaris machine. > > > > > > My end goal is to be able to bring up about 1024 TCP connections > > > outbound and route them back to the same box, for a total of 2048 > > > connections. > > > > > > Right now, I run 1024 connections to the other system, and what happens > > > is when the sockets are all connected, and the writes start to occur, > > > FreeBSD > > > just reboots the machine -- no messages anywhere. > > > > > > Have I really goofed up somewhere/something? Can anyone give me some > > > insight as to what MIGHT be happening here? E-mail is fine, so's the > > > newgroup. > > > > > > I suppose it's completely possible I'm running out of RAM and swap, but > > > I'd expect to see something in /var/log/messages to that effect. So > > > far, nothing. > > > > > > Recently I uppped NMBCLUSTERS to 4096, but it didn't seem to fix the > > > problem. > > > That was based on some notes in the FAQ. > > > > > > Even more recently (but haven't tested it yet) is that I upped my swap > > > space > > > to > > > 256MB for 32MB of RAM. I killed off that nasty Win95 virus that was > > > consuming all that disk space.... Nasty, nasty thing. > > > > > > Thanks in advance, > > > > > > Matt Gessner > > > > > > > > > > > > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > > with "unsubscribe freebsd-hackers" in the body of the message > > > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-questions" in the body of the message > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message