From owner-freebsd-questions Tue May 25 13: 4: 0 1999 Delivered-To: freebsd-questions@freebsd.org Received: from tasam.com (tasam.com [206.161.83.22]) by hub.freebsd.org (Postfix) with ESMTP id B307015802 for ; Tue, 25 May 1999 13:03:58 -0700 (PDT) (envelope-from korvus@tasam.com) Received: from localhost (korvus@localhost) by tasam.com (8.9.3/8.9.1) with SMTP id QAA10186; Tue, 25 May 1999 16:03:54 -0400 (EDT) Date: Tue, 25 May 1999 16:03:54 -0400 (EDT) From: korvus To: David Greenman Cc: freebsd-questions@FreeBSD.ORG Subject: Re: mbuf cluster errors on freebsd 3.1 In-Reply-To: <199905251640.JAA11895@implode.root.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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