Received: by taz.hyperreal.com (8.8.3/V2.0) id OAA11661; Sat, 21 Dec 1996 14:05:34 -0800 (PST) Received: from scanner.worldgate.com by taz.hyperreal.com (8.8.3/V2.0) with ESMTP id OAA11630; Sat, 21 Dec 1996 14:05:28 -0800 (PST) Received: from znep.com (uucp@localhost) by scanner.worldgate.com (8.7.5/8.7.3) with UUCP id PAA23760 for new-httpd@hyperreal.com; Sat, 21 Dec 1996 15:05:25 -0700 (MST) Received: from localhost (marcs@localhost) by alive.ampr.ab.ca (8.7.5/8.7.3) with SMTP id PAA07640 for ; Sat, 21 Dec 1996 15:03:40 -0700 (MST) Date: Sat, 21 Dec 1996 15:03:39 -0700 (MST) From: Marc Slemko X-Sender: marcs@alive.ampr.ab.ca To: new-httpd@hyperreal.com Subject: Re: WWW Form Bug Report: "sockets left in FIN_WAIT_2 lingering state" on SunOS 4.x (fwd) In-Reply-To: <199612191937.OAA13373@spudboy.telebase.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@hyperreal.com On Thu, 19 Dec 1996, Chuck Murcko wrote: > # Network options. NMBCLUSTERS defines the number of mbufs and defaults to > # 256. This machine is a gateway that handles lots of traffic, so we boost > # that value. > options SOMAXCONN=256 # max pending connects Note that, unlike in BSD/OS, in FreeBSD SOMAXCONN is not wrapped by an ifndef, so defining it in your kenel config file won't work very well. To modify it on FreeBSD the best way would be to use sysctl to modify "kern.somaxconn" after boot. OTOH, it defaults to 128 in recent version of FreeBSD which is far more than BSD/OS defaulted to (16) last I checked. > options NMBCLUSTERS=4096 # clusters to spare(maybe)! When I last checked BSD/OS, it hardcoded NMBCLUSTERS. FreeBSD does it based on maxusers using: int nmbclusters = 512 + MAXUSERS * 16; which is reasonable in many cases. > > Size of an mbuf_cluster in 4.4lite BSD is 16 kB. So, it's a compromise > as to where you want to set that value. Remember, you're sacrificing > RAM that could be running user procs by bumping it up. I thought mbuf clusters were around 1 or 2 Kbytes on most architectures? FreeBSD's sys/i386/include/param.h: #ifndef MCLSHIFT #define MCLSHIFT 11 /* convert bytes to m_buf clusters */ #endif /* MCLSHIFT */ #define MCLBYTES (1 << MCLSHIFT) /* size of an m_buf cluster */ #define MCLOFSET (MCLBYTES - 1) /* offset within an m_buf cluster */ which puts it at 2 kB, and lite2 uses: #define MCLBYTES 1024 #define MCLSHIFT 10 which is 1kB. We run lots of BSD servers with NMBCLUSTERS at 4096, and it doesn't take 65536 kB of memory for the mbuf clusters.