Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 06 Sep 2002 11:46:09 +1000
From:      Duncan Anker <d.anker@au.darkbluesea.com>
To:        ulf@Alameda.net
Cc:        Richard Chew <rchew@telstra.net>, Wahyu Hidayat <wahyuhid@yahoo.com>, freebsd-questions@FreeBSD.ORG, freebsd-stable@FreeBSD.ORG
Subject:   Re: running out of mbuf
Message-ID:  <3D7808E1.4060302@au.darkbluesea.com>
References:  <20020906013248.24028.qmail@web40007.mail.yahoo.com> <5.1.1.6.2.20020906113915.040d71b8@gomer.telstra.net> <20020905184255.O1069@seven.alameda.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3D7808E1.4060302>