On This Page
NVIDIA® BlueField® SNAP and virtio-blk SNAP (storage-defined network accelerated processing) technology enables hardware-accelerated virtualization of local storage. NVMe/virtio-blk SNAP presents networked storage as a local block-storage device (e.g., SSD) emulating a local drive on the PCIe bus. The host OS or hypervisor uses its standard storage driver, unaware that communication is done, not with a physical drive, but with NVMe/virtio-blk SNAP framework. Any logic may be applied to the I/O requests or to the data via the NVMe/virtio-blk SNAP framework prior to redirecting the request and/or data over a fabric-based network to remote or local storage targets.
NVMe/virtio-blk SNAP is based on the NVIDIA® BlueField® DPU family technology and combines unique hardware-accelerated storage virtualization with the advanced networking and programmability capabilities of the DPU. NVMe/virtio-blk SNAP together with the BlueField DPU enable a world of applications addressing storage and networking efficiency and performance.
The traffic from a host-emulated PCIe device is redirected to its matching storage controller opened on the mlnx_snap service. The controller, from its side, holds at least one open backend device (usually SPDK block device). When a command is received, the controller executes it. Admin commands are mostly answered immediately, while I/O commands are redirected to the backend device for processing.
The request-handling pipeline is completely asynchronous, and the workload is distributed across all Arm cores (allocated to SPDK application) to achieve the best performance.
The following are key concepts for SNAP:
Full flexibility in fabric/transport/protocol (e.g. NVMe-oF/iSCSI/other, RDMA/TCP, ETH/IB)
NVMe and virtio-blk emulation support
Easy data manipulation
Using Arm cores for data path
BlueField SNAP/virtio-blk SNAP are licensed software. Users must purchase a license per BlueField device to use them.
In this approach, the container could be downloaded from NVIDIA NGC and could be easily deployed on the DPU.
The yaml file includes SNAP binaries aligned with the latest spdk.nvda version. In this case, the SNAP sources are not available, and it is not possible to modify SNAP to support different SPDK versions (SNAP as an SDK package should be used for that).
SNAP 4.x is not pre- installed on the BFB but can be downloaded manually on demand .
For instructions on how to install the SNAP container, please see "SNAP Container Deployment".
The SNAP development package (custom) is intended for those wishing to customize the SNAP service to their environment, usually to work with a proprietary bdev and not with the spdk.nvda version. This allows users to gain full access to the service code and the lib headers which enables them to compile their changes.
This includes the protocols libraries and the interaction with the firmware/hardware (PRM) as well as:
Plain shared objects (*.so)
Static archives (*.a)
pkgconfig definitions (*.pc)
Include files (*.h)
This includes the following managers:
SPDK – depends on the bdev and the SPDK resources, such as SPDK threads, SPDK memory, and SPDK RPC service
XLIO (for NVMeTCP acceleration)
Protocol manager – implements all the protocol-specific control path (init, destroy, and config)
IO manager – implements the IO path for regular flows and optimized flows (RDMA ZC and TCP XLIO ZC)
Memory manager – manages the SNAP data buffers
Emulation manager – manages device emulation flows
Workqueue – infrastructure for polling new IOs (IO path) and events (control path) from the emulation libs
Example of RDMA zero-copy read/write IO flow:
Example of RDMA non-zero-copy read IO flow: