linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: NeilBrown <neilb@suse.com>
To: Eric Schwarz <eas@sw-optimization.com>, linux-raid@vger.kernel.org
Subject: Re: Soft-Raid 0 Performance | Transfer two Data-Streams (CPU+FPGA) to the same Soft-Raid
Date: Mon, 23 Jan 2017 20:56:59 +1100	[thread overview]
Message-ID: <87shoacd5g.fsf@notabene.neil.brown.name> (raw)
In-Reply-To: <0e04b53af8bdf4f39a08b31ea4499626@sw-optimization.com>

[-- Attachment #1: Type: text/plain, Size: 1883 bytes --]

On Wed, Jan 18 2017, Eric Schwarz wrote:

> Hello mailing list,
>
> I have got two questions:
>
> 1.) I have set-up a softraid (raid level 0) with mdadm using two M.2 
> modules. For one module the throughput is ~350MB/s (no mdadm) for two 
> modules the throughput is ~500MB/s which is less than factor 1,5 of the 
> throughput of a single drive. The filesystem used is ext4. Is there 
> someone having some values for comparison? For me the throughput gain 
> seems to be too little. The test was done using a HP Z840 workstation.

Can you try a range of chunk sizes and see what difference it makes?
RAID0 simply remaps each request to the appropriate target device/offset,
imposing very little direct overhead.  There may be an indirect overhead
as a small chunk size causes large request to be chopped up into smaller
requests first.

>
> 2.) We want to configure a softraid (raid level 0) with mdadm which can 
> be used from within Linux but also it should be possible to write data 
> to the raid w/ DMA directly from the FPGA which is also connected to the 
> PCIe bus as a slave as well as the M.2 modules. How can that be achieved 
> using existing kernel infrastructure?

What sort of help do you want from the existing kernel infrastructure.
Presumably your FPGA must already understand RAID0 striping, so you just
need to tell the FPGA what devices, offsets, chunk sizes to use.
I suspect it would be easiest to have a user-space program query the
array and feed data to your FPGA, but as you provide no detail for how
the FPGA would be configured, I'm only guessing.

NeilBrown


>
> Many thanks for helpful replies
> Eric
> --
> 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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]

      parent reply	other threads:[~2017-01-23  9:56 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <21298bd64ef0dc83b29bd45362ead46c@sw-optimization.com>
2017-01-17 15:00 ` Soft-Raid 0 Performance | Transfer two Data-Streams (CPU+FPGA) to the same Soft-Raid Eric Schwarz
2017-01-23  8:40   ` Coly Li
2017-01-25 16:49     ` Eric Schwarz
2017-01-23  9:56   ` NeilBrown [this message]

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=87shoacd5g.fsf@notabene.neil.brown.name \
    --to=neilb@suse.com \
    --cc=eas@sw-optimization.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).