Adding Swap Files Under FreeBSD
Adding Swap Files [FreeBSD]
-
Edit your kernel file and add the following line:
pseudo-device vn
-
Compile the kernel and reboot.
-
Create the swap file by typing:
dd if=/dev/zero of=
bs= m count=10 -
Create /etc/vntab and add the following to it:
/dev/vn0c
swap -
To add the swap file type:
vnconfig -ae
-
Create /usr/local/etc/rc.d/vnconfig.sh so the swap file would be added automatically at bootup and add the following:
/usr/sbin/vnconfig -ae