Skip to main content
QUICK REVIEW

[Paper Review] Safe and Efficient Remote Application Code Execution on Disaggregated NVM Storage with eBPF

Kornilios Kourtis, Animesh Trivedi|arXiv (Cornell University)|Feb 25, 2020
Security and Verification in ComputingComputer Science30 references6 citations
TL;DR

This paper proposes using eBPF to enable safe, efficient, and general-purpose remote code execution on disaggregated NVM storage, leveraging eBPF’s verified, sandboxed execution and high performance to reduce network data movement. The prototype demonstrates feasibility for offloading operations like increment and binary search, achieving significant I/O overhead reduction by executing logic directly on storage devices.

ABSTRACT

With rapid improvements in NVM storage devices, the performance bottleneck is gradually shifting to the network, thus giving rise to the notion of "data movement wall". To reduce the amount of data movement over the network, researchers have proposed near-data computing by shipping operations and compute-extensions closer to storage devices. However, running arbitrary, user-provided extensions in a shared, disaggregated storage environment presents multiple challenges regarding safety, isolation, and performance. Instead of approaching this problem from scratch, in this work we make a case for leveraging the Linux kernel eBPF framework to program disaggregated NVM storage devices. eBPF offers a safe, verifiable, and high-performance way of executing untrusted, user-defined code in a shared runtime. In this paper, we describe our experiences building a first prototype that supports remote operations on storage using eBPF, discuss the limitations of our approach, and directions for addressing them.

Motivation & Objective

  • To address the growing 'data movement wall' caused by the performance gap between high-speed NVM storage and slower network links.
  • To enable safe, efficient, and general-purpose execution of user-defined code on shared, remote NVM storage devices.
  • To leverage the mature, verified, and performant eBPF framework as a foundation for remote computation offloading.
  • To prototype and evaluate the feasibility of executing operations like increment and binary search directly on storage, minimizing data movement.
  • To explore the limitations of eBPF in this context and identify future directions for enhancing expressiveness and performance.

Proposed method

  • Using eBPF as a secure, verifiable, and JIT-compiled runtime environment to execute untrusted user code on remote NVM storage devices.
  • Extending the NBD (Network Block Device) protocol as a proof-of-concept transport layer to enable remote code upload and execution.
  • Designing a system where applications can upload eBPF programs to be executed on storage, reducing the need to transfer large data sets over the network.
  • Leveraging eBPF’s verifier to ensure bounded execution and safe memory access, preventing malicious or erroneous behavior.
  • Using eBPF’s existing ecosystem and tooling to minimize implementation overhead and ensure portability and maintainability.
  • Evaluating performance through microbenchmarks of remote operations such as numerical increment and binary search on large datasets.

Experimental results

Research questions

  • RQ1Can eBPF be effectively used to enable safe and efficient remote execution of arbitrary user code on disaggregated NVM storage?
  • RQ2How does offloading operations like increment and binary search to storage reduce network I/O and improve performance compared to traditional data transfer patterns?
  • RQ3What are the key limitations of using eBPF for this use case, particularly regarding expressiveness and execution time guarantees?
  • RQ4How can eBPF be extended to support more complex, declarative workloads such as map and reduce operations on remote storage?
  • RQ5What are the security and isolation trade-offs of allowing arbitrary code execution on shared storage devices?

Key findings

  • The prototype successfully demonstrates remote execution of eBPF programs on NVM storage using the NBD protocol, validating the core feasibility of the approach.
  • Offloading operations like increment and binary search to storage reduces I/O overhead by minimizing data transfer, with performance improvements observed in microbenchmarks.
  • eBPF’s built-in verifier ensures safe execution, preventing unsafe memory access and infinite loops, which is critical in a multi-tenant environment.
  • The approach achieves high performance through eBPF’s JIT compilation, enabling near-native execution speed on storage devices.
  • The current eBPF model is limited in expressiveness for complex data processing workloads, suggesting a need for enhancements like high-order functions or richer system calls.
  • The work identifies open challenges in integrating remote eBPF execution with production storage protocols like NVMoF and higher-level storage stacks such as block devices and file systems.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.