Gaming and Linux software RAID – Your path to pwnage - 03/11/2008 by Andrew


When I've seen gaming rigs (actual rigs, not the big budget magazine stuff), I usually find a powerful CPU and GPU with everything else being of average spec: on board sound, on board networking, average case (apart from see-through windows and a dozen fans) and a single modern SATA hard drive. The reason for this is simple; Eye-candy needs a powerful CPU and GPU, while the rest is just along for the ride – so to speak.

Hard drives are often forgotten as there isn't a huge amount you can do, apart from buy a Western Digital VelociRaptor. There is one more option though, using two (or more) inexpensive drives and RAID them together to increase the speed dramatically. This way you can get to high speed nirvana without destroying your budget.

With Linux, you'll not need to buy any additional cards as you can use the inbuilt Linux software RAID, which is fast, stable and free.



So what is RAID and why should I use it?

RAID stands for Redundant Array of Inexpensive/Independant Disks, or in non-geek, two or more hard drives acting as a single unit. There's a few different types, so I'll quickly outline the basic forms here (in all examples, the hard drives are exactly the same spec, though in practice you can mix and match):

RAID0: Not really RAID, as there is no redundacy. If you had two hard drives in RAID0, the RAID set would have twice the capacity and twice the speed of one drive. If one drive fails, you lose everything. Very risky, but the pay off is speed. This should be your choice for a pure gaming machine, or if it's you're regular machine, invest in an external backup drive to keep your foot fetish pr0n safe.

RAID1: If you had two hard drives, you would have the capacity of just one drive, write speeds would be the same as a single drive, though read speeds can be up to twice the speed of one drive. If one drive fails, nothing is lost as it still exists on the non-failed drive. Very safe (the equivalent of instant backups) and you do get a read boost (in practice, a little bit faster than one drive).

RAID5: If you had three hard drives, you would have the capacity of two drives, increased read speed but slow write speeds. You can lose one drive and you'll still have your data, though since the RAID set will be running in a redundant state, things will be VERY slow. Great for fileservers, not the best for gaming.

There's also RAID1+0, RAID0+1, RAID10, RAID50, RAID6 and RAID5 with hot spares as well as a stack of other obscure RAID types. For gaming, you'll generally stick with RAID0, RAID1 or possibly RAID5 if your gaming machine doubles as your storage server.

So, now you know the basic RAID types – why should your next Linux gaming rig use RAID? Well, first off, you don't need to shell out money for a hardware RAID card – Linux software RAID (included with every distro) will do the job perfectly and has the additional bonus of being transportable to a new system. If your motherboard dies, you can move your entire set into a new machine and you're good to go, if your hardware RAID card dies, you invariably need to purchase that exact same card again to get your data off.

Secondly and most importantly, you'll get a huge speed boost in game loading times and map load times. With UT2004 as well as other first person shooters (like Nexuiz and OpenArena), you'll be one of the first to start the map giving you valuable time before the other players start. With Enemy Territory: Quake Wars, you'll be able to choose GDF or Strogg first, though you'll still have to endure the 30 second warm-up. In other games you'll give a boost in load times, which is a good thing regardless. Having an additional 20 odd seconds to survey the level may mean the difference between pwning or being pwned.

So what are the downsides?

Using Linux software RAID will make your CPU do some extra crunching, though on modern PCs this will be less than 5% of a single core. Basically, you're not going to notice it, though it is a downside. You'll also be at risk of losing your data, depending on the RAID type you're using.

You'll also use a bit more energy as you'll have more hard drives running. This isn't going to be much, around 20 watts or so (YMMV).

Another issue is if you're wanting to run a 'dual boot' setup with Windows as you'll need to use hardware RAID to do this properly. Yes, there are ways around it such as having two drives RAID0 for your Linux and a third drive for Windows, though this is just too much hassle. A better solution would be to have an external SATA (eSATA) drive with Windows on it connected to your first SATA port on your motherboard, with the other internal drives being Linux. This way, if the eSATA drive is switched on, then Windows boots, otherwise you'll be using Linux.

Cool – I'm in. How do I set up RAID?

The easiest way to setup RAID is during the installation of Linux. You will have to do the partitioning yourself though this isn't scary. Lets say you're wanting a RAID0 setup with two 500GB SATA drives. The first thing you'll have to get your head around is that you'll have to create 'md' devices and then create partitions from them. So to create '/boot' you'll need create two 100MB partitions (one on each physical drive) and set the type to RAID. From there you can join the two logical partitions as a RAID1 (it's best to mirror /boot) and from there set as /boot (and as bootable) as if it's a regular drive. Do the same for swap (though use RAID0) and then again for / (again, RAID0) and that's all there is to it.

If you couldn't follow that (and I don't blame you, I've just skimmed the surface), hit google to find some RAID how-tos for your distro of choice.

Bottom Line

Linux software RAID is stable, portable and doesn't require additional hardware. Using two inexpensive drives you can have read/write speeds faster than the fastest single drives out there allowing you to have the fastest load times on the server. By the time the other playsers load the map, you've already grabed all the drops and are setting up to spawn camp and execute tea bag mayhem.











Comments

Name

Email
(not required, not published)
Website
(not required)
6 + 6 =

Comment


 

pazsion www.gabrielsangel.4t.com
11/04/2009 1:18:24 AM

uh what? ANything on the hard drive that is being accessed like media / games CONSTANTLY use RAM and HD's they are stored on.. and the prefetch files.. or virtual ram set.. even if none the HD itself accesses it's own memory for it's own tasks.. The way you describe it u think the thing Just sits there and spins no read/write during a HD movie... multiply that by each player in the game.. If each player use 100mb ram/s 1-10mb/s read/ write/s plus your OS ugh gawd.. Your HD is used alot... for everything.. the more bandwidth, and the faster it can access it.. the better.. esp with movies and sound or things you expect on screen / in your ears in real time.. Or as close to it as u can be..

