From owner-freebsd-stable Wed Sep 4 15:14:57 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B664737B400 for ; Wed, 4 Sep 2002 15:14:54 -0700 (PDT) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id C20FF43E65 for ; Wed, 4 Sep 2002 15:14:53 -0700 (PDT) (envelope-from marck@rinet.ru) Received: from localhost (localhost [127.0.0.1]) by woozle.rinet.ru (8.12.5/8.12.5) with ESMTP id g84MEnTJ057947; Thu, 5 Sep 2002 02:14:49 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Thu, 5 Sep 2002 02:14:49 +0400 (MSD) From: Dmitry Morozovsky To: Dominic Marks Cc: Mike Hoskins , Charles Sprickman , Subject: Re: interpreting netstat -m output In-Reply-To: <20020905014934.J56943-100000@woozle.rinet.ru> Message-ID: <20020905021010.C56943-100000@woozle.rinet.ru> X-NCC-RegID: ru.rinet MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, 5 Sep 2002, Dmitry Morozovsky wrote: DM> AFAIK according to /usr/src/sys/*/param.h, mbuf size if 256 (at least for DM> i386, see /usr/src/sys/i386/include/param.h, and is not defined for DM> Alphas); DM> DM> and mbcluster size defaults to 2k (I suppose the smallest 2^x to DM> cover standard Ethernet frame) DM> DM> however, in /usr/src/sys/i386/boot/dosboot/param.h, MCLBYTES defined as DM> 2^12 (4k). Don't know whether this value is really used. Returning to the original question, I'd never seen on our servers mbuf usage more that 2 times nmbclusters usage, so in every instance where I've explicitly set nmbclusters, I'd also set mbufs as 2*mnbclusters (this may slightly decrease kernel memory reservations comparing to setting nmbclusters only) This applies mainly to TCP servers, where most data flow is described as "Most packets are of maximum MTU". YMMV, you know ;-) Sincerely, D.Marck [DM5020, DM268-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message