Mbuf errors

Thomas Eisenbarth eisenbarth at domecon.de
Wed Nov 24 12:38:58 PST 2004


Hi there,

Am Mittwoch, 24. November 2004 19:32 schrieb Akhthar Parvez. K:
> All mbuf clusters exhausted, please see tuning(7).

Did you have a look at this ?

> 3704/6656/6656 mbuf clusters in use (current/peak/max)
> 16980 Kbytes allocated to network (85% of mb_map in use)
> 106522 requests for memory denied
> 1545 requests for memory delayed

tuning(7):
     kern.ipc.nmbclusters may be adjusted to increase the number of network
     mbufs the system is willing to allocate.  Each cluster represents approx-
     imately 2K of memory, so a value of 1024 represents 2M of kernel memory
     reserved for network buffers.  You can do a simple calculation to figure
     out how many you need.  If you have a web server which maxes out at 1000
     simultaneous connections, and each connection eats a 16K receive and 16K
     send buffer, you need approximately 32MB worth of network buffers to deal
     with it.  A good rule of thumb is to multiply by 2, so 32MBx2 = 64MB/2K =
     32768.  So for this case you would want to set kern.ipc.nmbclusters to
     32768.  We recommend values between 1024 and 4096 for machines with mod-
     erates amount of memory, and between 4096 and 32768 for machines with
     greater amounts of memory.  Under no circumstances should you specify an
     arbitrarily high value for this parameter, it could lead to a boot-time
     crash.  The -m option to netstat(1) may be used to observe network clus-
     ter use.  Older versions of FreeBSD do not have this tunable and require
     that the kernel config(8) option NMBCLUSTERS be set instead.

greetings

-- 
Thomas Eisenbarth  eisenbarth at domecon.de
Donau-Ries Media-Consulting http://www.domecon.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-security/attachments/20041124/7365ea5d/attachment.bin


More information about the freebsd-security mailing list