From owner-freebsd-questions Wed Dec 30 16:20:21 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA22467 for freebsd-questions-outgoing; Wed, 30 Dec 1998 16:20:21 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from mailhub.ainet.com (mailhub.ainet.com [204.30.40.29]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA22456 for ; Wed, 30 Dec 1998 16:20:17 -0800 (PST) (envelope-from jmscott@ainet.com) Received: from shell.ainet.com (jmscott@shell.ainet.com [204.30.40.108]) by mailhub.ainet.com (8.9.1/8.9.1) with SMTP id QAA04367; Wed, 30 Dec 1998 16:19:57 -0800 (PST) Received: from localhost by shell.ainet.com (4.1/SMI-4.1) id AA03545; for questions@FreeBSD.ORG; Wed, 30 Dec 98 16:22:08 PST Date: Wed, 30 Dec 1998 16:22:07 -0800 (PST) From: "Joseph M. Scott" To: Bill Fumerola Cc: questions@FreeBSD.ORG Subject: Re: mbufs, allocated memory and the like In-Reply-To: Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Wed, 30 Dec 1998, Bill Fumerola wrote: > > I feel so silly posting to -questions, but... > > bash-2.02$ netstat -m > 209/256 mbufs in use: > 209 mbufs allocated to data > 208/212/8192 mbuf clusters in use (current/peak/max) > 456 Kbytes allocated to network (96% in use) I believe that the 96% in use refers to the number of mbufs actually allocated, 209. It will then allocate more as they are needed up until it hits the max, 8192 in this case. I really like the output of netstat -m on 3.0 much better than on 2.2.x, since it displays the max mbuf's also. > 0 requests for memory denied > 0 requests for memory delayed > 0 calls to protocol drain routines > > Is the 96% in use something I should be worrying about? What kernel > options should I set higher. If my assumption above is correct ( by all means some one straighten me out quickly if I'm not ) then it's not a problem and nothing to worry about since you are not even close to your max. > > maxusers is 128 > NMBCLUSTERS is 8192 (obviously, from the data above) Somewhere I recall that the calculation for NMBCLUSTERS uses the maxusers setting. So you may actually be lowering your mbuf's by specifically setting it. I don't recall exactly what the calculation is, it's in the source somewhere :-) > > Thanks, > * Joseph M. Scott * jmscott@ainet.com * American InfoMetrics * Modesto, CA To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message