Computational storage drive on Zynq UltraScale+
A storage device with an FPGA between the host and two SSD controllers. The host can hand off data work, and the drives can talk to each other directly.
- 400 MB/shost ↔ NVMe and P2P
- PCIe x16to the host
- 2 × x4to the SSD controllers
Architecture · block diagram
- Main data path
- Logic
- Processor
- Memory
- Interconnect
- Off-chip
The story
Data-heavy workloads spend much of their time on moving data from storage to the CPU, which then discards most of it. Computational storage moves part of that work next to the drives. The host offloads data manipulation to an FPGA, and only the result returns.
Challenges
The host link is PCIe x16, and each SSD controller has its own PCIe x4 link. Data had to move between drives without passing through host memory. The host had to see the device as standard storage, and the device still had to expose the offload.
What I built
The host connects over PCIe x16 to a Zynq UltraScale+ MPSoC with four Arm A53 cores, two Cortex-R5 cores, PL data engines and local DRAM. The MPSoC connects over two PCIe x4 links to two SSD controllers and their NAND.
The hardest problem
Most of the work was in software. I wrote custom kernel modules and an NVMe driver for low latency and high throughput. I used peer-to-peer DMA to move data from one NVMe drive to another without passing through host memory.
Result
Transfers run at 400 MB/s between the host and NVMe storage, and from NVMe to NVMe by peer-to-peer DMA. The host offloads data manipulation to the FPGA. My kernel modules and NVMe driver handle the data path from the host to the drives.
Where you'd find something like this
Filtering, compression and search next to the data
Cutting host CPU load and PCIe traffic for data-heavy workloads
Related services