From owner-freebsd-questions Thu Sep 5 18:43: 7 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 131DF37B400; Thu, 5 Sep 2002 18:42:58 -0700 (PDT) Received: from seven.Alameda.net (seven.Alameda.net [64.81.63.137]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9DC5D43E42; Thu, 5 Sep 2002 18:42:57 -0700 (PDT) (envelope-from ulf@Alameda.net) Received: by seven.Alameda.net (Postfix, from userid 1000) id 1899C3A23B; Thu, 5 Sep 2002 18:42:56 -0700 (PDT) Date: Thu, 5 Sep 2002 18:42:56 -0700 From: Ulf Zimmermann To: Richard Chew Cc: Wahyu Hidayat , freebsd-questions@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG Subject: Re: running out of mbuf Message-ID: <20020905184255.O1069@seven.alameda.net> Reply-To: ulf@Alameda.net References: <20020906013248.24028.qmail@web40007.mail.yahoo.com> <5.1.1.6.2.20020906113915.040d71b8@gomer.telstra.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <5.1.1.6.2.20020906113915.040d71b8@gomer.telstra.net>; from rchew@telstra.net on Fri, Sep 06, 2002 at 11:41:17AM +1000 Organization: Alameda Networks, Inc. X-Operating-System: FreeBSD 4.6-STABLE Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Fri, Sep 06, 2002 at 11:41:17AM +1000, Richard Chew wrote: > Hi > > From your message below, you seem to be running out of mbuf clusters. > > You need to modify NBMCLUSTERS in your kernel config file in > /usr/src/sys/i386/conf/ and set > > options NBMCLUSTERS=dd > > where dd is a number greater than the current max. Just how much will > depend on your particular circumstances. > > Recompile the kernel and that should be all. You should also be able to raise this via sysctl, the variable kern.ipc.nmbclusters from what I remember. > > Hope this helps. > > Thanks. > > Richard > > At 06:32 PM 5/09/2002 -0700, Wahyu Hidayat wrote: > >Hello, > > > >Firstly I am not a member of this mailling-list, so > >please CC to me, or if this is not the right forum, > >give me a direction where I could post it. > > > >I have a machine running squid cache-server and apache > >to answer squidGuard redirectors. When running under > >heavy load it complains about mbuf: > > > >Sep 6 07:42:40 cache2 squid[5735]: aclMatchProxyAuth: > >user 'imon' tries to use multple IP addresses! > >Sep 6 07:43:22 cache2 squid[5735]: > >aclDecodeProxyAuth: Disallowing empty passwo > >rd,user is '' > >Sep 6 07:43:26 cache2 last message repeated 2 times > >Sep 6 07:43:50 cache2 /kernel: looutput: mbuf > >allocation failed > >Sep 6 07:44:43 cache2 squid[5735]: > >aclDecodeProxyAuth: Unsupported proxy-auth sheme, > >'owqeko=f|xjbd' > > > >I thought I've configured my kernel with enough mbuf, > >but even one-half have not used yet. My netstat -m: > > > >22070/22544/81920 mbufs in use (current/peak/max): > > 20490 mbufs allocated to data > > 1580 mbufs allocated to packet headers > >20462/20480/20480 mbuf clusters in use > >(current/peak/max) > >46596 Kbytes allocated to network (7% of mb_map in > >use) > >87932 requests for memory denied > >274 requests for memory delayed > >0 calls to protocol drain routines > > > >This problem bothers me, as our http traffic comes > >from this server, and I have to reconfigure squid > >processes (the same as restarting I think) to free up > >mbuf. > > > >If you have any idea how to solve this please let me > >know. Any help of reference would be greatly > >appreciated. > > > >Best regards. > >-why- > > > >__________________________________________________ > >Do You Yahoo!? > >Yahoo! Finance - Get real-time stock quotes > >http://finance.yahoo.com > > > >To Unsubscribe: send mail to majordomo@FreeBSD.org > >with "unsubscribe freebsd-questions" in the body of the message > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-stable" in the body of the message > -- Regards, Ulf. --------------------------------------------------------------------- Ulf Zimmermann, 1525 Pacific Ave., Alameda, CA-94501, #: 510-865-0204 You can find my resume at: http://seven.Alameda.net/~ulf/resume.html To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message