BPF-oF: Storage Function Pushdown Over the Network

Ioannis Zarkadas, Tal Zussman, Jeremy Carin, Sheng Jiang, Yuhong Zhong, Jonas Pfefferle, Hubertus Franke, Junfeng Yang, Kostis Kaffes, Ryan Stutsman, Asaf CidonarXiv 2023 · DOI

Abstract

In modern disaggregated datacenter architectures, the separation of compute and storage introduces a significant "network tax." Traditional protocols like NVMe-over-Fabrics (NVMe-oF) require multiple network round-trips for dependent I/O operations, such as B-tree traversals in databases. This paper presents BPF-oF, a novel remote-storage pushdown protocol that allows applications to safely execute custom eBPF functions directly on remote storage servers. By offloading complex I/O chains, BPF-oF eliminates redundant network traversals and reduces CPU overhead. Experimental results show that BPF-oF improves RocksDB throughput by up to 2.8× and reduces tail latency by 2.6× compared to standard NVMe/TCP.

Introduction

Storage disaggregation has become a standard in cloud environments, offering flexibility and scalability. However, the performance of data-intensive applications often suffers from the latency and CPU costs associated with processing network packets for every I/O request. For operations involving dependent reads—where the result of one read determines the address of the next—the cumulative network latency becomes a bottleneck. While pushing logic to storage is a known concept, implementing it safely and efficiently in systems with complex local caching and file system abstractions remains difficult.

BPF-oF Architecture and Implementation

BPF-oF addresses these challenges by extending the NVMe-oF protocol to support eBPF execution at the storage target. The system introduces several key innovations to maintain safety and performance:

  1. Asynchronous Metadata Synchronization: To bridge the gap between the file-level view of the host and the block-level view of the storage server, BPF-oF synchronizes file-to-block mappings (extents) out-of-band via TCP.
  2. Consistency via Versioning: A versioning scheme for inodes ensures that the storage server does not operate on stale data during concurrent updates. The host validates these versions before submission and after completion.
  3. Query Splitting and Cache Management: BPF-oF splits queries into a local phase (checking host-side MemTables/caches) and a remote phase (pushing an I/O traversal plan to the server). To keep the host cache fresh, it uses periodic "cache sampling" via the standard slow path.
Figure 5: The BPF-oF architecture showing the interaction between host and target, including metadata synchronization and eBPF function execution.

Performance Evaluation

The authors evaluated BPF-oF using industry-standard benchmarks like YCSB and real-world Twitter cache traces across different hardware configurations, including enterprise NAND and Intel Optane SSDs.

Key Results

  • Throughput and Latency: On NAND SSDs, BPF-oF achieved 1.4–2.2× higher throughput than standard NVMe/TCP. On ultra-low-latency Optane SSDs, throughput gains reached 2.8×. Tail latency (p99) was reduced by up to 2.6×, providing more predictable performance.
  • Efficiency: The system reduced CPU consumption by 37% and network traffic by 23% per request for TCP-based storage.
  • Generality: The framework was successfully integrated into RocksDB, WiredTiger (MongoDB), and BPF-KV, demonstrating its broad applicability.
Figure 3: Throughput and latency comparison between Local Disk, NVMe-oF/RDMA, and NVMe-oF/TCP.

Discussion and Future Work

While BPF-oF significantly improves read performance, its current focus is on read-only operations. Future work includes extending pushdown capabilities to the write path and supporting more complex storage configurations like RAID or LVM. Additionally, offloading eBPF execution to SmartNICs could further enhance resource efficiency by bypassing the target CPU entirely.

Conclusion

BPF-oF demonstrates that programmable storage pushdown using eBPF is a viable and highly effective strategy for mitigating the overheads of storage disaggregation. By providing a safe, general-purpose framework that respects file system semantics and local caching, BPF-oF paves the way for more efficient large-scale data processing.

Summary updated

BibTeX
@misc{zarkadas2023bpf,
  author = {Ioannis Zarkadas and Tal Zussman and Jeremy Carin and Sheng Jiang and Yuhong Zhong and Jonas Pfefferle and Hubertus Franke and Junfeng Yang and Kostis Kaffes and Ryan Stutsman and Asaf Cidon},
  title = {{BPF-oF: Storage Function Pushdown Over the Network}},
  year = {2023},
  eprint = {2312.06808},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.06808},
}
Figure