From owner-freebsd-questions Thu Sep 5 18:48:18 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 1C87437B405 for ; Thu, 5 Sep 2002 18:47:55 -0700 (PDT) Received: from mail.au.darkbluesea.com (mail.au.darkbluesea.com [203.185.208.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id C114A43E42 for ; Thu, 5 Sep 2002 18:47:53 -0700 (PDT) (envelope-from d.anker@au.darkbluesea.com) Received: (qmail 80180 invoked by uid 82); 6 Sep 2002 01:47:20 -0000 Received: from unknown (HELO au.darkbluesea.com) (10.0.0.188) by istats.au.darkbluesea.com with SMTP; 6 Sep 2002 01:47:20 -0000 Message-ID: <3D7808E1.4060302@au.darkbluesea.com> Date: Fri, 06 Sep 2002 11:46:09 +1000 From: Duncan Anker User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020529 X-Accept-Language: en-us, en MIME-Version: 1.0 To: ulf@Alameda.net Cc: Richard Chew , Wahyu Hidayat , freebsd-questions@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG Subject: Re: running out of mbuf References: <20020906013248.24028.qmail@web40007.mail.yahoo.com> <5.1.1.6.2.20020906113915.040d71b8@gomer.telstra.net> <20020905184255.O1069@seven.alameda.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 Ulf Zimmermann wrote: >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. > No, you can't. This one has to be set early. However it *can* be set in /boot/loader.conf which I feel is a better place to put it since it saves a kernel recompile. Suggest also that you periodically run netstat -m to see how much you need to allocate. Regards, Duncan Anker To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message