From owner-freebsd-questions@FreeBSD.ORG Wed Sep 9 00:03:33 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 DA7701065692 for ; Wed, 9 Sep 2009 00:03:33 +0000 (UTC) (envelope-from rwmaillists@googlemail.com) Received: from mail-bw0-f206.google.com (mail-bw0-f206.google.com [209.85.218.206]) by mx1.freebsd.org (Postfix) with ESMTP id 64B768FC16 for ; Wed, 9 Sep 2009 00:03:33 +0000 (UTC) Received: by bwz2 with SMTP id 2so1338677bwz.43 for ; Tue, 08 Sep 2009 17:03:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:subject :message-id:in-reply-to:references:x-mailer:mime-version :content-type:content-transfer-encoding; bh=Ty4rZFEr3adjh2dyKEDsehUakOBfDsj+7fctXwUT/c8=; b=u9cdhZboqf0JsDty+nEavLmpst0BDXsMTiYK3/0GnepmB0V3kObgA9gEvBDR2KxB/M vq/N+ANJMR5WX4l6V9uBPQHpmcjRsRibKgO5/ZMYCvIOmyuJYt+47hdxDouMgDlyri7N azUVrC7kmP365D9gte8hOhnB+dCF+7Yi40K1w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=date:from:to:subject:message-id:in-reply-to:references:x-mailer :mime-version:content-type:content-transfer-encoding; b=Vd2Z37GVfQ0OpI45bqw77vV4bMkJfN5YcOE5GGzMe643iaFX0jMPRGf1FeQjv6cc6l wlG6R9I9JfbV+tFgh8f14SBpt/ryygr8KFHfRc9M7mrvQTEmirq33jQaMfWDz94usKdW xbG7jBYgMvgGSxr6DbKVh6w2id1/CQqVbLEMo= Received: by 10.204.136.220 with SMTP id s28mr1379016bkt.207.1252454612137; Tue, 08 Sep 2009 17:03:32 -0700 (PDT) Received: from gumby.homeunix.com (bb-87-81-140-128.ukonline.co.uk [87.81.140.128]) by mx.google.com with ESMTPS id 1sm584543fks.35.2009.09.08.17.03.29 (version=SSLv3 cipher=RC4-MD5); Tue, 08 Sep 2009 17:03:31 -0700 (PDT) Date: Wed, 9 Sep 2009 01:03:23 +0100 From: RW To: freebsd-questions@freebsd.org Message-ID: <20090909010323.29631089@gumby.homeunix.com> In-Reply-To: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> References: <7B9397B189EB6E46A5EE7B4C8A4BB7CB3037EBB7@MBX03.exg5.exghost.com> X-Mailer: Claws Mail 3.7.2 (GTK+ 2.16.5; i386-portbld-freebsd7.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: 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: Wed, 09 Sep 2009 00:03:33 -0000 On Tue, 8 Sep 2009 16:51:20 -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: > > 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.