<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="gmail_quote"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">


I am configuring my new backend, I want to know if there is any real<br>
performance if I create a RAID 1 disk to store the recordings and<br>
livetv files.<br>
<br>
I don&#39;t worryed about data lose, by the way, there are just TV programs.<br>
<br>
I will appreciate your experience on RAID systems.<br>
<br>
Best regards.<br>
<span><font color="#888888"><br>
--<br>
Josu Lazkano<br></font></span></blockquote></div><div><br>The general consensuses from people on the list (from what I have seen previously) is no, you won&#39;t see any noticeable gains and would be better using all of the space as separate disks for recordings.<br>



<br>The mysql database however, may benefit from being stored on a separate disc at least.  My stuff is all of the same disc, but my usage of myth is small, compared to some people on the list.<br><br>Did you mean RAID1 by the way, which is just a mirror?  Or did you mean RAID0, which is striped.<br>



<br></div></div></blockquote><div><br></div><div>For the type of loads that Mythtv generates, no raid solution will outperform an equal number of individual disks with their load properly balanced.  For example, if recording two streams to two disks:</div>

<div><br></div><div>- If raided (raid 0 or 1), the heads of both drives will be seeking back and forth between the two locations on disk to write each stream.</div><div>- If individual disks, the recordings are written sequentially on each disk, with minimal head movement.</div>

</div><div class="gmail_quote"><div><br></div><div>If you have more than 2 sequential IO&#39;s (say your watching a show, recording 2, and commflagging), your still keeping seeks to minimum because if raided, it needs to seek between 4 positions on both disks, rather than seeking between 2 locations on each disk.  Seeks are the slowest part of any magnetic storage solution, which is why flash media is so much faster; RAID can make it worse because read/writes cannot occur until the last drive arrives at the proper track/cylinder.  (slight oversimplification)</div>

<div><br></div><div>Where RAID can increase performance is when doing single sequential tasks, or many small reads that can be fulfilled by a single drive of the array (databases and webhosting on a properly tuned array).  Hardware raid uses large caches to offset the performance losses associated with raid... so often a hardware raid solution will be faster in many circumstances... though often not with multiple sustained sequential operations like we see with mythtv which would rapidly fill the cache.</div>

<div><br></div><div>In summary.. use raid if you need redundancy or if your system is serving another role that may benefit from raid (large databases, webhosting, etc) otherwise, just use the extra drive capacity you would lose in an array to store online backups of your most important data so you can quickly recover from a drive failure.</div>

<div><br></div><div>Just my recommendation... I&#39;m sure others would argue otherwise.</div></div>