Skip to main content
QUICK REVIEW

[Paper Review] Farview: Disaggregated Memory with Operator Off-loading for Database Engines

Dario Korolija, Dimitrios Koutsoukos|arXiv (Cornell University)|Jun 13, 2021
Cloud Computing and Resource ManagementComputer Science6 citations
TL;DR

Farview proposes a disaggregated memory system for database engines that offloads query operators like selection, projection, and aggregation to an FPGA-based smart NIC, enabling in-memory processing over network-attached DRAM. It achieves performance comparable to local memory caching while reducing data movement and DRAM footprint, outperforming CPU-based baselines in key workloads including high-selectivity and aggregation queries.

ABSTRACT

Cloud deployments disaggregate storage from compute, providing more flexibility to both the storage and compute layers. In this paper, we explore disaggregation by taking it one step further and applying it to memory (DRAM). Disaggregated memory uses network attached DRAM as a way to decouple memory from CPU. In the context of databases, such a design offers significant advantages in terms of making a larger memory capacity available as a central pool to a collection of smaller processing nodes. To explore these possibilities, we have implemented Farview, a disaggregated memory solution for databases, operating as a remote buffer cache with operator offloading capabilities. Farview is implemented as an FPGA-based smart NIC making DRAM available as a disaggregated, network attached memory module capable of performing data processing at line rate over data streams to/from disaggregated memory. Farview supports query offloading using operators such as selection, projection, aggregation, regular expression matching and encryption. In this paper we focus on analytical queries and demonstrate the viability of the idea through an extensive experimental evaluation of Farview under different workloads. Farview is competitive with a local buffer cache solution for all the workloads and outperforms it in a number of cases, proving that a smart disaggregated memory can be a viable alternative for databases deployed in cloud environments.

Motivation & Objective

  • To address the growing inefficiency of data movement and DRAM capacity limits in analytical databases.
  • To explore disaggregated memory as a scalable alternative to local buffer caches in cloud-based database systems.
  • To reduce CPU overhead and memory footprint by offloading filtering and processing operations to remote, network-attached DRAM.
  • To evaluate whether a smart, programmable memory node can match or exceed the performance of local memory caching.
  • To enable secure, low-latency processing of data streams through in-situ encryption and decryption on the FPGA.

Proposed method

  • Farview uses an FPGA-based smart NIC to expose network-attached DRAM as a remote buffer cache with processing capabilities.
  • It supports operator offloading for selection, projection, aggregation, regular expression matching, and AES-128 encryption/decryption in counter mode.
  • The system leverages RDMA for low-latency, high-throughput data transfers between compute nodes and the disaggregated memory.
  • Operators are executed in-line on the FPGA at wire speed, minimizing data movement to the CPU.
  • The system supports dynamic region allocation for multiple clients, enabling spatial parallelism and fair bandwidth sharing.
  • Encryption and decryption are integrated into the data path with minimal performance overhead, fully hidden by line-rate processing.

Experimental results

Research questions

  • RQ1Can a smart, network-attached memory node with in-situ processing capabilities match the performance of local memory caching in database workloads?
  • RQ2To what extent can operator offloading to disaggregated memory reduce data movement and CPU overhead in analytical queries?
  • RQ3How does the system perform under concurrent access from multiple clients, and does it scale efficiently?
  • RQ4Can secure data processing (e.g., encryption/decryption) be efficiently integrated into the memory processing pipeline without performance penalty?
  • RQ5What is the performance impact of offloading complex operators like aggregation and selection to remote memory?

Key findings

  • Farview achieves performance competitive with local buffer cache across all evaluated workloads, demonstrating that disaggregated memory with processing can be a viable alternative.
  • For high-selectivity queries like TPC-H Q6, Farview significantly reduces data movement by filtering data before it reaches the CPU.
  • In aggregation workloads (e.g., GROUP BY), Farview reduces the amount of data transferred to the CPU by processing the aggregation directly in memory.
  • The FPGA-based encryption/decryption pipeline incurs no measurable performance penalty, with throughput matching raw RDMA reads.
  • With multiple clients, Farview outperforms CPU-based baselines due to spatial parallelism and fair bandwidth sharing across dynamic regions.
  • Response times for decryption are significantly lower than in CPU-based baselines, especially under cold cache conditions, due to the FPGA’s parallel AES implementation.

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.