linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Brad Campbell <lists2009@fnarfbargle.com>
To: Jakob Unterwurzacher <jakobunt@gmail.com>, linux-raid@vger.kernel.org
Subject: Re: md raid6: slow resync if fs is mounted rw
Date: Wed, 26 Feb 2014 10:31:55 +0800	[thread overview]
Message-ID: <530D521B.7060509@fnarfbargle.com> (raw)
In-Reply-To: <530D1F53.5070703@gmail.com>

On 26/02/14 06:55, Jakob Unterwurzacher wrote:
> Dear list,
>
> I am seeing a strange performance issue on a 4 x 4TB md raid6 on kernel
> 3.12. Initial resync goes nice and fast at 130MB/s:
>
>> # cat /proc/mdstat
>> Personalities : [raid1] [raid6] [raid5] [raid4]
>> md1 : active raid6 sda3[0] sdd3[3] sdc3[2] sdb3[1]
>>        7751269376 blocks super 1.2 level 6, 512k chunk, algorithm 2 [4/4] [UUUU]
>>        [=>...................]  resync =  7.5% (293925504/3875634688) finish=458.4min speed=130210K/sec
>>
>> md0 : active raid1 sda2[0] sdd2[3] sdc2[2] sdb2[1]
>>        29280128 blocks super 1.2 [4/4] [UUUU]
>>
>> unused devices: <none>
>
> ...unless the ext4 filesystem on the array is mounted read-write!
> Then, speed plummets to 1 - 7MB/s. The filesystem is empty and totally
> idle; a simple "mount -o remount,ro" restores the speed to 130MB/s.
>

You are probably expeririencing an effect of this :

http://www.thomas-krenn.com/en/wiki/Ext4_Filesystem#Lazy_Initialization

Regards,
Brad

  parent reply	other threads:[~2014-02-26  2:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-25 22:55 md raid6: slow resync if fs is mounted rw Jakob Unterwurzacher
2014-02-25 23:38 ` NeilBrown
2014-02-26  2:31 ` Brad Campbell [this message]
2014-02-26  9:40   ` Jakob Unterwurzacher

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=530D521B.7060509@fnarfbargle.com \
    --to=lists2009@fnarfbargle.com \
    --cc=jakobunt@gmail.com \
    --cc=linux-raid@vger.kernel.org \
    /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).