Introduction
As network speeds advance toward 400 and 800 GbE, host CPUs are increasingly overwhelmed by the demands of packet processing. Traditional "off-path" SmartNICs, such as the NVIDIA BlueField-2, attempted to mitigate this by offloading tasks to embedded Arm cores. However, these cores typically reside behind a NIC switch, introducing significant latency and bandwidth bottlenecks. While fixed hardware engines for encryption or compression offer speed, they lack the flexibility required for the rapidly evolving landscape of cloud applications.
NVIDIA’s BlueField-3 (BF3) introduces a novel architectural component: the Datapath Accelerator (DPA). The DPA is a many-core RISC-V processor positioned directly "on-path," designed to provide programmable, high-throughput packet processing. Despite its potential, the DPA has remained largely an architectural "black box." This paper provides the first comprehensive characterization of the DPA, offering actionable guidelines for developers to navigate its complex memory hierarchy and unique compute trade-offs.
Methodology
To demystify the DPA, a systematic bottom-up characterization was conducted using BenchBF3, a custom benchmark suite developed for this study. The evaluation utilized a testbed of two servers connected via 200GbE and focused on three primary pillars:
- General-Purpose Computing: Performance was evaluated using Roofline Models to compare the INT64 multiplication capabilities of the Host (x86), the Arm cores (Cortex-A78AE), and the DPA (RISC-V).
- Memory Subsystem: The study measured latency and bandwidth across five distinct access paths, including local DPA memory, Arm memory, and Host memory via PCIe. Pointer-chasing techniques were employed to map the DPA’s cache hierarchies.
- Networking Performance: The authors evaluated L2-reflector latency and throughput, specifically testing how the physical location of memory buffers (Host vs. Arm vs. DPA) impacts performance.
These findings were validated through three real-world case studies: Clock Synchronization, Stateless Network Functions (NFV), and Key-Value Aggregation using the "yelp" production dataset.
Architectural Insights and Guidelines
The "Wimpy" Many-core Trade-off
The DPA's individual RISC-V threads are significantly "wimpier" than those of a host CPU, with a single DPA thread performing up to 26× slower than a host thread. However, the DPA compensates with massive parallelism, featuring 256 threads (though current driver limitations restrict concurrent use to 190). The primary guideline for developers is that the DPA is only effective for workloads that are embarrassingly parallel.
Proximity and Latency
Because the DPA is integrated on the same chip as the NIC, it bypasses the ~500ns switch latency inherent in the Arm-based off-path model. This proximity makes the DPA exceptionally well-suited for jitter-sensitive tasks. For example, in clock synchronization tasks, offloading to the DPA reduced the time uncertainty bound by 2.3× compared to host-based solutions.
Memory Hierarchy and Interconnects
The DPA features a specialized but limited memory hierarchy, including a 1KB L1 cache and a 1.5MB L2 cache. Performance degrades sharply—by as much as 25×—once the working set exceeds the L2 cache size.
One of the most significant findings involves memory bandwidth. The DPA’s bandwidth is limited by the interconnect rather than the thread count. By utilizing hybrid memory management—storing network buffers in Arm memory while maintaining aggregation buffers in local DPA memory—the authors achieved a 2.4× bandwidth boost.
Key Results
- Key-Value Aggregation: By optimizing memory buffer placement according to the study's guidelines, the authors achieved a 4.3× higher throughput than the default or worst-case DPA configurations.
- Throughput Scaling: While the DPA struggles with small 64B packets at low thread counts, it can achieve line-rate processing for 1KB packets by leveraging its high thread count, effectively matching the performance of more powerful host cores for large-packet workloads.
- Clock Synchronization: The DPA's on-path location allowed for significantly more precise timing than traditional host-based methods.
Limitations and Future Outlook
While the BlueField-3 DPA represents a significant step forward, it presents several challenges:
- Programming Complexity: Unlike standard x86 or Arm development, the DPA requires manual memory management and explicit parallelization.
- Hardware Constraints: The current 5× latency penalty for the DPA to access memory compared to Arm cores suggests that future iterations should consider directly attaching memory to the DPA or expanding the cache size.
- Driver Maturity: Current software limitations prevent full utilization of all 256 hardware threads.
In conclusion, the DPA is a powerful tool for specific network-centric workloads, provided developers account for its "wimpy" core nature and prioritize local cache residency and parallel execution.
Summary updated