Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Jun 2008 01:07:31 +0100
From:      RW <fbsd06@mlists.homeunix.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: md, mount_mfs and swap
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>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 3 Jun 2008 17:43:27 -0400
Christopher Sean Hilton <chris@vindaloo.com> 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"




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20080604010731.3de6d359>