Date: Wed, 9 Sep 2009 11:57:07 +0100 From: "Daniel Bye" <danielby@slightlystrange.org> To: "'freebsd-questions@freebsd.org'" <freebsd-questions@freebsd.org> Subject: Re: Using mdconfig for swap space Message-ID: <20090909105707.GA27941@torus.slightlystrange.org> In-Reply-To: <20090908235259.GB19173@gizmo.acns.msu.edu> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> <20090908235259.GB19173@gizmo.acns.msu.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On Tue, Sep 08, 2009 at 07:52:59PM -0400, Jerry McAllister wrote:
> On Tue, Sep 08, 2009 at 04:51:20PM -0500, Peter Steele 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:
>
> Unless I am missing something basic here, it seems like a bad idea to
> me - to carve out and use up some memory to use as extra storage for
> processes that need more memory that you have taken away to give to swap.
> That is self defeating.
>
> In addition, one use of swap is to write dumps to if there is a crash.
> If you put it in memory, it is gone when you reboot.
He's talking about using a swap file, rather than a dedicated partition on
the disk, not in RAM! Although it is slightly slower, as Chuck has already
pointed out, it might, in certain circumstances, be a somewhat more
convenient solution than repartitioning/reinstalling the whole system.
And as RW has said, the facility already exists and can be enabled with a
couple of knobs in /etc/rc.conf.
Dan
--
Daniel Bye
_
ASCII ribbon campaign ( )
- against HTML, vCards and X
- proprietary attachments in e-mail / \
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.13 (FreeBSD)
iEYEARECAAYFAkqnigMACgkQixf5fBYiFmonGwCfTsw7EGwXBs8rocUgC4hW5dWk
OxwAoIVE0vCsYLGDaNmaxXVS+/QmykDU
=zEZw
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090909105707.GA27941>
