Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 9 Sep 2009 01:03:23 +0100
From:      RW <rwmaillists@googlemail.com>
To:        freebsd-questions@freebsd.org
Subject:   Re: Using mdconfig for swap space
Message-ID:  <20090909010323.29631089@gumby.homeunix.com>
In-Reply-To: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com>
References:  <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, 8 Sep 2009 16:51:20 -0500
Peter Steele <psteele@maxiscale.com> wrote:

> Are there any advantages to using mdconfig and creating a virtual
> disk for swap space as opposed to having a designated swap partition?
> For example, I could do something like this:
> 
> mdconfig -a -t swap -f /var/swap0 -s 4g
> swapon -a /dev/md0

FWIW that's already supported by adding  swapfile="/var/swap0" to
rc.conf

Your arguments are wrong BTW "-t swap" creates a device *backed* by
swap. And the size comes from the size of the supplied file - which you
typically create with dd.



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