All of lore.kernel.org
 help / color / mirror / Atom feed
From: "NeilBrown" <neilb@suse.de>
To: Michael Evans <mjevans1983@gmail.com>
Cc: Jon Nelson <jnelson-linux-raid@jamponi.net>,
	LinuxRaid <linux-raid@vger.kernel.org>
Subject: Re: unbelievably bad performance: 2.6.27.37 and raid6
Date: Tue, 3 Nov 2009 17:28:57 +1100	[thread overview]
Message-ID: <763d89fcf9c0164cbe8b6245dc3d2d7f.squirrel@neil.brown.name> (raw)
In-Reply-To: <4877c76c0911022209g60e40364i2cb82909e31f707d@mail.gmail.com>

On Tue, November 3, 2009 5:09 pm, Michael Evans wrote:
> On Mon, Nov 2, 2009 at 9:36 PM, NeilBrown <neilb@suse.de> wrote:
>> On Tue, November 3, 2009 2:03 am, Jon Nelson wrote:
>>> On Mon, Nov 2, 2009 at 8:54 AM, Bill Davidsen <davidsen@tmr.com> wrote:
>>>> Jon Nelson wrote:
>>>>>
>>>>> I have a 4 disk raid6. The disks are individually capable of (at
>>>>> least) 75MB/s on average.
>>>>> The raid6 looks like this:
>>>>>
>>>>> md0 : active raid6 sda4[0] sdc4[5] sdd4[4] sdb4[6]
>>>>>      613409536 blocks super 1.1 level 6, 64k chunk, algorithm 2 [4/4]
>>>>> [UUUU]
>>>>>
>>>>> The raid serves basically as an lvm physical volume.
>>>>>
>>>>> While rsyncing a file from an ext3 filesystem to a jfs filesystem, I
>>>>> am observing speeds in the 10-15MB/s range.
>>>>> That seems really really slow.
>>>>>
>>>>>
>>>>
>>>> It is really slow, recent kernels seem to be unsuitable for use as
>>>> large
>>>> file servers, as the performance is, as you described it,
>>>> "unbelievably
>>>> bad."
>>>
>>> Yeah. I'm hoping that the 2.6.31.XX stable kernel series gets some of
>>> these improvements, the .27 series has been not the most stable for me
>>> either.  2.6.27.25 was the last rock-solid of the .27 series for me.
>>
>> I wouldn't get your hopes up...
>> I did some limited testing of simple writes to ext2 and the current
>> 32-pre kernel is noticably slower than .26 .27 .28 .29 .. (that is as
>> far as I got with testing... I should write a script and leave it
>> running
>> overnight to get a broader picture).
>>
>> NeilBrown
>>
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>>
>
> Maybe my speed results even after the 'fix' are also this issue:  I
> expect each of my drives is capable of at least 8MB/sec sustained
> (highly pessimistic).
>
>      2909829120 blocks super 1.1 level 6, 128k chunk, algorithm 18
> [8/8] [UUUUUUUU]
>      [==>..................]  reshape = 10.4% (50708096/484971520)
> finish=3989.0min speed=1813K/sec
>
> The 'backup file' is on a separate raid 1 device and approximately 25
> mb in size.  My cpu has virtually no load and I've got gigs of memory
> free.

A reshape is a fundamentally slow operation.  Each block needs to
be read and then written somewhere else so there is little opportunity
for streaming.
An in-place reshape (i.e the array doesn't get bigger or smaller) is
even slower as we have to take a backup copy of each range of blocks
before writing them back out.  This limits streaming even more.

It is possible to get it fast than it is by increasing the
array's stripe_cache_size and also increasing the 'backup' size
that mdadm uses.  mdadm-3.1.1 will try to do better in this respect.
However it will still be significantly slower than e.g. a resync.

So reshape will always be slow.  It is a completely different issue
to filesystem activity on a RAID array being slow.  Recent reports of
slowness are, I think, not directly related to md/raid.  It is either
the filesystem or the VM or a combination of the two that causes
these slowdowns.


NeilBrown
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2009-11-03  6:28 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-31 15:55 unbelievably bad performance: 2.6.27.37 and raid6 Jon Nelson
2009-10-31 18:43 ` Thomas Fjellstrom
2009-11-01 19:37   ` Andrew Dunn
2009-11-01 19:41     ` Thomas Fjellstrom
2009-11-01 23:43       ` NeilBrown
2009-11-01 23:47         ` Thomas Fjellstrom
2009-11-01 23:53           ` Jon Nelson
2009-11-02  2:28             ` Neil Brown
2009-11-01 23:55           ` Andrew Dunn
2009-11-04 14:43           ` CoolCold
2009-10-31 19:59 ` Christian Pernegger
2009-11-02 19:39   ` Jon Nelson
2009-11-02 20:01     ` Christian Pernegger
2009-11-01  7:17 ` Kristleifur Daðason
2009-11-02 14:54 ` Bill Davidsen
2009-11-02 15:03   ` Jon Nelson
2009-11-03  5:36     ` NeilBrown
2009-11-03  6:09       ` Michael Evans
2009-11-03  6:28         ` NeilBrown [this message]
2009-11-03  6:39           ` Michael Evans
2009-11-03  6:46           ` Michael Evans
2009-11-03  9:16             ` NeilBrown
2009-11-03 13:07           ` Goswin von Brederlow
2009-11-03 16:28             ` Michael Evans
2009-11-03 19:26               ` Goswin von Brederlow
2009-11-02 18:51   ` Christian Pernegger

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=763d89fcf9c0164cbe8b6245dc3d2d7f.squirrel@neil.brown.name \
    --to=neilb@suse.de \
    --cc=jnelson-linux-raid@jamponi.net \
    --cc=linux-raid@vger.kernel.org \
    --cc=mjevans1983@gmail.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.