linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Soft-Raid 0 Performance | Transfer two Data-Streams (CPU+FPGA) to the same Soft-Raid
       [not found] <21298bd64ef0dc83b29bd45362ead46c@sw-optimization.com>
@ 2017-01-17 15:00 ` Eric Schwarz
  2017-01-23  8:40   ` Coly Li
  2017-01-23  9:56   ` NeilBrown
  0 siblings, 2 replies; 4+ messages in thread
From: Eric Schwarz @ 2017-01-17 15:00 UTC (permalink / raw)
  To: linux-raid

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.

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?

Many thanks for helpful replies
Eric

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Soft-Raid 0 Performance | Transfer two Data-Streams (CPU+FPGA) to the same Soft-Raid
  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
  1 sibling, 1 reply; 4+ messages in thread
From: Coly Li @ 2017-01-23  8:40 UTC (permalink / raw)
  To: Eric Schwarz; +Cc: linux-raid

On 2017/1/17 下午11:00, 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.
> 

Hi Eric,

Could you attach your testing script as well, than we can have a look.



> 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?
> 

I don't know such existing kernel code. Maybe other people can provide
useful information.

Coly


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Soft-Raid 0 Performance | Transfer two Data-Streams (CPU+FPGA) to the same Soft-Raid
  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-23  9:56   ` NeilBrown
  1 sibling, 0 replies; 4+ messages in thread
From: NeilBrown @ 2017-01-23  9:56 UTC (permalink / raw)
  To: Eric Schwarz, linux-raid

[-- 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 --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Soft-Raid 0 Performance | Transfer two Data-Streams (CPU+FPGA) to the same Soft-Raid
  2017-01-23  8:40   ` Coly Li
@ 2017-01-25 16:49     ` Eric Schwarz
  0 siblings, 0 replies; 4+ messages in thread
From: Eric Schwarz @ 2017-01-25 16:49 UTC (permalink / raw)
  To: Coly Li; +Cc: linux-raid

Hi Coly,

>> 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.
> 
> Hi Eric,
> 
> Could you attach your testing script as well, than we can have a look.

Create RAID0:
$ mdadm --create /dev/md0 --auto md --level=0 --raid-devices=2 /dev/sdb1 
/dev/sdc1

Write to bare RAID0:
$ dd if=/dev/zero of=/dev/md0 bs=1G count=1 oflag=dsync

dd will show the throughput

Cheers
Eric

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-01-25 16:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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 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).