HunkaHunkaBurninLove
26/01/2009 4:40:24 AM

I use RAID1, but not for gaming reasons. Having a game or map load a few seconds faster doesn't seem worth the hassle. I've never understood why vendors put high-performance hard drives in gaming rigs, other than that they can get away with it. All the action should be in RAM. If you're accessing your disk much during game play something has gone wrong.


Similar Articles:
Warsow 0.5 Released - 4/10/2009 9:59:59 AM
Nexuiz 2.5.2 Released - 3/10/2009 4:48:37 PM
Ubuntu – Unwanted Poster-boy? - 21/08/2009 8:43:59 PM
PS3 Slim - No more Linux? Ahh, but for how long... - 20/08/2009 9:20:06 PM
Review: Eeebuntu 3.0.1 NBR - 12/08/2009 10:13:08 PM
Nexuiz 2.5 has been released - 16/04/2009 10:32:09 PM
Glest 3.2.1 has been released - 15/02/2009 11:44:18 AM
Nvidia releases Linux driver version 180.29 - 12/02/2009 8:04:58 PM
SuperTuxKart 0.6 has been released - 27/01/2009 9:06:58 PM
Review: Linux Mint 6 'Felicia' - 25/01/2009 4:06:29 PM
Review: Fedora 10 - 19/01/2009 11:30:49 PM
Review: OpenSUSE 11.1 - 17/01/2009 10:50:35 PM
How to overclock Nvidia cards in OpenSUSE 11.1 - 17/01/2009 2:23:05 PM
How to enable Nvidia drivers in OpenSUSE 11.1 - 17/01/2009 1:54:44 PM
Nvidia releases Linux driver version 180.22 - 11/01/2009 10:35:01 PM
How to overclock Nvidia cards in Ubuntu/Kubuntu 8.10 and 9.04 - 9/01/2009 12:15:30 AM
TORCS Version 1.3.1 Released - 20/12/2008 10:50:06 PM
Ubuntu 9.04 'Jaunty Jackalope' – What to expect - 23/11/2008 11:25:42 AM
Review: Ubuntu 8.10 'Intrepid Ibex' – Missed the mark? - 22/11/2008 10:22:31 PM
Gaming and Linux software RAID – Your path to pwnage - 3/11/2008 3:28:23 PM
OpenArena 0.8.1 released - 3/11/2008 1:13:25 AM
Ubuntu 8.10 'Intrepid Ibex' has been released - 31/10/2008 12:07:46 PM
Nvidia Linux drivers 177.80 - 8/10/2008 10:32:06 PM
Gaming on Linux – What are your options? - 6/10/2008 5:40:24 PM
Review: Fedora 10 Beta (Gnome) - 4/10/2008 8:24:51 PM
Review: Simply MEPIS 8.0 Beta 2 - 1/10/2008 7:35:56 PM
Review: SuperTux 0.1.3 - 29/09/2008 9:23:59 PM
Review: Tuxpuck 0.8.2 - 29/09/2008 2:51:56 PM
Review: Mandriva Linux 2009 Release Candidate 2 (Gnome) - 27/09/2008 9:49:21 PM
Review: Xubuntu 8.10 'Intrepid Ibex' Alpha 6 - 21/09/2008 4:20:03 PM
Review: Kubuntu 8.10 'Intrepid Ibex' Alpha 6 - 20/09/2008 10:36:25 PM
Review: Kubuntu 8.10 'Intrepid Ibex' Alpha 4 - 24/08/2008 9:15:57 PM
Review: Ubuntu 8.10 'Intrepid Ibex' Alpha 4 - 15/08/2008 10:16:51 PM
Review: Enemy Territory: Quake Wars (ET:QW) - 13/08/2008 9:07:32 PM
Review: OpenArena 0.8.0 - 10/08/2008 8:17:53 PM
Review: Powermanga 0.90 - 10/08/2008 5:05:15 PM
Review: Mandriva Linux 2009 Beta 1 (KDE4.1) - 31/07/2008 5:36:06 PM
Review: Ubuntu 8.10 'Intrepid Ibex' Alpha 2 - 13/07/2008 4:55:45 PM
Review: OpenArena 0.7.7 - 2/07/2008 11:59:37 AM
PlaneShift 0.4.01 has been released - 30/06/2008 11:01:11 PM
Review: linuX-gamers Live DVD 0.9.3 - 29/06/2008 10:17:59 PM
Nexuiz 2.4.2 has been released - 12/05/2008 6:17:58 PM
Review: Nexuiz 2.4 - 26/04/2008 10:19:33 PM
Review: Warsow 0.42 - 25/04/2008 3:34:31 PM
Review: The Open Racing Cars Simulator (TORCS) 1.3 - 24/04/2008 10:39:00 PM
Review: SuperTuxKart 0.4 - 24/04/2008 9:15:09 PM
Review: Progress Quest 6.2 - 24/04/2008 6:14:17 PM
Review: Glest 3.0.0 - 22/04/2008 10:28:42 PM
Review: FreedroidRPG 0.10.3-3 - 22/04/2008 5:59:40 PM
Unreal Tournament 3 (UT3) Linux Client, where art thou? - 1/04/2008 10:13:48 PM








Advertising - About Us - Contact Us - Link To Us - Site Map
All trademarks, icons, and logos, shown or mentioned in this web site, are the property of their respective owners. All rights reserved.
Reader comments are owned by the poster. We are not responsible for them in any way. Comments may be deleted at any time for any reason.
Copyright © 2008-2009 by HeadshotGamer.com

Valid CSS!