When the SCSI controller BIOS is initialized, it lists all of the drives on both channels, and most of them (as I recall) are described as being set to 80 MB/s with a note that the OS will probably set them to 320 MB/s. Am I recalling this correctly? Does this make any sense? Does Linux do this? Is there anything I have to do to enable this? I didn&#39;t see any messages in dmesg to this effect; I don&#39;t know if it&#39;s relevant.<div>
<br></div><div>Kevin<br><br><div class="gmail_quote">On Fri, May 20, 2011 at 2:05 PM, Adam Thompson <span dir="ltr">&lt;<a href="mailto:athompso@athompso.net">athompso@athompso.net</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I can tell you that those numbers are pretty much bang on.  Writes would be faster if you enabled the drives&#39; write caches, the HP controller will leave them at default, which is disabled.<br>
The RAID rebuild speed should have been about 90% of that 122Mb number, which it obviously wasn&#39;t.  I don&#39;t have any good theories why at the moment.<br>
<div class="im">-Adam<br>
<br>
<br>
Kevin McGregor &lt;<a href="mailto:kevin.a.mcgregor@gmail.com">kevin.a.mcgregor@gmail.com</a>&gt; wrote:<br>
<br>
</div><div><div></div><div class="h5">&gt;So far I made this<br>
&gt;md_d0 : active raid10 sdn1[12](S) sdm1[13](S) sdl1[11] sdk1[10] sdj1[9]<br>
&gt;sdi1[8] sdh1[7] sdg1[6] sdf1[5] sde1[4] sdd1[3] sdc1[2] sdb1[1] sda1[0]<br>
&gt;      1757804544 blocks 512K chunks 2 near-copies [12/12] [UUUUUUUUUUUU]<br>
&gt;and got this<br>
&gt;# dd if=/dev/zero of=/srv/d0/bigzerofile bs=1M count=32768<br>
&gt;32768+0 records in<br>
&gt;32768+0 records out<br>
&gt;34359738368 bytes (34 GB) copied, 281.034 s, 122 MB/s<br>
&gt;# dd of=/dev/null if=/srv/d0/bigzerofile bs=1M<br>
&gt;32768+0 records in<br>
&gt;32768+0 records out<br>
&gt;34359738368 bytes (34 GB) copied, 126.21 s, 272 MB/s<br>
&gt;<br>
&gt;I&#39;m wondering if 12 drives would over-saturate one Ultra-320 channel.<br>
&gt;Doesn&#39;t Ultra-320 suggest a maximum usable (or theoretical) capacity of 320<br>
&gt;MB/s? I could try setting up a stripe set/RAID0 of varying numbers of drives<br>
&gt;and compare. What do you think?<br>
&gt;<br>
&gt;I don&#39;t think the external enclosure (HP MSA30?) allows for splitting the<br>
&gt;drives into two groups. Only one cable can be connected to it, although<br>
&gt;there may have been an option for a second at purchase.<br>
&gt;<br>
&gt;On Thu, May 19, 2011 at 9:27 PM, Adam Thompson &lt;<a href="mailto:athompso@athompso.net">athompso@athompso.net</a>&gt;wrote:<br>
&gt;<br>
&gt;&gt; Well, I did say there was more than one variable involved!  25MB/sec is a<br>
&gt;&gt; bit slow, but I don’t know how efficiently that LSI chip is at managing bus<br>
&gt;&gt; contention, or how efficient the kernel driver for that chip is.  I do know<br>
&gt;&gt; from experience that 8-disk arrays are well into the land of diminishing<br>
&gt;&gt; returns from a speed perspective: RAID-1 on two disks or RAID-10 on four<br>
&gt;&gt; seems to be the sweet spot for speed.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; Once your rebuild has finished, I would recommend doing some throughput<br>
&gt;&gt; tests (both reading and writing) on the array; something perhaps like:<br>
&gt;&gt;<br>
&gt;&gt; # sync; time sh –c ‘dd if=/dev/zero of=/mnt/raidarray/BIGFILE.ZERO bs=1M<br>
&gt;&gt; count=1024;sync’<br>
&gt;&gt;<br>
&gt;&gt; followed by<br>
&gt;&gt;<br>
&gt;&gt; # time dd if=/dev/md0 of=/dev/null bs=1M count=1024<br>
&gt;&gt;<br>
&gt;&gt; Those are both very naïve approaches, but should give you a feel for the<br>
&gt;&gt; maximum read and write speeds of your array.  I strongly suspect those<br>
&gt;&gt; numbers will be much higher than the raid re-sync rate, again, mostly due to<br>
&gt;&gt; write-flush barriers in the md code.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; I’m interested in knowing how this ends, personally… please let us know.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; -Adam<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; (P.S. does anyone know how to avoid top-posting in Outlook 2010?)<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; *From:* <a href="mailto:roundtable-bounces@muug.mb.ca">roundtable-bounces@muug.mb.ca</a> [mailto:<br>
&gt;&gt; <a href="mailto:roundtable-bounces@muug.mb.ca">roundtable-bounces@muug.mb.ca</a>] *On Behalf Of *Kevin McGregor<br>
&gt;&gt; *Sent:* Thursday, May 19, 2011 14:52<br>
&gt;&gt; *To:* Continuation of Round Table discussion<br>
&gt;&gt; *Subject:* Re: [RndTbl] RAID5 rebuild performance<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; raid6: using algorithm sse2x2 (2883 MB/s). So, 1% of that is reasonable?<br>
&gt;&gt; :-) Oh well, I guess I can wait until tomorrow for the rebuild to finish.<br>
&gt;&gt;<br>
&gt;&gt; On Thu, May 19, 2011 at 2:12 PM, Adam Thompson &lt;<a href="mailto:athompso@athompso.net">athompso@athompso.net</a>&gt;<br>
&gt;&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; Look back in dmesg output for the RAID module speed tests, notice which one<br>
&gt;&gt; was selected, and divide that number by 2.  There&#39;s your theoretical<br>
&gt;&gt; bottleneck on the CPU.<br>
&gt;&gt; Take the minimum sustained disk/channel/controller throughput, factor in<br>
&gt;&gt; interrupt latency, device driver efficiency, etc. and make a rough guess as<br>
&gt;&gt; to the overall throughput.<br>
&gt;&gt; Consider that md code seems to have a lot of write barriers for safety -<br>
&gt;&gt;  so even a rebuild will aspens much of its time waiting for the disk to<br>
&gt;&gt; sync().<br>
&gt;&gt; All in all, I think your numbers are probably reasonable.<br>
&gt;&gt; -Adam<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
</div></div><div class="im">&gt;&gt; Kevin McGregor &lt;<a href="mailto:kevin.a.mcgregor@gmail.com">kevin.a.mcgregor@gmail.com</a>&gt; wrote:<br>
&gt;&gt;<br>
&gt;&gt; &gt;I installed Ubuntu Server 10.04.2 LTS AMD64 on a HP ProLiant ML370 G3 (4 x<br>
&gt;&gt; &gt;dual-core/hyperthreaded Xeon 2.66 GHz, 8 GB RAM) and I used the on-board<br>
&gt;&gt; &gt;SCSI controller to manage 8 x 300 GB 15K RPM SCSI drives in a software<br>
&gt;&gt; RAID<br>
&gt;&gt; &gt;5 set up as a 7-drive array with 1 hot-spare drive. All drives are the<br>
&gt;&gt; exact<br>
&gt;&gt; &gt;same model with the same firmware version.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;It&#39;s currently rebuilding the array (because I just created the array) and<br>
&gt;&gt; &gt;/proc/mdstat is reporting &quot;finish=165.7min speed=25856K/sec&quot;. Does that<br>
</div><div class="im">&gt;&gt; &gt;sound &quot;right&quot; in the sense that it&#39;s the right order of magnitude? I<br>
&gt;&gt; though<br>
&gt;&gt; &gt;it should be higher, but I haven&#39;t set up such an array before, so I don&#39;t<br>
&gt;&gt; &gt;have anything to compare it to.<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;If it&#39;s slow, does anyone have a suggestion for speeding it up?<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;Kevin<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;_______________________________________________<br>
</div><div><div></div><div class="h5">&gt;&gt; &gt;Roundtable mailing list<br>
&gt;&gt; &gt;<a href="mailto:Roundtable@muug.mb.ca">Roundtable@muug.mb.ca</a><br>
&gt;&gt; &gt;<a href="http://www.muug.mb.ca/mailman/listinfo/roundtable" target="_blank">http://www.muug.mb.ca/mailman/listinfo/roundtable</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Roundtable mailing list<br>
&gt;&gt; <a href="mailto:Roundtable@muug.mb.ca">Roundtable@muug.mb.ca</a><br>
&gt;&gt; <a href="http://www.muug.mb.ca/mailman/listinfo/roundtable" target="_blank">http://www.muug.mb.ca/mailman/listinfo/roundtable</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Roundtable mailing list<br>
&gt;&gt; <a href="mailto:Roundtable@muug.mb.ca">Roundtable@muug.mb.ca</a><br>
&gt;&gt; <a href="http://www.muug.mb.ca/mailman/listinfo/roundtable" target="_blank">http://www.muug.mb.ca/mailman/listinfo/roundtable</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
</div></div></blockquote></div><br></div>