All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Goryachev <mailinglists@websitemanagers.com.au>
To: Pedro Teixeira <finas@aeiou.pt>, linux-raid@vger.kernel.org
Subject: Re: Raid10 multi core scaling
Date: Tue, 26 Nov 2013 22:19:34 +1100	[thread overview]
Message-ID: <529483C6.2080503@websitemanagers.com.au> (raw)
In-Reply-To: <20131126105859.Horde.-ppIIPYRo99SlH7zGogGx_A@webmail.aeiou.pt>



On 26/11/13 21:58, Pedro Teixeira wrote:
>    I created a Raid10 array with 16 sata 1TB disks and the array
> performance
> seems to be limited by the md0_raid10 taking 99% of one core and not
> scalling to other cores. I tried overclocing the cpu cores and this
> lead to
> a small increase in performance ( but md0_raid10 keeps eating 99% of one
> core ).
>
>    I'm using:
>     - a phenom X6 at 3600mhz
>     - 16 seagate SSHDs ( sata3 7200RPM with 8GB ssd cache )
>     - 4x marvell 9230 sata3 controllers ( 4 ports each ) pcie 2.0 2x
> lanes.
>     - 8GB ram
>     - custom 3.12 kernel and mdadm compiled from latest source
>
>    what I did to test performance was to force a check on the array, and
> this
> leads to mdadm reporting a speed of about 990000K/sec. The hard disks
> report a 54% utilization. ( Overclocking the cpu by 200mhz increases the
> resync speed a bit and the hdd's utilizartion to about 58% )
>
>    If I do the same with a raid5 array instead of raid10, them resync
> speed
> will be almost double of raid10, the harddisk utilization reported
> will be
> 98-100% and I can see at least two cores being used.

AFAIK, the only way to make RAID10 use multiple cores is to actually
create 8 RAID1 arrays, and then combine those into a RAID0 linear or
RAID0 striped array. Each array will then create a new thread (total of
9 threads) which will then spread across all available cores.

There is ongoing work happening to improve this, but I don't think it is
available in any released kernel yet.

Regards,
Adam

-- 
Adam Goryachev
Website Managers
www.websitemanagers.com.au


  reply	other threads:[~2013-11-26 11:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-26 10:58 Raid10 multi core scaling Pedro Teixeira
2013-11-26 11:19 ` Adam Goryachev [this message]
2013-11-27  6:52 ` Stan Hoeppner
2013-12-02  6:22 ` NeilBrown
2013-12-02  8:19   ` David Brown
2013-12-02  9:04     ` NeilBrown

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=529483C6.2080503@websitemanagers.com.au \
    --to=mailinglists@websitemanagers.com.au \
    --cc=finas@aeiou.pt \
    --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 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.