From: Bill Davidsen <davidsen@tmr.com>
To: Neil Brown <neilb@suse.de>
Cc: Janek Kozicki <janek_listy@wp.pl>, linux-raid@vger.kernel.org
Subject: Re: stride / stripe alignment on LVM ?
Date: Fri, 02 Nov 2007 09:01:05 -0400 [thread overview]
Message-ID: <472B1F91.8000208@tmr.com> (raw)
In-Reply-To: <18218.24819.569744.141171@notabene.brown>
Neil Brown wrote:
> On Thursday November 1, janek_listy@wp.pl wrote:
>
>> Hello,
>>
>> I have raid5 /dev/md1, --chunk=128 --metadata=1.1. On it I have
>> created LVM volume called 'raid5', and finally a logical volume
>> 'backup'.
>>
>> Then I formatted it with command:
>>
>> mkfs.ext3 -b 4096 -E stride=32 -E resize=550292480 /dev/raid5/backup
>>
>> And because LVM is putting its own metadata on /dev/md1, the ext3
>> partition is shifted by some (unknown for me) amount of bytes from
>> the beginning of /dev/md1.
>>
>> I was wondering, how big is the shift, and would it hurt the
>> performance/safety if the `ext3 stride=32` didn't align perfectly
>> with the physical stripes on HDD?
>>
>
> It is probably better to ask this question on an ext3 list as people
> there might know exactly what 'stride' does.
>
> I *think* it causes the inode tables to be offset in different
> block-groups so that they are not all on the same drive. If that is
> the case, then an offset causes by LVM isn't going to make any
> difference at all.
>
Actually, I think that all of the performance evil Doug was mentioning
will apply to LVM as well. So if things are poorly aligned, they will be
poorly handled, a stripe-sized write will not go in a stripe, but will
overlap chunks and cause all the data from all chunks to be read back
for a new raid-5 calculation.
So I would expect this to make a very large performance difference, so
even if it work it would do so slowly.
--
bill davidsen <davidsen@tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
next prev parent reply other threads:[~2007-11-02 13:01 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-01 9:10 stride / stripe alignment on LVM ? Janek Kozicki
2007-11-01 23:27 ` Neil Brown
2007-11-02 13:01 ` Bill Davidsen [this message]
2007-11-02 22:16 ` Janek Kozicki
2007-11-03 18:40 ` Doug Ledford
2007-11-03 20:21 ` Janek Kozicki
2007-11-04 1:02 ` Doug Ledford
2007-11-07 9:00 ` Goswin von Brederlow
2007-11-11 23:53 ` Alasdair G Kergon
2007-11-07 9:04 ` Goswin von Brederlow
2007-11-02 12:10 ` Michal Soltys
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=472B1F91.8000208@tmr.com \
--to=davidsen@tmr.com \
--cc=janek_listy@wp.pl \
--cc=linux-raid@vger.kernel.org \
--cc=neilb@suse.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).