From owner-freebsd-questions Mon Jan 10 11:23:53 2000 Delivered-To: freebsd-questions@freebsd.org Received: from ns1.ibroadcast.net (ns1.ibroadcast.net [216.145.30.2]) by hub.freebsd.org (Postfix) with SMTP id 1A4E115349 for ; Mon, 10 Jan 2000 11:23:50 -0800 (PST) (envelope-from majid@ibroadcast.net) Received: from darthmaul (darthmaul.ibroadcast.net [216.145.29.142]) by ns1.ibroadcast.net (8.9.3/8.8.8) with SMTP id LAA03753; Mon, 10 Jan 2000 11:23:04 -0800 (PST) X-Intended-For: questions@FreeBSD.org Message-ID: <01a001bf5b5d$49becb30$8e1d91d8@ibroadcast.net> From: "Majid Almassari" To: "Naief BinTalal" Cc: "questions@FreeBSD.ORG" References: <016001bf5b52$3a0d9dc0$8e1d91d8@ibroadcast.net> <20000110140413.A85488@cyfari.com> Subject: Re: netstat -m Date: Mon, 10 Jan 2000 11:24:41 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Hi, Currently I have options "NMBCLUSTERS=16384" set in the kernel. I also have maxusers set to 512. Should I comment out maxusers since I have NMBCLUSTERS set? would the Kernel compile with no problems? It sounds logical to increase the NMBCLUSTERS=24576, and see how things go from there. Thanx for the help and the reply. -- Majid Almassari, MSEE, MCP. Systems Administrator iBroadcast, Inc. Phone: (206) 223-5540 Email: majid@ibroadcast.net http://www.ibroadcast.net ----- Original Message ----- From: Naief BinTalal To: Majid Almassari Cc: questions@FreeBSD.ORG Sent: Monday, January 10, 2000 7:04 PM Subject: Re: netstat -m > On Mon, Jan 10, 2000 at 10:05:30AM -0000, Majid Almassari wrote: > > The netstat -m output for one of the server is the following: > > 15136/15936 mbufs in use: > > 14820 mbufs allocated to data > > 316 mbufs allocated to packet headers > > 14525/15066/16384 mbuf clusters in use (current/peak/max) > > 32124 Kbytes allocated to network (96% in use) > > 0 requests for memory denied > > 0 requests for memory delayed > > 0 calls to protocol drain routines > > > > My question is there a way to increase the Kbytes allocated to network in Kernel settings. Currently it is fluctuating between 95%-97%. Help is appreciated. > > > Hi Majid > The number of mbuf clusters is determined by the formula > n = 512 + mu * 16 in param.c (n => number of clusters, mu => maxusers > as specified in the kernel config file). > In your case 992 users (16384 clusters). I don't if you have set your > maxusers to 992 or used the option, only remember that the maxusers > number is a metric that sets many things including the number of > mbuf clusters. Therefore do not set it very high, if all you need is > to beef up a certain area ( such as the network buffer size in your case). > Use options NMBCLUSTERS=### in your kernel config file. > > Also remember that each cluster is 2 kB in size. This makes the size > of your current buffer 32 MB. Go up a notch .. maybe 48 MB. Add the > line > options NMBCLUSTERS=24576 > to your kernel config file. > make depend && make && make install > reboot. > > I hope this help :) > > Cheers, > BBTG > > > > -- > ------------------------------------------------------- > Naief BinTalal | naief@cyfari.com > ------------------------------------------------------- > "A rock pile ceases to be a rock pile the moment a > single man contemplates it, bearing within him the > image of a cathedral" -- Antoine de Saint-Exupery > ------------------------------------------------------- > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message