Hi,<br><br>I think I found part of the problem.  Our RAID array vendor explained to me that they have a problem of not getting enough data from ext3 to do full stripe writes when ext3 issues an cache flush command.  <br><br>
Basically something to do with the journaling and cache flushing.  To test this I replaced ext3 with ext2 and now I get the expected results:<br><br>mkfs.ext2 -Tlargefile4 -b4096 /dev/dm-1<br><br>dd if=/dev/zero of=/mnt/test bs=1024K count=1024 conv=fsync
<br>1024+0 records in<br>1024+0 records out<br>1073741824 bytes (1.1 GB) copied, 6.85545 seconds, 157 MB/s<br><br>So now I think I will just try to just have ext3 journal to a different device.  See if that helps any.  <br>
<br>Thanks<br>Rene<br><br><br><br><br><div><span class="gmail_quote">On 8/8/07, <b class="gmail_sendername">GARDAIS Ionel</b> <<a href="mailto:Ionel.Gardais@tech-advantage.com">Ionel.Gardais@tech-advantage.com</a>> wrote:
</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div>


<p><font size="2">stride is the chunk size of your raid whatever the number of physical disks composing the RAID array.<br>
So for 256k chunks with a block size of 4k, stride should be 256/4 = 64 instead of 640.<br>
<br>
Maybe it will help.<br>
<br>
Ionel<br>
<br>
<br>
-------- Message d'origine--------<br>
De: Rene Salmon [<a href="mailto:rsalmon74@gmail.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">mailto:rsalmon74@gmail.com</a>]<br>
Date: mer. 08/08/2007 22:53<br>
À: GARDAIS Ionel<br>
Cc: <a href="mailto:ext3-users@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ext3-users@redhat.com</a><br>
Objet : Re: RE : Poor ext3 performance on RAID array<br>
<br>
Hi,<br>
<br>
Thanks for the reply. I tried using the -E stride=X  option as follows:<br>
<br>
mkfs.ext3 -b4096 -Tlargefile4 -E stride=640 /dev/dm-1<br>
<br>
and got the same results around 50 MBytes/sec.  Maybe I have the wrong<br>
number for stride so here is the math for that:<br>
<br>
                          stride=stripe-size<br>
                          Configure the filesystem  for  a  RAID  array<br>
with<br>
                          stripe-size filesystem blocks per stripe.<br>
<br>
<br>
Here is some more detail on the RAID array.<br>
<br>
RAID level : 5 (10 drives + 1 parity)<br>
Chunk Size : 256 KB<br>
Stripe Size : 2560 KB (10 drives * 256KB)<br>
<br>
stride=640 * 4096(byte blocks) = 2560KB<br>
<br>
I will try other stride options but they don't seem to change much.<br>
<br>
Thanks<br>
Rene<br>
<br>
<br>
<br>
<br>
On 8/8/07, GARDAIS Ionel <<a href="mailto:Ionel.Gardais@tech-advantage.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">Ionel.Gardais@tech-advantage.com</a>> wrote:<br>
><br>
>  Hi Rene,<br>
><br>
> You should try to add the "-E stride=X" option to the mkfs command line.<br>
> Where X is expalined in the man page.<br>
><br>
> This will basically map ext3 "blocks" on the RAID stripe size.<br>
><br>
> Ionel<br>
><br>
><br>
> -------- Message d'origine--------<br>
> De: <a href="mailto:ext3-users-bounces@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ext3-users-bounces@redhat.com</a> de la part de Rene Salmon<br>
> Date: mer. 08/08/2007 22:21<br>
> À: <a href="mailto:ext3-users@redhat.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">ext3-users@redhat.com</a><br>
> Objet : Poor ext3 performance on RAID array<br>
><br>
> Hi list,<br>
><br>
><br>
> I am having some strange performance issues with ext3 and I am hoping to<br>
> get some advice/hints on how to make this better.  First some background<br>
> on the setup.<br>
><br>
> We have a RAID 5 array 10+1+1 with one LUN.  That is 10 SATA drives one<br>
> parity drive and one dedicated spare.  The LUN is about 6.5TB.<br>
><br>
> Using a 2Gbit/sec fiber channel card I can do some dd writes to the raw<br>
> device and get speeds close to 200Mbytes/sec which is more or less the<br>
> max the card can do.<br>
><br>
> Next I create an xfs file system on the LUN and do a dd to xfs and get<br>
> speeds close to 150Mbytes/sec.<br>
><br>
> I want to use ext3 not xfs so next I put ext3 on the lun.  Now when I do<br>
> the dd to the ext3 lun I get 25-50Mbytes/sec depending on whether I have<br>
> the Raid controller cache turned on or off. Getting 50MBytes/sec with<br>
> the raid controller cache turned off.<br>
><br>
> I know that ext3 should perform better so I must be doing something<br>
> wrong.  Here is my mkfs.ext3<br>
><br>
> mkfs.ext3 -b4096 -Tlagefile4 /dev/dm-0<br>
><br>
> Thanks in advanced for any help on this.<br>
><br>
> Rene<br>
><br>
><br>
<br>
</font>
</p>

</div>
</blockquote></div><br>