From owner-freebsd-current@FreeBSD.ORG Tue Aug 21 16:37:31 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7391816A419 for ; Tue, 21 Aug 2007 16:37:31 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id 6055A13C458 for ; Tue, 21 Aug 2007 16:37:31 +0000 (UTC) (envelope-from kris@obsecurity.org) Received: from rot26.obsecurity.org (elvis.mu.org [192.203.228.196]) by elvis.mu.org (Postfix) with ESMTP id 9186E1A4D86; Tue, 21 Aug 2007 09:35:37 -0700 (PDT) Received: by rot26.obsecurity.org (Postfix, from userid 1001) id 6EF76BB78; Tue, 21 Aug 2007 12:37:30 -0400 (EDT) Date: Tue, 21 Aug 2007 12:37:30 -0400 From: Kris Kennaway To: Stefan Lambrev Message-ID: <20070821163729.GA91485@rot26.obsecurity.org> References: <46C9B99C.1060403@moneybookers.com> <46CA951D.1060303@moneybookers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46CA951D.1060303@moneybookers.com> User-Agent: Mutt/1.4.2.3i Cc: Eric Kjeldergaard , freebsd-current@freebsd.org Subject: Re: kernel panic with memory disks X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 21 Aug 2007 16:37:31 -0000 On Tue, Aug 21, 2007 at 10:32:45AM +0300, Stefan Lambrev wrote: > Hello, > > Eric Kjeldergaard wrote: > >On 20/08/07, Stefan Lambrev wrote: > > > >>Hello, > >> > >>I do not know if this is know behavior, and I know that 6.2 panic if the > >>memory disk got full, > >>but on 7-current the panic is before the disk got full. > >> > >>Here is what I do: > >> > >>mdconfig -a -t malloc -s 800m > >>newfs /dev/md0 > >>mount /dev/md0 /mnt > >>cp 600mb.file /mnt > >> > > > > -t type > > Select the type of the memory disk. > > > > 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. > >-- mdconfig(8) > > > > > I really should read manuals more carefully :) Thanks for the information. > > Just one more question - to prevent panic I should use "-o reserve" and > have to increase: > vfs.maxmallocbufspace > vfs.bufmallocspace No, you should use -o swap. Where did it tell you to change the sysctls? Kris