From owner-freebsd-questions Sat Jul 28 10: 2:47 2001 Delivered-To: freebsd-questions@freebsd.org Received: from absinthe2.dyndns.org (adsl-63-207-239-50.dsl.chic01.pacbell.net [63.207.239.50]) by hub.freebsd.org (Postfix) with ESMTP id 6E3ED37B401 for ; Sat, 28 Jul 2001 10:02:43 -0700 (PDT) (envelope-from fred@absinthe2.dyndns.org) Received: (from fred@localhost) by absinthe2.dyndns.org (8.11.3/8.11.3) id f6SH2ah18129; Sat, 28 Jul 2001 10:02:36 -0700 (PDT) (envelope-from fred) Date: Sat, 28 Jul 2001 10:02:36 -0700 From: Fred Condo To: Richard B Mahoney Cc: Subscribers to FreeBSD-Questions Subject: Re: How to increase swap. Message-ID: <20010728100236.E17672@absinthe.condo.chico.ca.us> References: <20010728190701.A443@it.canterbury.ac.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010728190701.A443@it.canterbury.ac.nz>; from RBM49@student.canterbury.ac.nz on Sat, Jul 28, 2001 at 07:07:01PM +1200 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sat, Jul 28, 2001 at 07:07:01PM +1200, Richard B Mahoney wrote: > Dear Readers, > > I've just cannibalised a couple of elderly 486's for their memory, > and knocked up an early pentium to a whopping 72mg. Trouble is > that it started off life with only 40Mg and 85Mg swap. > > Is there an easy way to increase the swap to say 160Mg? I'm sure > this question has been asked before, but for the life of me I > can't track down a suitable answer. man vnconfig man vn Those will let you configure a regular file as additional swap. A better solution for a production machine would be to repartition your drive to have a larger swap partition. You may have to compile a new kernel with pseudo-device vn. Suggested command: vnconfig -c -T -S 75m /dev/special_file_to_use /path/to/regular/file Then you would use swapon /dev/special_file_to_use to add the 75 megs of swap to your existing 85, yielding 160. -- _________________________________________ ( fred@condo.chico.ca.us Repeal the DMCA. ) ----------------------------------------- o ^__^ o (**)\_______ (__)\ )\/\ U ||--WWW | || || To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message