Date: Thu, 21 Nov 2002 13:36:31 -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: <20021121213631.GA5987@HAL9000.homeunix.com> In-Reply-To: <3DDD4A15.4030209@he.iki.fi> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
Thus spake Petri Helenius <pete@he.iki.fi>: > >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-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021121213631.GA5987>