From owner-freebsd-net Thu Nov 21 13:36:35 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 B7A4237B404; Thu, 21 Nov 2002 13:36:33 -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 0219343E42; Thu, 21 Nov 2002 13:36:33 -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 gALLaWm9006043; Thu, 21 Nov 2002 13:36:32 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.6/8.12.5/Submit) id gALLaVEU006042; Thu, 21 Nov 2002 13:36:31 -0800 (PST) (envelope-from dschultz@uclink.Berkeley.EDU) Date: Thu, 21 Nov 2002 13:36:31 -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: <20021121213631.GA5987@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> <20021120195919.GA679@HAL9000.homeunix.com> <11fd01c290eb$f48311e0$862a40c1@PHE> <20021121022524.GA2300@HAL9000.homeunix.com> <126801c2912c$5be3cec0$862a40c1@PHE> <20021121205515.GA5716@HAL9000.homeunix.com> <3DDD4A15.4030209@he.iki.fi> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3DDD4A15.4030209@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 : > >Most kernel memory is not pageable, so swap probably won't help > >you. Your `kmem_map too small' error message should report to you > >the size of the attempted allocation and the size of kmem_map. > >If the map really isn't full, I'm not sure why you would get this > >panic, unless you're somehow running into excessive fragmentation. > > > > > > Nov 3 21:44:52 giga /kernel: panic: kmem_malloc(71000064): kmem_map too > small: 183193600 total allocated > Nov 3 22:10:30 giga /kernel: panic: kmem_malloc(71000064): kmem_map too > small: 175476736 total allocated > > This is what I'm seeing. Most of the kernel allocated memory was free at > the time the panic occurred, but > fragmented though. 71 MB of contiguous wired memory is a huge amount to expect in the kernel at runtime. What exactly are you trying to do? Can you post a backtrace? I'm not a networking guru, so I probably won't be able to tell you what you might not be able to do differently, although you might have better luck if you tried to grab the memory earlier on, when KVA is relatively unfragmented. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message