md, mount_mfs and swap
RW
fbsd06 at mlists.homeunix.com
Wed Jun 4 00:24:25 UTC 2008
On Tue, 3 Jun 2008 17:43:27 -0400
Christopher Sean Hilton <chris at 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"
More information about the freebsd-questions
mailing list