From owner-freebsd-questions@freebsd.org Thu Sep 10 03:10:47 2015 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id EF0F8A01923 for ; Thu, 10 Sep 2015 03:10:47 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) Received: from alogt.com (alogt.com [69.36.191.58]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id CE61519E6 for ; Thu, 10 Sep 2015 03:10:47 +0000 (UTC) (envelope-from erichsfreebsdlist@alogt.com) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=alogt.com; s=default; h=Content-Transfer-Encoding:Content-Type:MIME-Version:Message-ID:Subject:To:From:Date; bh=DdORLhKKc19VST4wnvD7E+9/iBjAE7FQLlioSUkui8U=; b=exsbIvX8xX14R1P2AUAPjaJPZWxLYZnsLK5iGG5OJuehsoiy7W/BqDT2uEzKjWBeAJkuUtdpWBJ5lthbeNDEuEAptGfNB2U5AwpZvqWW2yljfd0P6Ggq3o4yRCu5dd23Y+gZ2Mlva+hmPiix49F7FbiWunsylA2fmiwTI27qszc=; Received: from [114.121.157.34] (port=40309 helo=X220.alogt.com) by sl-508-2.slc.westdc.net with esmtpsa (TLSv1.2:AES128-GCM-SHA256:128) (Exim 4.85) (envelope-from ) id 1ZZsG0-003KaD-Av for freebsd-questions@freebsd.org; Wed, 09 Sep 2015 21:10:40 -0600 Date: Thu, 10 Sep 2015 11:10:34 +0800 From: Erich Dollansky To: freebsd-questions@freebsd.org Subject: mdconfig creating file based memory disk Message-ID: <20150910111034.20b97c41@X220.alogt.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - sl-508-2.slc.westdc.net X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - alogt.com X-Get-Message-Sender-Via: sl-508-2.slc.westdc.net: authenticated_id: erichsfreebsdlist@alogt.com X-Source: X-Source-Args: X-Source-Dir: X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 10 Sep 2015 03:10:48 -0000 Hi, I just came across a simple question. What will happen when I create two memory disks using the same file? Example: mdconfig -f /usr/home/swap/swapfile -u 0 mdconfig -f /usr/home/swap/swapfile -u 1 and then I do a swapon /dev/md0 swapon /dev/md1 It gives me double the size of 'swapfile' as swap space. It is obvious to me that this must fail. Shouldn't there be a note in the documentation? Erich