From owner-freebsd-bugs@FreeBSD.ORG Sun Jun 15 10:00:28 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 51CAC37B401 for ; Sun, 15 Jun 2003 10:00:28 -0700 (PDT) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id E987743FCB for ; Sun, 15 Jun 2003 10:00:27 -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 h5FH0RUp085836 for ; Sun, 15 Jun 2003 10:00:27 -0700 (PDT) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.9/8.12.9/Submit) id h5FH0R0R085835; Sun, 15 Jun 2003 10:00:27 -0700 (PDT) Date: Sun, 15 Jun 2003 10:00:27 -0700 (PDT) Message-Id: <200306151700.h5FH0R0R085835@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 17:00:28 -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:51:39 -0500 Ok, so speaking practically, how do I deal with this issue? I have a script that needs to be able to cache directories in ram... As I said, I was able to do this as recently as April 30. Is there some sort of tunable parameter I can use to increase kernel's malloc bucket limit? (kernel option or ..? ) Or, at absolute least, some way to determine what it is, so that I can force the script not to use more than that? and how much must be free leftover to allow the system to run 'normally' ? Shouldn't mdconfig not allow me to reserve more space than it can provide me with? I'm not '-o force'ing the mdconfig. It seems to me that if the request is for too much, the mdconfig should fail. and still if it is too much, shouldn't it deny the allocation rather than panic? It seems to me like the amount that the system can provide changes between the time I mdconfig the disk, and the time I try to use it. Thanks for your assistance, Jay On Sunday, June 15, 2003, at 11:35 AM, Poul-Henning Kamp wrote: > In message , Jason > Kuri writes > : >> 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. > > Notice I said "Kernel mapped memory". > > That's usually on the order of 1/3 or your RAM. > > -- > 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. >