Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 1999 16:03:54 -0400 (EDT)
From:      korvus <korvus@tasam.com>
To:        David Greenman <dg@root.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: mbuf cluster errors on freebsd 3.1 
Message-ID:  <Pine.BSF.3.96.990525155358.27574A-100000@tasam.com>
In-Reply-To: <199905251640.JAA11895@implode.root.com>

next in thread | previous in thread | raw e-mail | index | archive | help
The server is slow to respond even with 256 max users.  Some FAQ said that
4096 was the highest NMBCLUSTERS setting, but I think it might be a 2.2
FAQ...  Thanks... 

On Tue, 25 May 1999, David Greenman wrote:

> >There is a problem on this one server where ocassionally it gets a "out of
> >mbuf clusters" error and then apache stops working until the server is
> >rebooted.  When the server was switched to SMP the problem became less
> >common, but raising the MaxClients in apache above 256 brings the problem
> >back consistantly.  In the kernel config, NMBCLUSTERS=4096 and here is the
> >output of netstat -m:
> >4856/5216 mbufs in use:
> >        3365 mbufs allocated to data
> >        1491 mbufs allocated to packet headers
> >3044/3250/4096 mbuf clusters in use (current/peak/max)
> >7152 Kbytes allocated to network (93% in use)
> >0 requests for memory denied
> >0 requests for memory delayed
> >0 calls to protocol drain routines
> >
> >Does anyone know how to make more mbufs available or know how to reduce
> >the number of mbufs in use?  Thanks...
> 
>    You should be able to increase NMBCLUSTERS to something quite a bit
> larger that 4096, but you should make sure that maxusers isn't set too high
> (something like 128 should be enough for your machine). FreeBSD 3.2 also
> has changes that will allow you to set NMBCLUSTERS to 50000 or more...so
> you might consider upgrading.
> 
> -DG
> 
> David Greenman
> Co-founder/Principal Architect, The FreeBSD Project - http://www.freebsd.org
> Creator of high-performance Internet servers - http://www.terasolutions.com
> 



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?Pine.BSF.3.96.990525155358.27574A-100000>