*BSD News Article 63865


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.anu.edu.au!news.gan.net.au!act.news.telstra.net!psgrain!news.uoregon.edu!hpg30a.csc.cuhk.hk!news.cuhk.edu.hk!news.hk.net!howland.reston.ans.net!nntp.coast.net!zombie.ncsc.mil!news.mathworks.com!newsfeed.internetmci.com!news.bctel.net!kryten.awinc.com!news
From: troy@awinc.com (Troy Ihmels)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Adding Swap?
Date: 20 Mar 1996 00:46:06 GMT
Organization: A&W Internet Inc.
Lines: 30
Message-ID: <4inkge$537@kryten.awinc.com>
References: <314DA16D.6D88@awinc.com> <314E9C08.167EB0E7@FreeBSD.org>
NNTP-Posting-Host: data.awinc.com
Mime-Version: 1.0
Content-Type: Text/Plain; charset=US-ASCII
X-Newsreader: WinVN 0.99.7

In article <314E9C08.167EB0E7@FreeBSD.org>, jkh@FreeBSD.org says...
>
>See the man pages for vnconfig(1) and swapon(1).
>-- 
>- Jordan Hubbard
>  President, FreeBSD Project

Ok, the man pages are not really complete - here is one for the FAQ:

-------------------------------------------
Subject: Re: Adding swap space
Date: Fri, 22 Dec 1995 10:25:34 +0100 (MET)
From: "Werner Griessl" 

Here is an example for 64Mb vn-swap (/usr/swap0)
1) create a vn-device
   cd /dev; sh ./MAKEDEV vn0
2) create a swapfile ( /usr/swap0 )
   dd if=/dev/zero of=/usr/swap0 bs=1024k count=64
3) put into /etc/rc.local the line
   vnconfig -ce /dev/vn0c /usr/swap0 swap
4) reboot the machine

You must also have a kernel with the line
pseudo-device   vn              #Vnode driver (turns a file into a device)
in your config-file.

Hope this helps
Werner