Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 May 1996 13:28:33 +0000 ()
From:      Werner Griessl <croot@btp1da.phy.uni-bayreuth.de>
To:        questions@freebsd.org
Subject:   Re: Can we add a swap file?
Message-ID:  <199605151328.NAA09576@btp1da.phy.uni-bayreuth.de>

next in thread | raw e-mail | index | archive | help

Hi scanner,

You can use a vnode disk for swapping.

Here is an example for vn-swap (64Mb)

1. Put in your kernel configfile a line "pseudo-device   vn"
   and  recompile your kernel.
2. cd /dev; sh ./MAKEDEV vn0
3. dd if=/dev/zero of=/usr/swap0 bs=1024k count=64

4. vnconfig -ce /dev/vn0c /usr/swap0 swap

You can put step 4 into your /etc/rc.local to enable it on boottime.

Werner



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199605151328.NAA09576>