From owner-freebsd-net Wed Nov 20 11:59:33 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1E9E237B417; Wed, 20 Nov 2002 11:59:31 -0800 (PST) Received: from HAL9000.homeunix.com (12-232-220-15.client.attbi.com [12.232.220.15]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7B92D43E3B; Wed, 20 Nov 2002 11:59:30 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.6/8.12.5) with ESMTP id gAKJxKm9001196; Wed, 20 Nov 2002 11:59:20 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id gAKJxJ3f001195; Wed, 20 Nov 2002 11:59:19 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Wed, 20 Nov 2002 11:59:19 -0800 From: David Schultz To: Petri Helenius Cc: freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: panic: kmem_map too small Message-ID: <20021120195919.GA679@HAL9000.homeunix.com> Mail-Followup-To: Petri Helenius , freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG References: <0e3b01c28fc4$ff9a4ee0$862a40c1@PHE> <20021119152114.GA2228@HAL9000.homeunix.com> <3DDBDE2B.6050407@he.iki.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DDBDE2B.6050407@he.iki.fi> Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thus spake Petri Helenius : > >>I seem to get kmem_map too small panics when using large buffers with > >>bpf. Is there a tunable I should be increasing? > >> > >> > > > >Yes, increase KVA_PAGES in your kernel config. > > > > > I put in KVA_PAGES=1024 > with following results on next boot: > > Fatal trap 12: page fault while in kernel mode 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). To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message