[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[altq 284] Re: Panic with 3.4: rtfree
On Mon, 24 Jan 2000, Alfred Perlstein wrote:
> * Yaroslav Terletsky <ts@polynet.lviv.ua> [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