From owner-freebsd-questions Tue Jan 25 5:42:41 2000 Delivered-To: freebsd-questions@freebsd.org Received: from guard.polynet.lviv.ua (Guard.PolyNet.Lviv.UA [209.58.62.194]) by hub.freebsd.org (Postfix) with SMTP id DB77E14D05 for ; Tue, 25 Jan 2000 05:42:16 -0800 (PST) (envelope-from ts@postoffice.polynet.lviv.ua) Received: (qmail 59530 invoked from network); 25 Jan 2000 13:42:05 -0000 Received: from unknown (HELO postoffice.polynet.lviv.ua) (unknown) by unknown with SMTP; 25 Jan 2000 13:42:05 -0000 Received: (qmail 52891 invoked by uid 1000); 25 Jan 2000 13:42:04 -0000 Date: 25 Jan 2000 15:42:04 +0200 Date: Tue, 25 Jan 2000 15:42:04 +0200 (EET) From: Yaroslav Terletsky X-Sender: ts@NetSurfer.lp.lviv.ua To: Alfred Perlstein Cc: FreeBSD Questions Mailing List , altq@csl.sony.co.jp Subject: Re: Panic with 3.4: rtfree In-Reply-To: <20000124125902.E26520@fw.wintelcom.net> 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 On Mon, 24 Jan 2000, Alfred Perlstein wrote: > * Yaroslav Terletsky [000124 09:44] wrote: > > > > Dear Coders, > > > > One of my routers being upgraded to 3.4-STABLE (as of Dec 30 1999) > > crashes *very* often with panic("rtfree"); > > (With old 2.2.2 branch it works ok.) > > > > It is cool in testing evnironment but after few minutes in real cond. > > (I think due to higher traffic and RT manipulations) it crashes. > > My RT is about 70 entries in size, maxusers 32, NMBCLUSTERS=2048. > > I'm also using ALTQ 2.0 (it does not patch sys/net/route.c). > > > > Any suggestions why it is and how to fix this problem? > > Why do you have such a low maxusers/NMBCLUSTERS setting? > > I can understand the maxusers, but lowering NMBCLUSTERS on a router > doesn't seem like the right thing to do. > > -Alfred Look at /usr/src/sys/conf/param.c, the formula for NMBCLUSTERS is: /* maximum # of mbuf clusters */ #ifndef NMBCLUSTERS #define NMBCLUSTERS (512 + MAXUSERS * 16) #endif So for 32 users the number is just 1024 and I have increased this to 2048 as ALTQ's README suggested. Yaroslav To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message