*BSD News Article 6663


Return to BSD News archive

Newsgroups: comp.unix.bsd
Path: sserve!manuel.anu.edu.au!munnari.oz.au!sgiblab!sdd.hp.com!caen!sol.ctr.columbia.edu!eff!news.byu.edu!ux1!fcom.cc.utah.edu!cs.weber.edu!terry
From: terry@cs.weber.edu (A Wizard of Earth C)
Subject: Re: Adding Swapspace ??
Message-ID: <1992Oct16.201806.21519@fcom.cc.utah.edu>
Sender: news@fcom.cc.utah.edu
Organization: Weber State University  (Ogden, UT)
References: <Bw7H4L.LLB@cosy.sbg.ac.at> <1992Oct16.162729.3701@ninja.zso.dec.com>
Date: Fri, 16 Oct 92 20:18:06 GMT
Lines: 40

In article <1992Oct16.162729.3701@ninja.zso.dec.com> alan@ulka.zso.dec.com (F. Alan Jones) writes:
>
>>Is there a way to add that much swap-space without making a new filesystem
>>i.e. just recompile the kernel ?
>
>I believe the answer is no.  There may be a way to figure out how much
>swap space you have configured.  Look for the file swapvmunix.c in your
>kernel object files directory.  That will tell you which device swap
>is configured to run on.  Then do something like chpt -q on ULTRIX.  I
>think I have tried this command and had it not work.   In any case try
>to read what the current partition table is and see how much space is
>allocated to the device on which your swap is configured.  If it is
>smaller than you want, and the rest of the disk is taken up with the
>root and/or /usr filesystem,  I'm afraid you will have to rebuild from
>scratch.

And people wonder why I recommend putting the swap last, just before a
DOS partition.  The reason is to allow you to back up your DOS (for which
there is good, fast, reliable backup available, much as it pains me to say
it), move the DOS partition, and simply blow the disk label to increase
your swap.  Restore the DOS garbage to the DOS partition.

What we really need is the ability to swap to a file (any file -- say an
NFS mounted one, for instance) and get rid of the idea of a swap
partition altogether.  Then you make a default swap file out of a
bunch of contiguous file system blocks; if you let it grow, you pay
for it being discontinuous then; at least you don't have to reinstall.


					Terry Lambert
					terry@icarus.weber.edu
					terry_lambert@novell.com
---
Any opinions in this posting are my own and not those of my present
or previous employers.
-- 
-------------------------------------------------------------------------------
                                        "I have an 8 user poetic license" - me
 Get the 386bsd FAQ from agate.berkeley.edu:/pub/386BSD/386bsd-0.1/unofficial
-------------------------------------------------------------------------------