From owner-freebsd-net Fri May 8 06:58:27 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id GAA25167 for freebsd-net-outgoing; Fri, 8 May 1998 06:58:27 -0700 (PDT) (envelope-from owner-freebsd-net@FreeBSD.ORG) Received: from jingoro.prevmed.sunysb.edu (jingoro.prevmed.sunysb.edu [129.49.123.10]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id GAA25147 for ; Fri, 8 May 1998 06:58:10 -0700 (PDT) (envelope-from cfanning@jingoro.prevmed.sunysb.edu) Received: (from cfanning@localhost) by jingoro.prevmed.sunysb.edu (8.8.8/8.8.5) id JAA11923; Fri, 8 May 1998 09:49:16 GMT From: Chris Fanning Message-Id: <199805080949.JAA11923@jingoro.prevmed.sunysb.edu> Subject: Re: MBUFs and IPFW revisited In-Reply-To: from =?ISO-8859-1?Q?Dag=2DErling_Coidan_Sm=F8rgrav?= at "May 8, 98 12:53:56 pm" To: dag-erli@ifi.uio.no (Dag-Erling Coidan =?iso-8859-1?Q?Sm=F8rgrav?=) Date: Fri, 8 May 1998 09:49:16 +0000 (GMT) Cc: freebsd-net@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL31H (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > Chris Fanning writes: > > options "NMBCLUSTERS=1024" > > As DG pointed out, the Fine Documentation (otherwise known as Source > Code, or /usr/src/sys/conf/param.c) is a good place to look for > information on mbufs. Carfeul reading of the aforementioned file > uncovers the fact that the default value for NMBCLUSTERS is (512 + > MAXUSERS * 16). This means that unless you had MAXUSERS set to > something below 32, setting NMBCLUSTERS to 1024 may not have had the > effect you intended, since 512 + 32 * 16 = 1024. > > I have plenty of RAM to blow on my home -stable box, so I have > MAXUSERS set to 64 and NMBCLUSTERS set to 8192. Good point. I originally had it set to 2048 (maxusers=20) but I changed things around seeing if I could get the max number to change. Of course, it wouldn't because it was peak, not max. :) Jingoro's got 128MB RAM which is probably enough for a largish NMBCLUSTERS setting. I have to admit, I don't look at the sources much, -stable has been very kind to me for the 2+ years I've been running it. Chris To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message