Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
should swap be raid0?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
odioworks_com
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2005
Posts: 82
Location: Charlottesville, Virginia

PostPosted: Mon Apr 14, 2008 9:11 pm    Post subject: should swap be raid0? Reply with quote

I noticed in this howto: http://gentoo-wiki.com/HOWTO_Gentoo_Install_on_Software_RAID that they're creating raid0 swap on a system that's otherwise raid1:
Code:
mdadm --create --verbose /dev/md2 --level=0 --raid-devices=2 /dev/sda2 /dev/sdb2


I would think that striping swap would create an unnecessary risk of data corruption in memory, which could really suck. What do you guys think? Why not raid1? I would think that would be preferred, especially on machines where the swap isn't frequently used...
Back to top
View user's profile Send private message
neysx
Retired Dev
Retired Dev


Joined: 27 Jan 2003
Posts: 795

PostPosted: Mon Apr 14, 2008 9:28 pm    Post subject: Stupid wiki Reply with quote

swap in raid-0 is a waste of resource. The kernel does it automagically.
See green note in http://www.gentoo.org/doc/en/gentoo-x86+raid+lvm2-quickinstall.xml#doc_chap2_sect6
Back to top
View user's profile Send private message
odioworks_com
Tux's lil' helper
Tux's lil' helper


Joined: 23 Jan 2005
Posts: 82
Location: Charlottesville, Virginia

PostPosted: Mon Apr 14, 2008 10:05 pm    Post subject: Reply with quote

so it seems like this part of the wiki should be updated?
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 9882
Location: almost Mile High in the USA

PostPosted: Mon Apr 14, 2008 11:04 pm    Post subject: Reply with quote

I put my swap *file* on RAID5... mostly because I'm lazy :)

I suppose if you don't care if your machine goes down in flames you'd use raid0 anyway, so sticking swap on raid0 isn't any worse... but in my case I have enough RAM and swap is only an emergency buffer and the reliability I get swapping on raid5 is much more valuable...

Since anyone can edit the page feel free to... it's a wiki after all. If not fixed by the next time I read it, I guess I'll fix it (along with its "Prequisits"(sic)).
_________________
Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum