From owner-freebsd-isp Fri Aug 22 00:54:26 1997 Return-Path: Received: (from root@localhost) by hub.freebsd.org (8.8.5/8.8.5) id AAA23803 for isp-outgoing; Fri, 22 Aug 1997 00:54:26 -0700 (PDT) Received: from balder.besys.net.au (root@[203.103.239.193]) by hub.freebsd.org (8.8.5/8.8.5) with ESMTP id AAA23796 for ; Fri, 22 Aug 1997 00:54:04 -0700 (PDT) Received: from ingold.besys.net.au (ingold.besys.net.au [203.103.239.196]) by balder.besys.net.au (8.8.6/8.8.5) with ESMTP id RAA03015 for ; Fri, 22 Aug 1997 17:53:39 +1000 (EST) Message-ID: <33FD4581.456FE788@besys.net.au> Date: Fri, 22 Aug 1997 17:53:37 +1000 From: Peter Champas Organization: http://www.besys.net.au/ X-Mailer: Mozilla 4.01 [en] (Win95; I) MIME-Version: 1.0 To: freebsd-isp@FreeBSD.ORG Subject: Re: Multiple Swap Partitions X-Priority: 3 (Normal) References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-isp@FreeBSD.ORG X-Loop: FreeBSD.org Precedence: bulk Felipe Rivera Marquez wrote: > > Taken from man pages of swapon > ------------------------------------ > DESCRIPTION > Swapon is used to specify additional devices on which paging and > swapping > are to take place. The system begins by swapping and paging on > only > a > single device so that only one disk is required at bootstrap > time. > Calls > to swapon normally occur in the system multi-user initialization > file > /etc/rc making all swap devices available, so that the paging and > swap- > ping activity is interleaved across several devices. > ------------------------------------------------------------ > > So, in theory, you can have several swap partitions defined in > /etc/fstab. > > The thing i've tried is using vn devices to allow swaping on a > file, and maybe this is more useful for you. > > 0. Recompile your kernel if it has no support for vn > pseudo-devices. Add this line to your kernel configuration > > pseudo-device vn 4 > > 1. Create a file as big as you want the aditional swap space > to > be. (I put it on /var/tmp) > > 2. Create vn devices > > /dev/MAKEDEV vn0 > > 3. Use vnconfig to configure the special file and activate > swap on > it. > > vnconfig -e /dev/vn0 /var/tmp/swapfile swap) And most inportant don't foget to do a /sbin/swapon /dev/vn0 Everyone Seems to forget to tell you these LITTLE things :)) But this method does work real well cheers -- *---------------------[ http://www.besys.net.au/ ]---------------------* | Peter Champas | peter@besys.net.au | |----------------------------------------------------------------------| | I don't demand perfection, just something that's reasonably reliable | *----------------------------------------------------------------------*