*BSD News Article 79256


Return to BSD News archive

From: paul@xciv.org (Paul Civati)
Newsgroups: comp.unix.bsd.freebsd.misc,comp.unix.bsd.386bsd.misc,comp.unix.bsd.netbsd.misc,comp.unix.bsd.misc
Subject: Re: increase swap space
Date: 25 Sep 1996 20:43:35 GMT
Organization: XCIV
Lines: 30
Message-ID: <52c5hn$7s@xciv.demon.co.uk>
References: <519a9q$5ce@brutus.teleteam.net> <519bmf$hhn@newsbr.eunet.fr>
    <51e6df$i8@anorak.coverform.lan> <52amig$nu@klemm.gtn.com>
Reply-To: paul@xciv.org
NNTP-Posting-Host: pantera.xciv.org
X-NNTP-Posting-Host: xciv.demon.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8
Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.mel.connect.com.au!news.mira.net.au!pumpkin.pangea.ca!eru.mt.luth.se!news.algonet.se!news.cybernet.dk!news.ecrc.de!blackbush.xlink.net!tank.news.pipex.net!pipex!howland.erols.net!EU.net!usenet2.news.uk.psi.net!uknet!usenet1.news.uk.psi.net!uknet!dispatch.news.demon.net!demon!news.xciv.org!usenet
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:28045 comp.unix.bsd.386bsd.misc:1134 comp.unix.bsd.netbsd.misc:4666 comp.unix.bsd.misc:1359

In article <52amig$nu@klemm.gtn.com>,
	andreas@klemm.gtn.com (Andreas Klemm) writes:

>> You can't reduce the filesystem size easily, but you can create a file on
>> your 8Gb partition w/
>> 
>>     dd if=/dev/zero of=/my8gbdisk/swapfile bs=1048576 count=100
>> 
>> (for a 100Mb file) and then use vnconfig and swapon.
> 
> To use this swap file via vnconfig and swapon he has certainly
> to compile and install a new kernel, where the vnode drivers is
> enabled.

It's also worth noting (if you're interested in such things ;) that
AIUI there's a performance hit for using swapfiles as opposed to a
dedicated swap partition as the swapping has to go through the filesystem
code rather than a raw partition.

In cases where you need more swap though and can't provide another swap
partition then a swapfile is the solution.

(The number of SunOS boxes I've seen with a rather large file called
 something like 'extra.swap.do.not.remove'. ;)

-Paul-

-- 
Paul Civati  =O=  Home: paul@xciv.org          =O=  http://www.xciv.org/
London UK    =O=  Home: paul@xciv.demon.co.uk  =O=  Slackware is.