*BSD News Article 94045


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!wdcpop.dra.net!news.dra.com!news.visi.net!news.mathworks.com!arclight.uoregon.edu!ns2.ny.ubs.com!news-w.ans.net!newsfeeds.ans.net!lantana.singnet.com.sg!newsfeed.singnet.com.sg!chenab.lums.edu.pk!chenab.lums.edu.pk!not-for-mail
From: aslam@lums.edu.pk (Sohail Aslam)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: How to increase size of vn-device swapfile?
Date: 21 Apr 1997 13:06:56 +0500
Organization: Lahore University of Management Sciences (LUMS)
Lines: 25
Message-ID: <5jf770$mbj@chenab.lums.edu.pk>
NNTP-Posting-Host: chenab.lums.edu.pk
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:39445


I followed the instructions in the FAQ on adding a vn-device to increase
swap size:

  1.  create a vn-device
           cd /dev; sh ./MAKEDEV vn0
  2.  create a swapfile (/var/swap0)
           dd if=/dev/zero of=/var/swap0 bs=1024k count=64
  3.  put into /etc/rc.local the line
           vnconfig -ce /dev/vn0c /var/swap0 swap

Questions:
1. How can increase the size of /var/swap0 (the file)? 
2. How can I disable swapping to the vn-device?
3. Is the performance of swapping/paging on a vn-device the same as on
   a hard partition?

For the time being, I created another vn-device (vn1c) and another 64MB
file in /var (swap1) and vnconfig'd swap on it.


-- 
Sohail Aslam                   
Department of Computer Science, Lahore University of Management Sciences (LUMS)
Lahore, Pakistan    tel: 92-42-572-2670   fax: 92-42-572-2591
email: aslam@lums.edu.pk