From owner-freebsd-questions Thu Nov 6 10:04:23 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.7/8.8.7) id KAA01966 for questions-outgoing; Thu, 6 Nov 1997 10:04:23 -0800 (PST) (envelope-from owner-freebsd-questions) Received: from scanner.worldgate.com (scanner.worldgate.com [198.161.84.3]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id KAA01959 for ; Thu, 6 Nov 1997 10:04:21 -0800 (PST) (envelope-from marcs@znep.com) Received: from znep.com (uucp@localhost) by scanner.worldgate.com (8.8.7/8.8.7) with UUCP id LAA18931; Thu, 6 Nov 1997 11:04:11 -0700 (MST) Received: from localhost (marcs@localhost) by alive.znep.com (8.7.5/8.7.3) with SMTP id LAA28052; Thu, 6 Nov 1997 11:02:37 -0700 (MST) Date: Thu, 6 Nov 1997 11:02:36 -0700 (MST) From: Marc Slemko To: SrA Scott Gregory cc: freebsd-questions@freebsd.org Subject: RE: Need Help Determining Why My System Keeps Crashing In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk On Thu, 6 Nov 1997, SrA Scott Gregory wrote: > > [Gregory, Scott, SrA, SAF/AADXT] > > I haven't kept a log, but it was about every two weeks. Does anything use > mbufs besides the network? > > The docs mention that the most important function of the maxusers is to set > the maximum number of processes that can run. I set it to 30 since I didn't > see this system running more than 500 simultaneous processes. What other > system tables (that I would use heavily as a web server) does this effect and > what would you suggest as a fix? That is the most important one, but it impacts a number of things. grep the source for "maxusers" and "MAXUSERS". > > Here is the output of netstat -m: > > netstat -m > > 2691 mbufs in use: > 2279 mbufs allocated to data > 405 mbufs allocated to packet headers > 6 mbufs allocated to protocol control blocks > 1 mbufs allocated to socket names and addresses > 2219/2302 mbuf clusters in use ^^^^ you have less than 100 mbuf clusters left. You need more. > 4940 Kbytes allocated to network (96% in use) > 0 requests for memory denied > 0 requests for memory delayed > 0 calls to protocol drain routines > > I ran netstat -m a few times and got utilization anywhere from 64% to 97%. > Obviously I'm running VERY low in resources. What would you do? Set > maxusers high? And/or set NMBCLUSTERS? (where do you set the NMBCLUSTERS, > kernel option?) In the kernel config file. See the LINT file for an example. > > Was the error I pulled from the console the result of running out of mbufs, Yes. > or do I have something else wrong? Is it safe to assume that when I run out > of mbufs the system will crash? Often.