From owner-freebsd-questions@FreeBSD.ORG Wed Jun 4 00:24:25 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 20D79106567E for ; Wed, 4 Jun 2008 00:24:25 +0000 (UTC) (envelope-from fbsd06+WS=43ca7fce@mlists.homeunix.com) Received: from turtle-out.mxes.net (turtle-out.mxes.net [216.86.168.191]) by mx1.freebsd.org (Postfix) with ESMTP id E32348FC2D for ; Wed, 4 Jun 2008 00:24:24 +0000 (UTC) (envelope-from fbsd06+WS=43ca7fce@mlists.homeunix.com) Received: from mxout-03.mxes.net (mxout-03.mxes.net [216.86.168.178]) by turtle-in.mxes.net (Postfix) with ESMTP id 583D2164701 for ; Tue, 3 Jun 2008 20:07:46 -0400 (EDT) Received: from gumby.homeunix.com. (unknown [87.81.140.128]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.mxes.net (Postfix) with ESMTP id 51FF123E3E9 for ; Tue, 3 Jun 2008 20:07:41 -0400 (EDT) Date: Wed, 4 Jun 2008 01:07:31 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20080604010731.3de6d359@gumby.homeunix.com.> In-Reply-To: <92E18C61-A552-4B36-AF81-6790E7A340D3@vindaloo.com> References: <92E18C61-A552-4B36-AF81-6790E7A340D3@vindaloo.com> X-Mailer: Claws Mail 3.4.0 (GTK+ 2.12.9; i386-portbld-freebsd7.0) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: md, mount_mfs and swap X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jun 2008 00:24:25 -0000 On Tue, 3 Jun 2008 17:43:27 -0400 Christopher Sean Hilton wrote: > I've recently started playing with NetBSD and notice that by default > it mounts /tmp as an MFS backed by swap. A quick read of the md, > mount_mfs man page would lead me to believe that > > md /tmp rw,async,-s1024m 0 0 > > will move my /tmp dir to a swap backed 1G space. This would make me > feel much more comfortable about my continuing adherence to the > practice of giving my machine twice as much swap space as they have > memory. > > Are there any downsides to this? > Not in my experience. You can do it simply by adding the following to rc.conf tmpmfs="YES" tmpsize="1024m"