Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 6 Nov 1997 11:02:36 -0700 (MST)
From:      Marc Slemko <marcs@znep.com>
To:        SrA Scott Gregory <gregory@afpubs.hq.af.mil>
Cc:        freebsd-questions@freebsd.org
Subject:   RE: Need Help Determining Why My System Keeps Crashing
Message-ID:  <Pine.BSF.3.95.971106105943.27975A-100000@alive.znep.com>
In-Reply-To: <Pine.BSF.3.96.971106123839.19924A-100000@afpubs.hq.af.mil>

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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.3.95.971106105943.27975A-100000>