Skip to contentSkip to conversation

Soft-Raid 0 Performance | Transfer two Data-Streams (CPU+FPGA) to the same Soft-Raid

DISCUSSION Eric Schwarz 3 participants 4 messages Jan 17, 2017 – Jan 25, 2017 1 message not in the archive MD RAID

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive

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

#2 lore raw
Quoted 11 lines · Eric Schwarz

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.

Quoted 6 lines

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

#4 lore raw
In reply to Eric Schwarz
Quoted 10 lines · Eric Schwarz

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.

Quoted 6 lines

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

Quoted 7 lines

Many thanks for helpful replies
Eric
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#3 lore raw
In reply to Coly Li

Hi Coly,

Quoted 10 lines
Quoted 6 lines

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