From owner-freebsd-stable Wed Aug 21 9:34:45 2002 Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 46DAA37B400 for ; Wed, 21 Aug 2002 09:34:41 -0700 (PDT) Received: from I-Sphere.COM (shell.i-sphere.com [209.249.146.70]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9C3E43E75 for ; Wed, 21 Aug 2002 09:34:40 -0700 (PDT) (envelope-from fasty@shell.i-sphere.com) Received: from shell.i-sphere.com (fasty@shell [209.249.146.70]) by I-Sphere.COM (8.12.3/8.12.3) with ESMTP id g7LGZOeF011815; Wed, 21 Aug 2002 09:35:24 -0700 (PDT) (envelope-from fasty@shell.i-sphere.com) Received: (from fasty@localhost) by shell.i-sphere.com (8.12.3/8.12.3/Submit) id g7LGZOH8011814; Wed, 21 Aug 2002 09:35:24 -0700 (PDT) Date: Wed, 21 Aug 2002 09:35:24 -0700 From: faSty To: Gavin Atkinson , freebsd-stable@FreeBSD.ORG Subject: Re: mbuf usage - how do i track it down? Message-ID: <20020821163524.GA11619@i-sphere.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i X-Virus-Scanned: by amavisd-milter (http://amavis.org/) Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hi, try increase nmbclusters="10240" (10x more) -fasty 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. > > So how do I find out what is actually allocating these mbufs. Something > seems to be leaking them. > > How do I try to debug this? I need to know what is allocating these. The > mbuf(9) man page reffered to in stable doesn't exist, and under current it > doesn't really provide any pointers as to where i should go from here. > > I don't really want to just blindly up the number of mbufs, something is > obviously leaking here. I want to solve the problem, by finding out what. > > I can give access to this box if needed, it is one ill machine. > > Gavin > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message