diff --git a/en_US.ISO8859-1/books/handbook/config/chapter.sgml b/en_US.ISO8859-1/books/handbook/config/chapter.sgml index 8c052eb4d7..93b36cab99 100644 --- a/en_US.ISO8859-1/books/handbook/config/chapter.sgml +++ b/en_US.ISO8859-1/books/handbook/config/chapter.sgml @@ -1571,7 +1571,7 @@ kern.maxfiles: 2088 -> 5000 want, of course. - Creating a Swapfile + Creating a Swapfile on FreeBSD 4.X @@ -1615,6 +1615,46 @@ kern.maxfiles: 2088 -> 5000 + + + Creating a Swapfile on FreeBSD 5.X + + + + Be certain that your kernel configuration includes + the memory disk driver (&man.md.4;). It is default in + GENERIC kernel. + + device md # Memory "disks" + + + + create a swapfile (/usr/swap0): + + &prompt.root; dd if=/dev/zero of=/usr/swap0 bs=1024k count=64 + + + + set proper permissions on (/usr/swap0): + + &prompt.root; chmod 0600 /usr/swap0 + + + + enable the swap file in /etc/rc.conf: + + swapfile="/usr/swap0" # Set to name of swapfile if aux swapfile desired. + + + + + Reboot the machine or to enable the swap file immediately, + type: + + &prompt.root; mdconfig -a -t vnode -f /usr/swap0 -u 0 && swapon /dev/md0 + + +