Re: Verify filesystem is aligned to stripes

Spelic
2010-11-26T13:12:04Z

On 11/26/2010 01:22 PM, Dave Chinner wrote:
>
> FWIW, for workloads that do random, small IO, XFS works best when you
> _turn off_ aligned allocation and just let it spray the IO at the
> disks. This works best if you are using RAID 0/1/10. All the numbers
> I've been posting are with aligned allocation turned off (i.e. no
> sunit/swidth set).
>

I think I also noticed this...

The thing is, for large sequential I/O it seems to me it's indifferent
if XFS is aligned or not, because the resulting file will anyway be
sequential, and if you have raid10 or even parity raid with a large
stripe cache there won't be any reads anyway. Ok maybe with alignment
you could avoid reads on the first stripe (not sure, it might read
anyway if the RAID reacts fast, before enough output is sent to it), but
that's the only one.

So when is alignment to be turned on?

Thanks for the info