Enhancing Oblivious RAM Performance Using Dynamic Prefetching

Xiangyao Yu, Ling Ren, Christopher W. Fletcher, Albert Kwon, Marten van Dijk, Srinivas DevadasIACR ePrint 2014

Introduction

In the realm of secure computing, encryption is a standard tool for protecting data content. However, encryption alone is insufficient to prevent information leakage through memory access patterns. An adversary observing which memory addresses are accessed can often infer sensitive details about a program's control flow or private data. Oblivious RAM (ORAM) serves as the definitive defense against such side-channel attacks by shuffling and re-mapping data so that every access appears as a random set of locations to an external observer.

Despite its security benefits, ORAM introduces significant performance overhead, often running 30x to 100x slower than standard DRAM. This slowdown is primarily due to ORAM being "bandwidth-bound." Unlike standard DRAM, which has spare bandwidth to accommodate traditional prefetching, ORAM's inherent redundancy saturates the memory bus. This paper introduces Dynamic Super Blocks, a novel prefetching technique designed to exploit data locality within the randomized constraints of ORAM.

Methodology: Path ORAM and Dynamic Super Blocks

The proposed system builds upon Path ORAM, a common ORAM construction where data is organized in a binary tree. In Path ORAM, every logical memory access requires reading and writing an entire physical path from the root to a specific leaf.

Path ORAM architecture showing the binary tree structure in the untrusted domain and the ORAM controller in the trusted domain.

The core innovation is the Dynamic Super Block scheme. Rather than fetching a single 64-byte block per ORAM path access, the system groups multiple adjacent logical blocks into a "super block" and maps them to the same leaf in the ORAM tree. This allows a single, expensive ORAM operation to retrieve multiple useful blocks simultaneously.

Illustration of super block sizes (sbsize), showing how multiple adjacent memory blocks (0x00 to 0x07) can be grouped into units of 2, 4, or 8.

Key features of this approach include:

  • Dynamic Merging & Breaking: The system uses a per-block counter-based scheme (1-bit merge and break counters) to track spatial locality at runtime, deciding which blocks to group based on actual program behavior.
  • Adaptive Thresholding: To manage the internal "stash" and prevent overflows, a heuristic formula adjusts merging behavior based on the current ORAM access rate and background eviction frequency.
  • Hardware Integration: The logic is contained entirely within the trusted ORAM controller, ensuring that the untrusted memory domain only sees standard, indistinguishable ORAM traffic.

Evaluation and Results

The researchers evaluated the design using the Graphite multicore simulator against the Splash-2 Benchmarks (including fft, radix, ocean, and cholesky) and custom synthetic benchmarks designed to test locality and phase changes.

The results demonstrate significant performance improvements:

  • Performance Gains: The dynamic super block scheme improved performance by an average of 25.5% over baseline ORAM when timing protection was enabled, with peak improvements reaching 49.4% for memory-intensive tasks.
  • Bandwidth Efficiency: The total number of ORAM accesses was reduced by approximately 18.4%, leading to lower energy consumption.
  • Low Overhead: The hardware implementation is highly efficient, requiring less than 0.8% additional storage for metadata and counters.
  • Stability: Unlike static grouping methods, the dynamic approach maintained performance even in applications with poor data locality, never performing significantly worse than the baseline.

Key Insights and Future Work

A major takeaway from this research is that the perceived dichotomy between data locality and obliviousness is false. While ORAM must appear random to an external observer, the internal mapping can be optimized to maximize the utility of every high-latency path access. By fetching super blocks, the system effectively gains "bonus" data for the same bandwidth cost as a single block.

Future work may address current limitations, such as extending the system to support "strided" prefetching (non-adjacent blocks) and developing more complex, provably optimal algorithms for adaptive thresholding to further optimize stash management.

Summary updated

BibTeX
@article{yu2014enhancing,
  author = {Xiangyao Yu and Ling Ren and Christopher W. Fletcher and Albert Kwon and Marten van Dijk and Srinivas Devadas},
  title = {{Enhancing Oblivious RAM Performance Using Dynamic Prefetching}},
  journal = {IACR Cryptol. ePrint Arch.},
  year = {2014},
}
Figure