From owner-freebsd-questions@FreeBSD.ORG Tue Sep 8 22:51:29 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id D6C221065672 for ; Tue, 8 Sep 2009 22:51:29 +0000 (UTC) (envelope-from psteele@maxiscale.com) Received: from server505.appriver.com (server505e.appriver.com [98.129.35.9]) by mx1.freebsd.org (Postfix) with ESMTP id A0B598FC13 for ; Tue, 8 Sep 2009 22:51:29 +0000 (UTC) X-Policy: GLOBAL - maxiscale.com X-Primary: psteele@maxiscale.com X-Note: This Email was scanned by AppRiver SecureTide X-ALLOW: psteele@maxiscale.com ALLOWED X-Virus-Scan: V- X-Note: Spam Tests Failed: X-Country-Path: UNITED STATES->UNITED STATES->UNITED STATES X-Note-Sending-IP: 98.129.23.15 X-Note-Reverse-DNS: ht02.exg5.exghost.com X-Note-WHTLIST: psteele@maxiscale.com X-Note: User Rule Hits: X-Note: Global Rule Hits: 111 112 113 114 118 119 130 214 X-Note: Mail Class: ALLOWEDSENDER X-Note: Headers Injected Received: from [98.129.23.15] (HELO ht02.exg5.exghost.com) by server505.appriver.com (CommuniGate Pro SMTP 5.2.14) with ESMTPS id 8969700 for freebsd-questions@freebsd.org; Tue, 08 Sep 2009 16:51:26 -0500 Received: from mbx03.exg5.exghost.com ([169.254.1.239]) by ht02.exg5.exghost.com ([98.129.23.15]) with mapi; Tue, 8 Sep 2009 16:51:26 -0500 From: Peter Steele To: "'freebsd-questions@freebsd.org'" Date: Tue, 8 Sep 2009 16:51:20 -0500 Thread-Topic: Using mdconfig for swap space Thread-Index: Acowzn6Wqp+6PpLAQv2DX0xbhI05pw== Message-ID: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Using mdconfig for swap space X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Sep 2009 22:51:30 -0000 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 par= tition?