Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Feb 2002 17:32:33 -0800
From:      Luigi Rizzo <rizzo@icir.org>
To:        Randy Bush <randy@psg.com>
Cc:        freebsd-net@FreeBSD.ORG
Subject:   Re: network buffer problem
Message-ID:  <20020218173233.D22456@iguana.icir.org>
In-Reply-To: <E16cygh-000KXu-00@rip.psg.com>
References:  <5.1.0.14.2.20020218231018.01f18948@outshine> <20020219001421.D17FA5D09@ptavv.es.net> <E16cy1y-000JIy-00@rip.psg.com> <20020218163802.B22456@iguana.icir.org> <E16cygh-000KXu-00@rip.psg.com>

next in thread | previous in thread | raw e-mail | index | archive | help
As i suspected, you have a quite small number of mbuf clusters
in the system. I am unsure on how much memory you have and how
your box is used, but mbufs are used quite a bit in the system.

Each fxp device allocates 64 clusters in the receive queue, and can have
up to 128 in the NIC transmit queue, and up to 50 or 128
in the if_ transmit queue. Same for other network interfaces.

ipintrq consumes additional 50 clusters. 

socket buffers can also be big consumers, at 30-50 clusters each.

If you have 4.5 and enough memory one option is to use
MAXUSERS=0 and remove and "options NMBCLUSTERS"

And if you wonder why you did not see the "out of buffers"
message earlier, it's because it was committed sometime in
december.

	cheers
	luigi

On Mon, Feb 18, 2002 at 05:03:19PM -0800, Randy Bush wrote:
> >>     /kernel: fxp0: cluster allocation failed, packet dropped!
> >>     /kernel: m_clalloc failed, consider increase NMBCLUSTERS value
> > can you show the output of "netstat -m" ?
> 
>     # netstat -m
>     306/2352/6016 mbufs in use (current/peak/max):
> 	    264 mbufs allocated to data
> 	    42 mbufs allocated to packet headers
>     219/1504/1504 mbuf clusters in use (current/peak/max)
>     3596 Kbytes allocated to network (79% of mb_map in use)
>     249385 requests for memory denied
>     2 requests for memory delayed
>     0 calls to protocol drain routines
> 
> there has been no reboot since the incident
> 
> randy
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-net" in the body of the message

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-net" in the body of the message




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