RE: have 2 swap files
- From: Gregory Leblanc <GLeblanc cu-portland edu>
- To: gnome-list gnome org
- Subject: RE: have 2 swap files
- Date: Sat, 19 Feb 2000 10:10:07 -0800
> -----Original Message-----
> From: Jerry F. Davis [mailto:jfdecd@execpc.com]
> Sent: Saturday, February 19, 2000 9:28 AM
> To: gnome-list@gnome.org
> Subject: have 2 swap files
>
> I have 2 swap files.
> But currently only one of them is activated.
> Will they work seamlessly? i.e. when one fills up does it begin on the
> other one?
> or does it interleave?
Well, this has nothing to do with GNOME, but rather with GNU/Linux.
>
> here is what i think i need to do, but i want someone to tell
> me if this
> would be the correct way to do it.
>
> this is what is in my fstab right now for swap
> /dev/hda8 swap swap defaults 0 0
>
> my other swap device is /dev/hda7
>
> so should i add to my fstab the following line?
> /dev/hda7 swap swap defaults 0 0
>
> and if so, shoould i then do a swapon -a ???
Read the man page for fstab and swapon. There is a setting for the swap
filesystem that you'll want to look at/specify called priority. I'm writing
this from M$ Windows (since Evolution doesn't do anything good yet), so I
can't check, but I think that you'll want fstab to be something like
/dev/hda8 swap swap defaults,pri=1 0 0
If you want it to stripe, set them both to the same number, if you want it
to go to the second one after the first fills, set one to 1, and the other
to 2. If they are both on the same hard drive, DO NOT STRIPE, it will kill
swap performance, and if you're swapping, you can't afford that.
Greg
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]