Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 20 Nov 2002 18:25:24 -0800
From:      David Schultz <dschultz@uclink.Berkeley.EDU>
To:        Petri Helenius <pete@he.iki.fi>
Cc:        freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG
Subject:   Re: panic: kmem_map too small
Message-ID:  <20021121022524.GA2300@HAL9000.homeunix.com>
In-Reply-To: <11fd01c290eb$f48311e0$862a40c1@PHE>
References:  <0e3b01c28fc4$ff9a4ee0$862a40c1@PHE> <20021119152114.GA2228@HAL9000.homeunix.com> <3DDBDE2B.6050407@he.iki.fi> <20021120195919.GA679@HAL9000.homeunix.com> <11fd01c290eb$f48311e0$862a40c1@PHE>

next in thread | previous in thread | raw e-mail | index | archive | help
Thus spake Petri Helenius <pete@he.iki.fi>:
> > Read LINT (or NOTES) carefully.  You can't set KVA_PAGES to 1024,
> > because then your kernel would take up the entire 4 GB virtual
> > address space.  Since the kernel must fit into 4 GB alongside
> > every user process, that leaves you no room for programs.  Try a
> > more reasonable value like 512 (2 GB).
> >
> Am I correct assuming that the default is 256? I´m not coming near this
> utilization when the system panics.
> 
> With about 150M in use and KVA_PAGES undefined in config (default),
> both 4.7-STABLE and 5.0-CURRENT panic (1G installed memory).

Yes, the default is 256, IIRC.  That corresponds to 1 GB of KVA,
and you have only 1 GB of physical memory to back it.  I take it
this is a very busy machine.  Short of getting more memory, you
can decrease memory utilization by the network, e.g. by decreasing
TCP window sizes, or you can limit memory usage by the network so
you don't get panics.  I forget the details here, so perhaps
someone else can fill them in.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021121022524.GA2300>