On Wed, Oct 01, 2008 at 09:36:13PM +0200, Andi Kleen wrote:
> Peter Cordes <peter@xxxxxxxxx> writes:
> > XFS knows (or should have been told by the admin with mkfs!) what the
> > stripe geometry is: block size and stripe width. So it could apply
> > this optimization only if it would make a write cover more whole
> > blocks or whole stripes.
> It's a nice idea, but I don't think XFS knows the actual RAID level,
> only the stripes. And for 0/1 it wouldn't be a good idea.
Yeah, this would have to be a mount option, like stripewrite=1.
There are already a few other essential mount options people need to
learn about for big RAIDs, e.g. inode64.
AFAIK, XFS only knows the stripe geometry (sunit, swidth), not how
many parity blocks are part of each stripe, so it can't tell the
difference between RAID0 and RAID4,5,6. (let alone RAID60...). XFS
on RAID1 will have swidth=0, though. Probably the only sane default
is 0, even when swidth!=0, to make sure it doesn't cause problems for
anyone or slow down RAID0.
Thanks for the CC, since I'm not subscribe to the xfs list.
#define X(x,y) x##y
Peter Cordes ; e-mail: X(peter@cor , des.ca)
"The gods confound the man who first found out how to distinguish the hours!
Confound him, too, who in this place set up a sundial, to cut and hack
my day so wretchedly into small pieces!" -- Plautus, 200 BC