Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 25 May 1999 09:40:34 -0700
From:      David Greenman <dg@root.com>
To:        korvus <korvus@tasam.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   Re: mbuf cluster errors on freebsd 3.1 
Message-ID:  <199905251640.JAA11895@implode.root.com>
In-Reply-To: Your message of "Tue, 25 May 1999 12:11:42 EDT." <Pine.BSF.3.96.990525120740.29950A-100000@tasam.com> 

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