From: Spelic <spelic@shiftmail.org>
To: linux-lvm@redhat.com
Subject: Re: [linux-lvm] pvmove painfully slow on parity RAID
Date: Fri, 31 Dec 2010 04:41:55 +0100 [thread overview]
Message-ID: <4D1D5103.6030706@shiftmail.org> (raw)
In-Reply-To: <Pine.LNX.4.64.1012301402010.22982@bmsred.bmsi.com>
On 12/30/2010 08:12 PM, Stuart D. Gathman wrote:
> On Thu, 30 Dec 2010, Spelic wrote:
>
>
>> Also there is still the mystery of why times appear *randomly* related to the
>> number of devices, chunk sizes, and stripe sizes! if the rmw cycle was the
>> culprit, how come I see:
>> raid5, 4 devices, 16384k chunk: 41sec (4.9MB/sec)
>> raid5, 6 device, 4096k chunk: 2m18sec ?!?! (1.44 MB/sec!?)
>> the first has much larger stripe size of 49152K , the second has 20480K !
>>
> Ok, next theory. Pvmove works by allocating a mirror for each
> contiguous segment of the source LV, update metadata
Ok never mind, I found the problem:
LVM probably uses O_DIRECT, right?
Well it's absymally slow on MD parity raid (I checked with dd on the
bare MD device just now) and I don't know why it's so slow. It's not
because of the rmw because it's slow even the second time I try, when it
does not read anything anymore because all reads are in cache already.
I understand this is probably to be fixed at MD side (and I will report
the problem to linux-raid, but I see it has already been discussed
without much results)
However...
...is there any chance you might fix it at lvm side too, changing LVM to
use nondirect IO so to "support" MD?
In my raid5 array between direct and nondirect (dd bs=1M or smaller)
there's the difference of 2.1MB/s to 250MB/sec, and would probably be
greater on larger arrays.
Also in raid10 nondirect is much faster for small transfer sizes like
bs=4K (28MB/sec to 160MB/sec) but not at 1M, however LVM probably uses
low transfer sizes, right?
Thank you
next prev parent reply other threads:[~2010-12-31 3:43 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-29 2:40 [linux-lvm] pvmove painfully slow on parity RAID Spelic
2010-12-29 14:02 ` Spelic
2010-12-30 2:42 ` Stuart D. Gathman
2010-12-30 3:13 ` Spelic
2010-12-30 19:12 ` Stuart D. Gathman
2010-12-31 3:41 ` Spelic [this message]
2010-12-31 15:36 ` Stuart D. Gathman
2010-12-31 17:23 ` Stuart D. Gathman
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=4D1D5103.6030706@shiftmail.org \
--to=spelic@shiftmail.org \
--cc=linux-lvm@redhat.com \
/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).