From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 15 09:40:11 2003 Return-Path: Delivered-To: freebsd-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC3F537B404 for ; Sun, 15 Jun 2003 09:40:10 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 75F1D43FA3 for ; Sun, 15 Jun 2003 09:40:10 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.9/8.12.9) with ESMTP id h5FGeAUp085063 for ; Sun, 15 Jun 2003 09:40:10 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h5FGeA8w085062; Sun, 15 Jun 2003 09:40:10 -0700 (PDT) Date: Sun, 15 Jun 2003 09:40:10 -0700 (PDT) Message-Id: <200306151640.h5FGeA8w085062@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org From: Jason Kuri 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 Reply-To: Jason Kuri List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Jun 2003 16:40:11 -0000 The following reply was made to PR kern/53350; it has been noted by GNATS. From: Jason Kuri To: "Poul-Henning Kamp" 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 11:32:41 -0500 Hi there, That makes sense... but hold on a sec. I have 256M of ram, and try to use 110M for malloc-disk, and my machine panics? That seems awfully broken to me. This is single user mode, nothing else is running. Why does 110M of MD-disk cause a 256M machine to run out of memory? I should have 140M or so left for the system to play with... If nothing else, shouldn't it at least fail and not panic the system? This worked fine 1 month ago. (5.0-Current from APR-30) Jay On Sunday, June 15, 2003, at 11:24 AM, Poul-Henning Kamp wrote: >>> 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 > > 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. > > -- > Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 > phk@FreeBSD.ORG | TCP/IP since RFC 956 > FreeBSD committer | BSD since 4.3-tahoe > Never attribute to malice what can adequately be explained by > incompetence. >