public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* Re: Verify filesystem is aligned to stripes
@ 2010-11-26  2:43 Richard Scobie
  0 siblings, 0 replies; 11+ messages in thread
From: Richard Scobie @ 2010-11-26  2:43 UTC (permalink / raw)
  To: xfs

  Stan Hoeppner wrote:

 > I've done no formal testing myself, but the last article I read that
 > tested md RAID1 performance showed marginally faster read performance 
 > for a two disk mirror.

All my testing of md RAID1 has shown write performance of one device and 
  single threaded read performance of one device. A second, concurrent 
read will be directed to the second device though.

Regards,

Richard

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 11+ messages in thread
* Verify filesystem is aligned to stripes
@ 2010-11-24 18:39 Spelic
  2010-11-25  5:46 ` Dave Chinner
  0 siblings, 1 reply; 11+ messages in thread
From: Spelic @ 2010-11-24 18:39 UTC (permalink / raw)
  To: xfs

Hi there,
I thought there was a way to empirically check that the filesystem is 
correctly aligned to RAID stripes, but my attempts fail.
I don't mean by looking at sunit and swidth from xfs_info, because that 
would not detect if there is some LVM offset problem.

I am particularly interested for parity RAIDs in MD.

I was thinking at "iostat -x 1": if writes are aligned I shouldn't see 
any reads from the drives in a parity RAID...

unfortunately this does not work:
- a dd streaming write test has almost no reads even when I mount with 
"noalign", with sufficiently large stripe_cache_size such as 1024. If it 
is smaller, always reads, even if xfs is aligned.
- a kernel untar will show lots of reads at any stripe_cache_size even 
if I'm pretty sure I aligned the stripes correctly on my 1024k x 15 data 
disks and the .tar.bz2 file was in cache. I tried with both xfs stripes 
autodetection in 2.6.37-rc2 and by specifying su and sw values by hand, 
which turned out to be the same; I was without LVM so I'm pretty sure 
alignment was correct. Why are there still lots of reads in this case?

so I'm pretty clueless. Anyone has good suggestions?
Thank you

PS, OT: do you confirm it's not a good idea to have agsize multiple of 
stripe size like the mkfs warns you against? Today I offsetted it by +1 
stripe unit (chunk) so that every AG begins on a different drive but 
performances didn't improve noticeably. Wouldn't that cause more 
unfilled stripes when writing?

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2010-11-26 14:34 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-26  2:43 Verify filesystem is aligned to stripes Richard Scobie
  -- strict thread matches above, loose matches on Subject: below --
2010-11-24 18:39 Spelic
2010-11-25  5:46 ` Dave Chinner
2010-11-25  7:00   ` Stan Hoeppner
2010-11-25 10:15     ` Dave Chinner
2010-11-25 22:57       ` Stan Hoeppner
2010-11-26  8:16         ` Emmanuel Florac
2010-11-26 12:22           ` Dave Chinner
2010-11-26 13:15             ` Spelic
2010-11-26 14:05             ` Michael Monnerie
2010-11-26 14:36             ` Emmanuel Florac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox