From owner-freebsd-stable Tue Feb 5 9:39:25 2002 Delivered-To: freebsd-stable@freebsd.org Received: from patrocles.silby.com (d179.as0.nwbl0.wi.voyager.net [169.207.130.181]) by hub.freebsd.org (Postfix) with ESMTP id DC19537B427; Tue, 5 Feb 2002 09:39:17 -0800 (PST) Received: from localhost (silby@localhost) by patrocles.silby.com (8.11.6/8.11.6) with ESMTP id g15BgnL02033; Tue, 5 Feb 2002 11:42:49 GMT (envelope-from silby@silby.com) X-Authentication-Warning: patrocles.silby.com: silby owned process doing -bs Date: Tue, 5 Feb 2002 11:42:49 +0000 (GMT) From: Mike Silbersack To: Daniel Lang Cc: freebsd-stable@freebsd.org, Subject: Re: autotuning kernel vars In-Reply-To: <20020205160947.GE58643@atrbg11.informatik.tu-muenchen.de> Message-ID: <20020205113839.F1617-100000@patrocles.silby.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Tue, 5 Feb 2002, Daniel Lang wrote: > Hi Mike, > > Mike Silbersack wrote on Tue, Feb 05, 2002 at 10:03:14AM +0000: > [..] > > Hmph, apologies. I was not aware of the comment in LINT that suggested > > setting nmbclusters / nbuf to 0. This comment predates the autoscaling > > code, and is wrong. I'll go remove it. > Ah, well, thanks. That clarifies it. > > So for I don't specify any values for NMBCLUSTERS and NBUF, > leaving maxusers at 512, and just watch how the machine > performs. > > I just thought about increasing NMBCLUSTERS because somewhere > (I don't remember) it was mentioned, that some new code > (larger default buffers somewhere in the ip stack?) could > make one run out of them. But I guess with maxusers=512 I'm > already on the safe side. > > Thanks, > Daniel To monitor mbuf and mbuf cluster usage (nmbclusters sets the number of mbuf clusters), simply run netstat -m. This will show you the current and peak usage of mbufs / clusters, as well the max value that was determined from maxusers. From that, you'll be able to tell if your usage is anywhere near the max, and will be able to determine whether or not to increase the value. With maxusers=512 you should have around 9000 mbuf clusters; this should be more than enough unless you're running a really busy web/ftp/mail server. Mike "Silby" Silbersack To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message