From owner-freebsd-questions Sun Feb 9 16: 3: 7 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 54A5237B401 for ; Sun, 9 Feb 2003 16:03:06 -0800 (PST) Received: from mailhost.det2.ameritech.net (mailhost1-sfldmi.sfldmi.ameritech.net [206.141.193.105]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8177E43F93 for ; Sun, 9 Feb 2003 16:03:05 -0800 (PST) (envelope-from dbailey27@ameritech.net) Received: from ameritech.net ([67.38.16.140]) by mailhost.det2.ameritech.net (InterMail vM.4.01.02.17 201-229-119) with ESMTP id <20030210000248.NHAG26543.mailhost.det2.ameritech.net@ameritech.net>; Sun, 9 Feb 2003 19:02:48 -0500 Message-ID: <3E46EC14.9090702@ameritech.net> Date: Sun, 09 Feb 2003 19:02:28 -0500 From: northern snowfall User-Agent: Mozilla/5.0 (X11; U; SunOS sun4u; en-US; rv:0.9.4.1) Gecko/20020518 Netscape6/6.2.3 X-Accept-Language: en-us MIME-Version: 1.0 To: Alexander Cc: freebsd-questions@FreeBSD.ORG Subject: Re: I'm running out of swapspace References: <20030210004609.V41846-100000@amour.ath.cx> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit 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 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