Date: Sun, 09 Feb 2003 19:02:28 -0500 From: northern snowfall <dbailey27@ameritech.net> To: Alexander <amour@amour.ath.cx> Cc: freebsd-questions@FreeBSD.ORG Subject: Re: I'm running out of swapspace Message-ID: <3E46EC14.9090702@ameritech.net> References: <20030210004609.V41846-100000@amour.ath.cx>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3E46EC14.9090702>