From owner-freebsd-net Wed Nov 20 11:10:42 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 DD77E37B41B; Wed, 20 Nov 2002 11:10:39 -0800 (PST) Received: from silver.he.iki.fi (silver.he.iki.fi [193.64.42.241]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9B08E43E42; Wed, 20 Nov 2002 11:10:38 -0800 (PST) (envelope-from pete@he.iki.fi) Received: from he.iki.fi (localhost.he.iki.fi [127.0.0.1]) by silver.he.iki.fi (8.12.6/8.11.4) with ESMTP id gAKJAZuO041995; Wed, 20 Nov 2002 21:10:36 +0200 (EET) (envelope-from pete@he.iki.fi) Message-ID: <3DDBDE2B.6050407@he.iki.fi> Date: Wed, 20 Nov 2002 21:10:35 +0200 From: Petri Helenius User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1) Gecko/20021117 X-Accept-Language: English [en],Finnish [fi] MIME-Version: 1.0 To: David Schultz Cc: freebsd-questions@FreeBSD.ORG, freebsd-net@FreeBSD.ORG Subject: Re: panic: kmem_map too small References: <0e3b01c28fc4$ff9a4ee0$862a40c1@PHE> <20021119152114.GA2228@HAL9000.homeunix.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 David Schultz wrote: >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 cpuid = 1; lapic.id = 06000000 fault virtual address = 0x1 fault code = supervisor write, page not present instruction pointer = 0x8:0xc01efc88 stack pointer = 0x10:0xdf0ccbcc frame pointer = 0x10:0xdf0ccbf0 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 15 (swi1: net) trap number lastlog: Permission denied Removing the option and recompiling kernel from the same sources makes it work fine. Pete To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message