Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jan 2000 14:04:14 -0500
From:      Naief BinTalal <naief@cyfari.com>
To:        Majid Almassari <majid@ibroadcast.net>
Cc:        "questions@FreeBSD.ORG" <questions@FreeBSD.org>
Subject:   Re: netstat -m
Message-ID:  <20000110140413.A85488@cyfari.com>
In-Reply-To: <016001bf5b52$3a0d9dc0$8e1d91d8@ibroadcast.net>; from majid@ibroadcast.net on Mon, Jan 10, 2000 at 10:05:30AM -0000
References:  <016001bf5b52$3a0d9dc0$8e1d91d8@ibroadcast.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000110140413.A85488>