From owner-freebsd-stable@FreeBSD.ORG Wed Dec 3 02:52:49 2008 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57ADC1065672 for ; Wed, 3 Dec 2008 02:52:49 +0000 (UTC) (envelope-from kris@FreeBSD.org) Received: from dhcp-172-29-11-40.kir.corp.google.com (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 2D1BC8FC08; Wed, 3 Dec 2008 02:52:49 +0000 (UTC) (envelope-from kris@FreeBSD.org) Message-ID: <4935F481.6060407@FreeBSD.org> Date: Tue, 02 Dec 2008 18:52:49 -0800 From: Kris Kennaway User-Agent: Thunderbird 2.0.0.18 (Macintosh/20081105) MIME-Version: 1.0 To: Mike Tancsa References: <200812021319.mB2DJGJx003807@lava.sentex.ca> <20081202133812.GY3045@deviant.kiev.zoral.com.ua> <200812021412.mB2ECsEp004018@lava.sentex.ca> <20081202142045.GA3045@deviant.kiev.zoral.com.ua> <200812021603.mB2G3eb9004481@lava.sentex.ca> In-Reply-To: <200812021603.mB2G3eb9004481@lava.sentex.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Kostik Belousov , freebsd-stable@freebsd.org Subject: Re: repeatable crash on RELENG7 X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Dec 2008 02:52:49 -0000 Mike Tancsa wrote: > At 09:20 AM 12/2/2008, Kostik Belousov wrote: >> On Tue, Dec 02, 2008 at 09:12:54AM -0500, Mike Tancsa wrote: >> > At 08:38 AM 12/2/2008, Kostik Belousov wrote: >> > >> >> > >> mdconfig -a -t malloc -s 1800M >> > >You cannot have ~ 2Gb of kernel memory allocated for md, at least >> not on >> > >i386. >> > >> > Thanks, how do I find out what the limit is on a machine ? Is it >> > vm.kvm_size ? >> >> It is much less, and highly depends on your load, since KVA is used >> for all >> kind of allocations made by kernel. I think either md(4) or >> mdconfig(8) have >> a warning about malloc backing for md. > > Thanks! A warning might be helpful to prevent such foot shooting :) malloc Storage for this type of memory disk is allocated with malloc(9). This limits the size to the malloc bucket limit in the kernel. If the -o reserve option is not set, creating and filling a large malloc-backed memory disk is a very easy way to panic a system. You almost never want to use malloc backing for a md, in favour of swap backing. Kris