From owner-freebsd-questions Tue May 25 9:43: 8 1999 Delivered-To: freebsd-questions@freebsd.org Received: from implode.root.com (root.com [209.102.106.178]) by hub.freebsd.org (Postfix) with ESMTP id DD6C614FBF for ; Tue, 25 May 1999 09:43:04 -0700 (PDT) (envelope-from root@implode.root.com) Received: from implode.root.com (localhost [127.0.0.1]) by implode.root.com (8.8.8/8.8.5) with ESMTP id JAA11895; Tue, 25 May 1999 09:40:34 -0700 (PDT) Message-Id: <199905251640.JAA11895@implode.root.com> To: korvus Cc: freebsd-questions@FreeBSD.ORG Subject: Re: mbuf cluster errors on freebsd 3.1 In-reply-to: Your message of "Tue, 25 May 1999 12:11:42 EDT." From: David Greenman Reply-To: dg@root.com Date: Tue, 25 May 1999 09:40:34 -0700 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >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