From owner-freebsd-performance@FreeBSD.ORG Sat May 28 17:45:33 2005 Return-Path: X-Original-To: freebsd-performance@freebsd.org Delivered-To: freebsd-performance@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1151516A41C for ; Sat, 28 May 2005 17:45:33 +0000 (GMT) (envelope-from drechsau@Geeks.ORG) Received: from mail.geeks.org (jacobs.geeks.org [204.153.247.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id CCE5543D48 for ; Sat, 28 May 2005 17:45:32 +0000 (GMT) (envelope-from drechsau@Geeks.ORG) Received: by mail.geeks.org (Postfix, from userid 1000) id 0B6F0159029; Sat, 28 May 2005 12:45:32 -0500 (CDT) Date: Sat, 28 May 2005 12:45:31 -0500 From: Mike Horwath To: Michael VInce Message-ID: <20050528174531.GA38323@octanews.net> References: <4297E2C4.1030505@roq.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4297E2C4.1030505@roq.com> X-PGP-Fingerprint: D8 24 CC E6 47 5F E4 60 BF B7 6E FA BF C7 6E C5 X-GPG-Fingerprint: 6A89 E78A B8B1 69D9 8CDB E966 4A5A C3F9 A1B0 C381 User-Agent: Mutt/1.5.9i Cc: freebsd-performance@freebsd.org Subject: Re: High usage of mbufs X-BeenThere: freebsd-performance@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Performance/tuning List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 May 2005 17:45:33 -0000 On Sat, May 28, 2005 at 01:17:24PM +1000, Michael VInce wrote: > Hi guys > On one of my web servers I have a really high usage of mbuf clusters in > use on a web server that does about 3million hits a day. > 4294914731/262144 mbuf clusters in use (current/max) > Does any one know why this is? I was thought it may of been hit by a > small syn flood that went un noticed and that the current mbuf stat is > failing to update its real usage, but the number does move every time I > run netstat -m > This is a dual P4 machine with 4gigs of ram that was setup before 5.4 > was release, so it could be considered 5.3 stable. > 5.4-PRERELEASE #0: Mon Feb 28 20:01:43 EST 2005 > > netstat -m > 352955 mbufs in use > 4294914731/262144 mbuf clusters in use (current/max) > 0/27/6656 sfbufs in use (current/peak/max) > 4177412 KBytes allocated to network > 0 requests for sfbufs denied > 0 requests for sfbufs delayed > 415 requests for I/O initiated by sendfile > 2300 calls to protocol drain routines Yah, I don't know, haven't had an issue on my news feeder box, but here is my output: [12:43pm] 6 [~]:canary% netstat -m 4107409126 mbufs in use 4159799080/25600 mbuf clusters in use (current/max) 0/6/6656 sfbufs in use (current/peak/max) 1541129 KBytes allocated to network 0 requests for sfbufs denied 0 requests for sfbufs delayed 0 requests for I/O initiated by sendfile 743625 calls to protocol drain routines [12:43pm] 7 [~]:canary% uname -a FreeBSD canary.octanews.net 5.4-STABLE FreeBSD 5.4-STABLE #0: Thu Apr 28 20:05:25 CDT 2005 root@canary.octanews.net:/usr/src/sys/i386/compile/CANARY i386 1.5GB allocated for network? Considering I am only seeing 177MB wired, that seems kind of odd. -- Mike Horwath, reachable via drechsau@Geeks.ORG