*BSD News Article 85515


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!nntp.coast.net!howland.erols.net!www.nntp.primenet.com!nntp.primenet.com!nntp.uio.no!news.apfel.de!fu-berlin.de!irz401!orion.sax.de!uriah.heep!news
From: j@uriah.heep.sax.de (J Wunsch)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: What is smallest swap file size possible?
Date: 23 Dec 1996 13:20:24 GMT
Organization: Private BSD site, Dresden
Lines: 24
Message-ID: <59m0uo$423@uriah.heep.sax.de>
References: <E208FH.L68@murdoch.acc.virginia.edu>
  <32A9022F.167EB0E7@freebsd.org> <597d2a$ion@uriah.heep.sax.de>
  <59ar9m$ecf@news.ziplink.net>
Reply-To: joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch)
NNTP-Posting-Host: localhost.heep.sax.de
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
X-Newsreader: knews 0.9.6
X-Phone: +49-351-2012 669
X-PGP-Fingerprint: DC 47 E6 E4 FF A6 E9 8F  93 21 E0 7D F9 12 D6 4E
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:33010

mi@rtfm.ziplink.net (Mikhail Teterin) wrote:

> I recall, there was a work going on to enable taking some devices
> OUT of the swap list... So that you can add some devices and later
> stop swaping on them dynamicly without a reboot. Currently, AFAIK,
> you can only go one direction -- adding. What is the status of this?

Nothing new.  The problem is that you can't simply ``swapoff'' it.
You either have to move all paged-out pages from the secondary storage
to another paging area, _and_ (and i think that's the bummer) change
all references pointing to this page to make it pointing to the new
backup storage.  Alternatively, it might be possible to pick the SGI
Irix route, and use `swapoff' to only mark that paging area as ``no
longer to be used'', so it will slowly free up as the pages there are
being referenced.  Needless to say, it can still take an indefinite
amount of time until it's actually freed up from all pages, so you
could finally ``umount'' it.

-- 
cheers, J"org

joerg_wunsch@uriah.heep.sax.de -- http://www.sax.de/~joerg/ -- NIC: JW11-RIPE
Never trust an operating system you don't have sources for. ;-)