Subject: Re: swapping to *just* vnd0
To: None <Todd.Williamson@cs.cmu.edu>
From: Chris G Demetriou <Chris_G_Demetriou@UX2.SP.CS.CMU.EDU>
List: netbsd-help
Date: 05/22/1996 17:30:42
> Am I supposed to be able to do this?
>
> I want to swap to just vnd0.
>
> [ ... ]
Short answer: no, you can't do that. I'd call it a bug, to be honest.
It's actually a consequence of the ... interesting design of the swap
map setup code.
> So, do I have to have a swap partition on my disk? I guess it
> wouldn't be too hard to repartition the disk, but is seems like a
> pain.
Yes, you'll have to repartition your disk. There's an added problem,
however:
Assuming that "S" is the size of the largest swap device that's
actually accessible at boot time, and "N" is the number of swap
devices you have configured, at most you will be able to access
"N * S" swap space.
So, in other words, if you have a line like:
... swap on wd0 and vnd0 and vnd1 and vnd2
(1) wd0 will be the only device in that list that's even potentially
accessible at boot time, and,
(2) max amount of swap will be 4 * (size of wd0b), including the space
supplied by wd0b.
The files attached to the vnd devices can be larger than (size of
wd0b), but if they are they will not be used in their entirety...
(only the first (size of wd0b) will be used.)
chris