Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 30 Jun 2004 09:45:31 -0400
From:      Bill Moran <wmoran@potentialtech.com>
To:        "Steve Bertrand" <iaccounts@ibctech.ca>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: kern.ipc.nmbclusters
Message-ID:  <20040630094531.59de248a.wmoran@potentialtech.com>
In-Reply-To: <4860.209.167.16.15.1088601951.squirrel@209.167.16.15>
References:  <4860.209.167.16.15.1088601951.squirrel@209.167.16.15>

next in thread | previous in thread | raw e-mail | index | archive | help
"Steve Bertrand" <iaccounts@ibctech.ca> wrote:

> I have a machine that is rebooting with the following error:
> 
> "All mbuf clusters exhausted, please see tuning(7)."
> 
> Which through google and man tuning I was able to figure out that indeed,
> mbufs were exhausted. So I tried to set kern.ipc.nmbclusters=4096 (which
> should cover the load of the server), but found out after it is not a
> run-time tunable parameter.
> 
> I searched google, and gathered that I should put this setting in
> /boot/loader.conf.
> 
> This is contradictory of me usually putting kernel tweaks in
> /etc/sysctl.conf.
> 
> >From your experience, where is the best place to load this variable from,
> why is it a better location, and what will happen if I don't load it from
> the proper place?

You have to put it in loader.conf because that value is set _very_ early
in the boot process (before sysctl.conf is used) and can not be changed
later.

You can also put this value in your kernel config and recompile your kernel.

-- 
Bill Moran
Potential Technologies
http://www.potentialtech.com



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040630094531.59de248a.wmoran>