From owner-freebsd-net Mon Dec 30 10:11: 1 2002 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 9C43437B401 for ; Mon, 30 Dec 2002 10:10:59 -0800 (PST) Received: from 66-162-33-178.gen.twtelecom.net (66-162-33-178.gen.twtelecom.net [66.162.33.178]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B3BF43EC5 for ; Mon, 30 Dec 2002 10:10:59 -0800 (PST) (envelope-from jeff@expertcity.com) Received: from [10.4.1.134] (helo=expertcity.com) by 66-162-33-178.gen.twtelecom.net with esmtp (Exim 3.22 #4) id 18T4NO-0000jP-00 for freebsd-net@freebsd.org; Mon, 30 Dec 2002 10:10:58 -0800 Message-ID: <3E108C31.9060403@expertcity.com> Date: Mon, 30 Dec 2002 10:10:57 -0800 From: Jeff Behl User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-net Subject: when are mbuf clusters released? Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org running apache-2.0.42 we're running into mbuf cluster exhaustion. going by what 'man tuning' says: We recommend values between 1024 and 4096 for machines with mod- erates amount of memory, and between 4096 and 32768 for machines with greater amounts of memory. Under no circumstances should you specify an arbitrarily high value for this parameter, it could lead to a boot-time crash. you'd think we would have been fine at 32768. setting it to 64000 helped, but only for a while; usage was still slowly creeping up 5066/52544/256000 mbufs in use (current/peak/max): 5058 mbufs allocated to data 8 mbufs allocated to packet headers 5031/50612/64000 mbuf clusters in use (current/peak/max) 114360 Kbytes allocated to network (15% of mb_map in use) is there some strange interaction going on between apace2 and bsd? killing apache caused the mbuf clusters to start draining, but only slowly. will clusters still be allocated in FIN_WAIT_? states? TIME_WAIT? This maching was serving a couple hundred connections a second...which doesn't seem like it should have taxed it much (p3 1.2 gHz). CPU util was low. Any help appreciated. Jeff FreeBSD dell350-12.snv 4.6.2-RELEASE FreeBSD 4.6.2-RELEASE #0: Tue Oct 15 16:20:35 GMT 2002 root@codebase.corp:/usr/src/sys/compile/EC-DELL-03 i386 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message