From owner-freebsd-stable Thu Apr 5 10:30:11 2001 Delivered-To: freebsd-stable@freebsd.org Received: from InterJet.dellroad.org (adsl-63-194-81-26.dsl.snfc21.pacbell.net [63.194.81.26]) by hub.freebsd.org (Postfix) with ESMTP id 5A9F737B496; Thu, 5 Apr 2001 10:30:02 -0700 (PDT) (envelope-from archie@dellroad.org) Received: from arch20m.dellroad.org (arch20m.dellroad.org [10.1.1.20]) by InterJet.dellroad.org (8.9.1a/8.9.1) with ESMTP id KAA05960; Thu, 5 Apr 2001 10:19:24 -0700 (PDT) Received: (from archie@localhost) by arch20m.dellroad.org (8.11.1/8.11.1) id f35HIcF73652; Thu, 5 Apr 2001 10:18:38 -0700 (PDT) (envelope-from archie) From: Archie Cobbs Message-Id: <200104051718.f35HIcF73652@arch20m.dellroad.org> Subject: Re: mbuf leak? fxp? In-Reply-To: <200103312350.f2VNon305299@bubba.packetdesign.com> "from Archie Cobbs at Mar 31, 2001 03:50:49 pm" To: Archie Cobbs Date: Thu, 5 Apr 2001 10:18:38 -0700 (PDT) Cc: freebsd-net@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL82 (25)] MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Archie Cobbs writes: > I have this machine that starts running out of mbufs every few days > ("looutput: mbuf allocation failed") and then crashes, and was wondering > if anyone else has seen similar behavior... > > For example... > > Yesterday... > $ netstat -m > 461/624/4096 mbufs in use (current/peak/max): > 459 mbufs allocated to data > 2 mbufs allocated to packet headers > 434/490/1024 mbuf clusters in use (current/peak/max) > 1136 Kbytes allocated to network (36% of mb_map in use) > 0 requests for memory denied > 0 requests for memory delayed > 0 calls to protocol drain routines > > Today... > $ netstat -m > 947/1072/4096 mbufs in use (current/peak/max): > 945 mbufs allocated to data > 2 mbufs allocated to packet headers > 920/946/1024 mbuf clusters in use (current/peak/max) > 2160 Kbytes allocated to network (70% of mb_map in use) > 0 requests for memory denied > 0 requests for memory delayed > 0 calls to protocol drain routines > > It appears that something is slowly eating up mbuf clusters. > The machine is on a network with continuous but very low volume > traffic, including some random multicast, NTP, etc. The machine > itself is doing hardly anything at all. Well, my current guess is that this is simply an NMBCLUSTERS problem. I increased NMBCLUSTERS to 8192 and it hasn't happened again yet. This machine has 5 ethernet interfaces, which must be probably more than the default NMBCLUSTERS can handle. I wonder if we should increase the default NMBCLUSTERS, or document somewhere that > 4 interfaces requires doing so? Thanks for all the suggestions... -Archie __________________________________________________________________________ Archie Cobbs * Packet Design * http://www.packetdesign.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message