From owner-freebsd-current@FreeBSD.ORG Wed Aug 22 13:59:34 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 769A316A420 for ; Wed, 22 Aug 2007 13:59:34 +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 60D9813C4DA for ; Wed, 22 Aug 2007 13:59:34 +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 C951F1A3C1A; Wed, 22 Aug 2007 06:57:36 -0700 (PDT) Received: by rot26.obsecurity.org (Postfix, from userid 1001) id 462E9C3ED; Wed, 22 Aug 2007 09:59:33 -0400 (EDT) Date: Wed, 22 Aug 2007 09:59:33 -0400 From: Kris Kennaway To: Stefan Lambrev Message-ID: <20070822135932.GA9190@rot26.obsecurity.org> References: <46C9B99C.1060403@moneybookers.com> <46CA951D.1060303@moneybookers.com> <20070821163729.GA91485@rot26.obsecurity.org> <46CBDE05.2030007@moneybookers.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <46CBDE05.2030007@moneybookers.com> User-Agent: Mutt/1.4.2.3i Cc: Eric Kjeldergaard , freebsd-current@freebsd.org, Kris Kennaway 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: Wed, 22 Aug 2007 13:59:34 -0000 On Wed, Aug 22, 2007 at 09:56:05AM +0300, Stefan Lambrev wrote: > >No, you should use -o swap. Where did it tell you to change the > >sysctls? > > > >Kris > > > Nowhere just guessing. OK, often not a good idea :) > I just needed one big file in the memory to ignore the slowness of hard > drives, to run few small benchmarks :) > I did this using tmpfs, but it act just like "-t swap" :) Yes, when you don't have enough RAM to do the thing you want. > Btw the confusion comes from the manual of mdconfig where it states: > > swap Swap space is used to back this memory disk. > > and I thought that type swap is always stored on the hard drives. > > and md(4) explains it a lot better: > > swap Backing store is allocated from buffer memory. Pages get pushed > out to the swap when the system is under memory pressure, > other- > wise they stay in the operating memory. Using swap backing is > generally preferable over malloc backing. OK, that could certainly be improved. Can you please submit a PR? Kris