From owner-freebsd-net@FreeBSD.ORG Sat Aug 2 15:06:17 2003 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 454AE37B401 for ; Sat, 2 Aug 2003 15:06:17 -0700 (PDT) Received: from godel.mtl.distributel.net (nat.MTL.distributel.NET [66.38.181.24]) by mx1.FreeBSD.org (Postfix) with ESMTP id 80E2643FDF for ; Sat, 2 Aug 2003 15:06:16 -0700 (PDT) (envelope-from bmilekic@technokratis.com) Received: from godel.mtl.distributel.net (localhost [127.0.0.1]) h72I5xqU016868; Sat, 2 Aug 2003 18:05:59 GMT (envelope-from bmilekic@technokratis.com) Received: (from bmilekic@localhost) by godel.mtl.distributel.net (8.12.9/8.12.9/Submit) id h72I5wOR016867; Sat, 2 Aug 2003 18:05:58 GMT X-Authentication-Warning: godel.mtl.distributel.net: bmilekic set sender to bmilekic@technokratis.com using -f Date: Sat, 2 Aug 2003 18:05:58 +0000 From: Bosko Milekic To: Mike Silbersack Message-ID: <20030802180558.GA16831@technokratis.com> References: <3F2AC3F5.3010804@expertcity.com> <20030801152510.J2165@odysseus.silby.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030801152510.J2165@odysseus.silby.com> User-Agent: Mutt/1.4.1i cc: freebsd-net@freebsd.org Subject: Re: mbuf clusters exhausted w/o reaching max? X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2003 22:06:17 -0000 On Fri, Aug 01, 2003 at 03:28:35PM -0500, Mike Silbersack wrote: > > On Fri, 1 Aug 2003, Steve Francis wrote: > > > I have a FreeBSD 4.8-RELEASE #5 system that reported: > > Aug 1 11:50:39 rack2-101 /kernel: All mbuf clusters exhausted, please see tuning(7). > > Aug 1 11:50:39 rack2-101 /kernel: All mbufs exhausted, please see tuning(7). > > > > Yet its not close to the max allowed for clusters. > > rack2-101.nyc# netstat -m > > 1338/4240/131072 mbufs in use (current/peak/max): > > 1338 mbufs allocated to data > > 709/3366/32768 mbuf clusters in use (current/peak/max) > > 7792 Kbytes allocated to network (7% of mb_map in use) > > 50 requests for memory denied > > 0 requests for memory delayed > > 0 calls to protocol drain routines > > rack2-101.nyc# > > Mbufs & mbuf clusters are allocated from the kernel map, so it's possible > for allocations to fail due to the kernel map being relatively full due to > other parts of the kernel eating memory. This is probably what's > happening in your case; given that only 50 allocations were denied, it > probably didn't hurt your system much. Actually, he's not running out of address space here; he's probably run out of free pages and could not block to wait for them. -- Bosko Milekic * bmilekic@technokratis.com * bmilekic@FreeBSD.org TECHNOkRATIS Consulting Services * http://www.technokratis.com/