All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bernd Schubert <bernd.schubert@fastmail.fm>
To: Eivind Sarto <eivindsarto@gmail.com>
Cc: stan@hardwarefreak.com,
	Jeff Allison <jeff.allison@allygray.2y.net>,
	linux-raid@vger.kernel.org
Subject: Re: raid resync speed
Date: Thu, 20 Mar 2014 17:22:03 +0100	[thread overview]
Message-ID: <532B15AB.40105@fastmail.fm> (raw)
In-Reply-To: <9A0E06E3-6E0A-46B8-9340-C3C2D8D60B1E@gmail.com>

On 03/20/2014 05:19 PM, Eivind Sarto wrote:
>
> On Mar 20, 2014, at 8:36 AM, Bernd Schubert <bernd.schubert@fastmail.fm> wrote:
>
>> On 03/20/2014 04:35 PM, Bernd Schubert wrote:
>>>>
>>>> Yes.  The article gives 16384 and 32768 as examples for
>>>> stripe_cache_size.  Such high values tend to reduce throughput instead
>>>> of increasing it.  Never use a value above 2048 with rust, and 1024 is
>>>> usually optimal for 7.2K drives.  Only go 4096 or higher with SSDs.  In
>>>> addition, high values eat huge amounts of memory.  The formula is:
>>>>
>>>
>>> Why should the stripe-cache size differ between SSDs and rotating disks?
>>> Did you ever try to figure out yourself why it got slower with higher
>>> values? I profiled that in the past and it was a CPU/memory limitation -
>>> the md thread went to 100%, searching for stripe-heads.
>>
>> Sorry, I forgot to write 'cpu usage', so it went to 100% cpu usage.
>>
>>>
>>> So I really wonder how you got the impression that the stripe cache size
>>> should have different values for differnt kinds of drives.
>>>

> The hash chains for the stripe cache become long if you increase the stripe cache.  There are only 256
> hash buckets.  With 32K stripe cache entries, the average length of a hash chain will be 128 and that will
> increase contention for the lock protection the chain.
>

Yes, this is a implementation detail. But that make a difference between 
SSDs and rotating disks... (which was my point here).


  reply	other threads:[~2014-03-20 16:22 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-20  1:12 raid resync speed Jeff Allison
2014-03-20 14:35 ` Stan Hoeppner
2014-03-20 15:35   ` Bernd Schubert
2014-03-20 15:36     ` Bernd Schubert
2014-03-20 16:19       ` Eivind Sarto
2014-03-20 16:22         ` Bernd Schubert [this message]
2014-03-20 18:44     ` Stan Hoeppner
2014-03-27 16:08       ` Bernd Schubert
2014-03-28  8:03         ` Stan Hoeppner
2014-03-20 17:46 ` Bernd Schubert
2014-03-21  0:44   ` Jeff Allison
  -- strict thread matches above, loose matches on Subject: below --
2005-09-10  2:11 RAID " Eyal Lebedinsky
2005-09-10  2:53 ` Nuno Silva
2005-09-10  3:18   ` Eyal Lebedinsky
2005-09-10  4:54     ` Nuno Silva
2005-09-10  5:16       ` Joel Jaeggli
2005-09-11  2:16       ` Eyal Lebedinsky
2005-09-12 15:57         ` Roger Heflin

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=532B15AB.40105@fastmail.fm \
    --to=bernd.schubert@fastmail.fm \
    --cc=eivindsarto@gmail.com \
    --cc=jeff.allison@allygray.2y.net \
    --cc=linux-raid@vger.kernel.org \
    --cc=stan@hardwarefreak.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.