From owner-freebsd-current@FreeBSD.ORG Wed Jun 30 01:36:24 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4115E16A4CE for ; Wed, 30 Jun 2004 01:36:24 +0000 (GMT) Received: from smtp13.wxs.nl (smtp13.wxs.nl [195.121.6.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0B1E343D39 for ; Wed, 30 Jun 2004 01:36:24 +0000 (GMT) (envelope-from ronald-freebsd7@klop.yi.org) Received: from ronald.echteman.nl (ip51cdc5d2.speed.planet.nl [81.205.197.210]) by smtp13.wxs.nlSMTP id <0I03006RHLQLNK@smtp13.wxs.nl> for current@freebsd.org; Wed, 30 Jun 2004 03:35:10 +0200 (CEST) Received: (qmail 10601 invoked from network); Wed, 30 Jun 2004 01:35:08 +0000 Received: from unknown (HELO laptop.thuis.klop.ws) (192.168.1.4) by ronald.echteman.nl with SMTP; Wed, 30 Jun 2004 01:35:08 +0000 Received: (qmail 3394 invoked from network); Wed, 30 Jun 2004 01:35:08 +0000 Received: from unknown (HELO guido.thuis.klop.ws) (192.168.0.2) by 192.168.0.16 with SMTP; Wed, 30 Jun 2004 01:35:08 +0000 Received: (qmail 9524 invoked from network); Wed, 30 Jun 2004 01:35:07 +0000 Received: from localhost.thuis.klop.ws (HELO outgoing.local) (127.0.0.1) by localhost.thuis.klop.ws with SMTP; Wed, 30 Jun 2004 01:35:07 +0000 Date: Wed, 30 Jun 2004 03:35:07 +0200 From: Ronald Klop In-reply-to: <20040629182027.I54069@carver.gumbysoft.com> To: Doug White Message-id: MIME-version: 1.0 Content-type: text/plain; format=flowed; delsp=yes; charset=iso-8859-1 Content-transfer-encoding: 7BIT User-Agent: Opera M2/7.51 (FreeBSD, build 689) References: <20040629182027.I54069@carver.gumbysoft.com> cc: current@freebsd.org Subject: Re: panic: kmem_malloc; Should I increase some setting? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2004 01:36:24 -0000 On Tue, 29 Jun 2004 18:22:57 -0700 (PDT), Doug White wrote: > On Wed, 30 Jun 2004, Ronald Klop wrote: > >> I get the following panics while untarring a 30MB archive on an md >> device >> create with: >> tmpmfs="YES" >> tmpsize="256m" > > This is a malloc-backed md disk, which consumes memory directly from KVM. > If you do a large extraction it will consume all of KVM and cause your > panic. Unless you're running diskless and this is your only option > besides NFS, either don't use tmpmfs or avoid extracting large amounts of > data to /tmp. Thanks, I read this a few moments ago in the manual page. Isn't there a way to prevent or warn people when they create a malloc backed disk that is larger than KVM? I think a panic isn't very user friendly and it took me quite some time to figure this out. Ronald. -- Ronald Klop Amsterdam, The Netherlands