Jack Malmostoso wrote:
As pointed out by others on the list, having swap on a raid partition allows you system to survive a disc crash. It will, however, be a bit slower than swapping on the harddrive directly.On Sun, 22 Jan 2006 19:31:09 +0100, Jack Malmostoso wrote:I have added two swap entries in /etc/fstab but have not rebooted yet to try them (work in progress :()...Upon reboot swap was activated: jack@nostromo:~$ dmesg | grep swap Adding 498004k swap on /dev/sda2. Priority:-1 extents:1 across:498004k Adding 498004k swap on /dev/sdb2. Priority:-2 extents:1 across:498004k Would it give any advantage to RAID the swap too or is it just good like this?
Even more speed can be gained by specifying the same priority for both swap partitions: eg:
/dev/sda2 none swap sw,pri=1 0 0 /dev/sdb2 none swap sw,pri=1 0 0Which will tell the vm that it should span the swapped out data over the two partitions, which will yeild higher read performance.
Regards Anders Fugmann