From owner-freebsd-net Fri Apr 6 15: 7:50 2001 Delivered-To: freebsd-net@freebsd.org Received: from technokratis.com (modemcable092.3-201-24.mtl.mc.videotron.ca [24.201.3.92]) by hub.freebsd.org (Postfix) with ESMTP id 908B037B422 for ; Fri, 6 Apr 2001 15:07:47 -0700 (PDT) (envelope-from bmilekic@technokratis.com) Received: (from bmilekic@localhost) by technokratis.com (8.11.3/8.11.3) id f36M9NA30333; Fri, 6 Apr 2001 18:09:23 -0400 (EDT) (envelope-from bmilekic) Date: Fri, 6 Apr 2001 18:09:22 -0400 From: Bosko Milekic To: Archie Cobbs Cc: freebsd-net@FreeBSD.ORG Subject: Re: mbuf leak? fxp? Message-ID: <20010406180922.A30267@technokratis.com> References: <20010405194846.A22964@technokratis.com> <200104060404.f3644Fa75013@arch20m.dellroad.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <200104060404.f3644Fa75013@arch20m.dellroad.org>; from archie@dellroad.org on Thu, Apr 05, 2001 at 09:04:15PM -0700 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Thu, Apr 05, 2001 at 09:04:15PM -0700, Archie Cobbs wrote: > Bosko Milekic writes: > > NMBUFS accordingly. Chances are, if you are explicitly declaring > > `NMBCLUSTERS ' in your kernel configuration file, that you are > > actually lowering the number of clusters/mbufs that would otherwise be > > allowed with your given `maxusers' value (unless you have an unreasonably > > low maxusers). > > Mmm.. I don't understand that.. can you explain? Heh. I'm sorry for being so "obscure" about this. After re-reading it, I realize I should have probably just quoted the following: #ifndef NMBCLUSTERS #define NMBCLUSTERS (512 + MAXUSERS * 16) #endif TUNABLE_INT_DECL("kern.ipc.nmbclusters", NMBCLUSTERS, nmbclusters); TUNABLE_INT_DECL("kern.ipc.nmbufs", NMBCLUSTERS * 4, nmbufs); (from src/sys/kern/uipc_mbuf.c) So, for example, for MAXUSERS 256, NMBCLUSTERS is 4608, whereas I have seen people do things like this before: maxusers 256 options NMBCLUSTERS 4096 Thus actually reducing the address space allotted to clusters. > -Archie > > __________________________________________________________________________ > Archie Cobbs * Packet Design * http://www.packetdesign.com Regards, -- Bosko Milekic bmilekic@technokratis.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message