From owner-freebsd-questions Wed Dec 30 16:42:46 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA25114 for freebsd-questions-outgoing; Wed, 30 Dec 1998 16:42:46 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from jade.chc-chimes.com (jade.chc-chimes.com [206.67.97.83]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA25069 for ; Wed, 30 Dec 1998 16:42:39 -0800 (PST) (envelope-from billf@jade.chc-chimes.com) Received: from localhost (billf@localhost) by jade.chc-chimes.com (8.8.8/8.8.8) with SMTP id TAA24654; Wed, 30 Dec 1998 19:43:04 -0500 (EST) (envelope-from billf@jade.chc-chimes.com) Date: Wed, 30 Dec 1998 19:43:04 -0500 (EST) From: Bill Fumerola To: "Joseph M. Scott" 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, Joseph M. Scott wrote: > 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. Okay. Excellent. That makes a LOT more sense. > > > 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 :-) > ./conf/param.c:#define NMBCLUSTERS (512 + MAXUSERS * 16) bash-2.01$ bc bc 1.03 (Nov 2, 1994) Copyright (C) 1991, 1992, 1993, 1994 Free Software Foundation, Inc. This is free software with ABSOLUTELY NO WARRANTY. For details type `warranty'. 512 + 128 * 16 2560 I'm raising it, unless the order of operations is different then I think. Thanks for your help, - bill fumerola - billf@chc-chimes.com - BF1560 - computer horizons corp - - ph:(800) 252-2421 - bfumerol@computerhorizons.com - billf@FreeBSD.org - To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message