From owner-freebsd-stable Wed Sep 4 15: 4:24 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 34A5837B400 for ; Wed, 4 Sep 2002 15:04:21 -0700 (PDT) Received: from woozle.rinet.ru (woozle.rinet.ru [195.54.192.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A2E743E42 for ; Wed, 4 Sep 2002 15:04:20 -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 g84M45TJ057801; Thu, 5 Sep 2002 02:04:05 +0400 (MSD) (envelope-from marck@rinet.ru) Date: Thu, 5 Sep 2002 02:04:05 +0400 (MSD) From: Dmitry Morozovsky To: Dominic Marks Cc: Mike Hoskins , Charles Sprickman , Subject: Re: interpreting netstat -m output In-Reply-To: <20020904212032.GA1688@gallium> Message-ID: <20020905014934.J56943-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 Wed, 4 Sep 2002, Dominic Marks wrote: DM> An mbuf is a fixed length structure which contains network data. DM> DM> An mbuf cluster is associated with an area of memory which is used for DM> storing more data than you can fit in a single mbuf. DM> DM> According the D&I 4.4 an mbuf is 128 bytes and (not all of this is DM> available for data storage), an mbuf cluster varies in size, but DM> defaults to 1024 bytes (but according to the book this may be different DM> depending on CPU architecture). AFAIK according to /usr/src/sys/*/param.h, mbuf size if 256 (at least for i386, see /usr/src/sys/i386/include/param.h, and is not defined for Alphas); and mbcluster size defaults to 2k (I suppose the smallest 2^x to cover standard Ethernet frame) however, in /usr/src/sys/i386/boot/dosboot/param.h, MCLBYTES defined as 2^12 (4k). Don't know whether this value is really used. 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