From owner-freebsd-questions Sun Feb 9 16:33: 4 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7B57E37B401 for ; Sun, 9 Feb 2003 16:33:03 -0800 (PST) Received: from amour.ath.cx (p213.54.14.236.tisdip.tiscali.de [213.54.14.236]) by mx1.FreeBSD.org (Postfix) with ESMTP id 245C343F3F for ; Sun, 9 Feb 2003 16:33:02 -0800 (PST) (envelope-from amour@amour.ath.cx) Received: from amour.ath.cx (amour@localhost.ath.cx [127.0.0.1]) by amour.ath.cx (8.12.6/8.12.6) with ESMTP id h1A0Ww1E043264; Mon, 10 Feb 2003 01:32:59 +0100 (CET) (envelope-from amour@amour.ath.cx) Received: from localhost (amour@localhost) by amour.ath.cx (8.12.6/8.12.6/Submit) with ESMTP id h1A0Wu6L043261; Mon, 10 Feb 2003 01:32:57 +0100 (CET) Date: Mon, 10 Feb 2003 01:32:56 +0100 (CET) From: Alexander To: northern snowfall Cc: freebsd-questions@FreeBSD.ORG Subject: Re: I'm running out of swapspace In-Reply-To: <3E46EC14.9090702@ameritech.net> Message-ID: <20030210013243.K43240-100000@amour.ath.cx> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Thank You ! On Sun, 9 Feb 2003, northern snowfall wrote: > One way to do it is to create a memory file system linked to a file on-disk. > In FreeBSD 5.0-RELEASE, to create a 128MB additional swap space, I've tried: > dd if=/dev/zero of=/swap0 count=128 bs=1m > chmod 600 /swap0 > mdconfig -a -t vnode -f /swap0 -u 3 > swapon /dev/md3 > This will link the 128 megabyte file into swap space recognized by the > system. > Execute "swapinfo" to confirm: > sandstone.north_ % swapinfo > Device 1K-blocks Used Avail Capacity Type > /dev/ad0s1b 524288 10136 514152 2% Interleaved > /dev/md3 131072 1876 129196 1% Interleaved > Total 655360 12012 643348 2% > sandstone.north_ % > Don > > > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message