Best setup for swap space (or paging file)?

MountainX

Limp Gawd
Joined
Mar 2, 2008
Messages
254
It is often recommended to put the swap partition on a separate drive. Now it is also recommended to run virtual machines on a separate drive from the OS drive.

My question is which would be better for performance if I have three (or 4) drives available:
1. OS on one drive, swap on another, and virtual machines on the last drive?
2. set up all drives in RAID 0 (striped) configuration using a fast RAID controller and run everything from the RAID array?

Thanks.
 
1 would be the best as each would be coming from it's own hard drive.
 
Are you sure about that? I was guessing that 2 would be best for performance.
 
Don't get me wrong RAID0 can be fast but, depends on how the system is used. it's been shown in a lot of cases that RAID 0 for a desktop system might not help much if at all.
 
Don't get me wrong RAID0 can be fast but, depends on how the system is used. it's been shown in a lot of cases that RAID 0 for a desktop system might not help much if at all.

I appreciate your reply again, but I gave a use-case in my original question. I just want to make sure your response doesn't confuse other people reading this thread. The specific situation is one where disk contention can cause a bottleneck (such as running virtual machines).

So, any opinions (hopefully informed ones, but guesses are welcome too) about the relative performance of multiple individual disks vs. a good striped raid configuration for specific applications where disk contention is the bottleneck? Thanks.
 
Dude, Raid 0 does not improve the access time of the array. It only improves the sequential read and write times of the array.

Therefore, if you are doing 3 different things with your Raid 0 array, your performance would be crap.

It's kinda like running Adaware and Spybot on your drive at the same time. If you run them one at a time, each takes about 15 minutes to complete. But, if you run them at the same time, it takes more than an hour to complete, because the heads have to keep jumping around to accommodate both programs.

Don
 
Having all of those things in a Raid 0 will in fact slow down your machine because the disk's heads will run all over the place trying to access your OS data while writing to swap and accessing Virtual Machines at the same time on the same disks. DO NOT USE RAID 0. You want to make sure to separate your writing processes from your reading and best way to do that is to in your case avoid raid 0.
 
I understand it better now. I especially appreciate the replies from OliverBGD and DonDon, and thanks to everyone else who helped clarify the answer!
 
Back
Top