Subject: Re: Swap Questions (was Re: Error lines booting Q700)
To: None <a.robbie@student.unimelb.edu.au>
From: Falk Stern <falk@sitecom.de>
List: port-mac68k
Date: 06/28/1998 18:52:56
-----BEGIN PGP SIGNED MESSAGE-----
a.robbie@student.unimelb.edu.au (Andrew J Robbie) said :
>
> >> Another question: How I can setup a swap partition on two different disks?
> >> ie. sd0b swap 20MB and sd1b swap 20MB Total = 40MB
> >
> >If you've already made the partition sd1b, all you have to do is add
> >the following line to /etc/fstab:
> >
> >/dev/sd1b none swap sw 0 0
>
> I also have some swap/VM questions :-)
>
> Is it possible to use files as secondary swap partitions in NetBSD? Reading
> the swapctl man pages isn't very informative. It would be really good for
> flexability reasons, esp if the swap file could grow as needed. Perhaps this
> is available with UVM?
> [The box crashed yesterday after I ran grep on a large directory (~50MB),
> preceded by 5 minutes of thrashing. Not pleasant.]
>
AFAIK you can do this by
bsdbox:/ > dd if=/dev/zero of=<name of swapfile> bs=1024k count=<size in MB>
xxxx+0 records in
xxxx+0 records out
bsdbox:/ > mkswap <name of swapfile>
bsdbox:/ > swapon <name of swapfile>
So far...
==============================================================================
Hail Eris! All Hail Discordia!
-><-
Falk Stern falk@sitecom.de
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
iQCVAwUBNZZ00fsjggLS1+SFAQGMlwP5AQcs2K0ITj5z/QVu7fh0+u2iEeuV3u9J
3NH0Dnqvh62p2KqQFHDyInapBvUEPOf/8FXXq1dUuOfpo65P/ccOi7duMyefTURM
mdf2b/b93TDRb3JSksxYnG/FqiQiw/ANRzRgwLnaiYbefEyN5uOHo1HmEwo2w4yN
hwToQUr45Ao=
=EHqj
-----END PGP SIGNATURE-----