Date: Tue, 8 Sep 2009 18:02:36 -0500 From: Adam Vande More <amvandemore@gmail.com> To: Peter Steele <psteele@maxiscale.com> Cc: "freebsd-questions@freebsd.org" <freebsd-questions@freebsd.org> Subject: Re: Using mdconfig for swap space Message-ID: <6201873e0909081602r4f8620a7jcab70703977d5ee9@mail.gmail.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, Sep 8, 2009 at 4:51 PM, 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 > > to add 4G to the system swap space backed by the file /var/swap0. How would > this compare to repartitioning my hard drive and adding a new 4GB swap > partition? > > In general, this is not a good idea. Your system will ideally not use swap space at all, and if it's using it a lot then it could sure use the extra ram consumed by the md drive instead of in swap. Most likely to slow your system down, not speed it up. If you're going to do anything, it's best to keep swap on a separate disk, or on the outer part of disk. -- Adam Vande More
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6201873e0909081602r4f8620a7jcab70703977d5ee9>