From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 15 09:57:46 2003 Return-Path: Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1465E37B401 for ; Sun, 15 Jun 2003 09:57:46 -0700 (PDT) Received: from HAL9000.homeunix.com (ip114.bella-vista.sfo.interquest.net [66.199.86.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6A46443F93 for ; Sun, 15 Jun 2003 09:57:45 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: from HAL9000.homeunix.com (localhost [127.0.0.1]) by HAL9000.homeunix.com (8.12.9/8.12.9) with ESMTP id h5FGviq7002005; Sun, 15 Jun 2003 09:57:44 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Received: (from das@localhost) by HAL9000.homeunix.com (8.12.9/8.12.9/Submit) id h5FGviU0002004; Sun, 15 Jun 2003 09:57:44 -0700 (PDT) (envelope-from das@FreeBSD.ORG) Date: Sun, 15 Jun 2003 09:57:43 -0700 From: David Schultz To: Poul-Henning Kamp Message-ID: <20030615165743.GA1835@HAL9000.homeunix.com> Mail-Followup-To: Poul-Henning Kamp , freebsd-bugs@freebsd.org References: <200306151630.h5FGUFGV084676@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200306151630.h5FGUFGV084676@freefall.freebsd.org> cc: freebsd-bugs@FreeBSD.ORG Subject: Re: kern/53350: fill up a malloc md-disk on 5.1-R causes panic X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jun 2003 16:57:46 -0000 On Sun, Jun 15, 2003, Poul-Henning Kamp wrote: > The following reply was made to PR kern/53350; it has been noted by GNATS. > > From: "Poul-Henning Kamp" > To: Jay Kuri > Cc: FreeBSD-gnats-submit@freebsd.org > Subject: Re: kern/53350: fill up a malloc md-disk on 5.1-R causes panic > Date: Sun, 15 Jun 2003 18:24:17 +0200 > > >>Description: > > If you have a 5.1-R system with, say, 256M of ram > >and you mdconfig one or several malloc md-devices totalling around 100M, > >if you attempt to use them to capacity, the machine will panic. The > >message given is: > > > > panic: kmem_malloc(4096): kmem_map too small: 108347392 total allocated Dedicating more than a third of your physical memory to malloc-backed storage is kind of insane anyway, but you can do it if you specify a VM_KMEM_SIZE_SCALE of 1 or 2 in your kernel config. > It's really very simple: You ran out of kernel mapped memory ("KVM"). > > Remedy: Don't Do That. > > See also: malloc(9), md(4) > > This PR can be closed. The kmem_map limitations are a FAQ and should probably be documented as such.