Date: Wed, 21 Aug 2002 13:30:59 -0400 From: Bosko Milekic <bmilekic@unixdaemons.com> To: Gavin Atkinson <gavin@ury.york.ac.uk> Cc: freebsd-stable@FreeBSD.ORG, dillon@FreeBSD.ORG Subject: Re: mbuf usage - how do i track it down? Message-ID: <20020821133059.A31078@unixdaemons.com> In-Reply-To: <Pine.BSF.4.33.0208211647430.22899-100000@ury.york.ac.uk>; from gavin@ury.york.ac.uk on Wed, Aug 21, 2002 at 05:30:48PM %2B0100 References: <Pine.BSF.4.33.0208211647430.22899-100000@ury.york.ac.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Aug 21, 2002 at 05:30:48PM +0100, Gavin Atkinson wrote: > > Hi, > > I'm having problems on 4.6-STABLE, with running out of mbufs. I have in > the past had problems with running out of mbuf clusters, but have since > upped that from 1024 to 4096 with kern.ipc.nmbclusters="4096" in > /boot/loader.conf. I now find I am running out of mbufs. > > endor# netstat -m > 16288/16384/16384 mbufs in use (current/peak/max): > 16227 mbufs allocated to data > 3 mbufs allocated to packet headers > 58 mbufs allocated to socket names and addresses > 291/1742/4096 mbuf clusters in use (current/peak/max) > 7580 Kbytes allocated to network (61% of mb_map in use) > 30504 requests for memory denied > 9746 requests for memory delayed > 12606 calls to protocol drain routines > > I have upped it to 32768 with kern.ipc.nmbufs="32768" in > /boot/loader.conf, but as soon as I did that I found I was frequently > getting "No buffer space available" messages while trying to create some > outgoing TCP connections. However, after commenting the line out and > rebooting, i am still getting these messages so they may not be related. > > This box is acting as a nat gateway, with an adsl usb mopdem attached, and > an fxp card for the internal network. Currently I have a maximum uptiime > of around 8 days before I need to reboot because of the leaking mbufs. Interesting. It really does look like there's a leak. Try ifconfig down-ing your interfaces, one by one, and checking if any get freed. -- Bosko Milekic * bmilekic@unixdaemons.com * bmilekic@FreeBSD.org To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020821133059.A31078>