Skip to main content
QUICK REVIEW

[Paper Review] Banshee: Bandwidth-Efficient DRAM Caching Via Software/Hardware Cooperation

Xiangyao Yu, Christopher J. Hughes|arXiv (Cornell University)|Apr 10, 2017
Parallel Computing and Optimization TechniquesComputer Science29 references8 citations
TL;DR

Banshee is a software/hardware co-designed DRAM cache that optimizes bandwidth efficiency for in-package and off-package DRAM by eliminating tag lookup overhead via PTE/TLB-based page mapping and employing a bandwidth-aware, sampled frequency-based replacement policy. It reduces in-package DRAM traffic by 35.8% and improves performance by 15.0% over the best prior design (Alloy Cache), while maintaining low latency and supporting large 2 MB pages.

ABSTRACT

Putting the DRAM on the same package with a processor enables several times higher memory bandwidth than conventional off-package DRAM. Yet, the latency of in-package DRAM is not appreciably lower than that of off-package DRAM. A promising use of in-package DRAM is as a large cache. Unfortunately, most previous DRAM cache designs mainly optimize for hit latency and do not consider off-chip bandwidth efficiency as a first-class design constraint. Hence, as we show in this paper, these designs are suboptimal for use with in-package DRAM. We propose a new DRAM cache design, Banshee, that optimizes for both in- and off-package DRAM bandwidth efficiency without degrading access latency. The key ideas are to eliminate the in-package DRAM bandwidth overheads due to costly tag accesses through virtual memory mechanism and to incorporate a bandwidth-aware frequency-based replacement policy that is biased to reduce unnecessary traffic to off-package DRAM. Our extensive evaluation shows that Banshee provides significant performance improvement and traffic reduction over state-of-the-art latency-optimized DRAM cache designs.

Motivation & Objective

  • To address the bandwidth inefficiency of existing DRAM cache designs that prioritize low latency over off-chip and in-package DRAM bandwidth usage.
  • To eliminate costly tag access and metadata update traffic in in-package DRAM caches through PTE/TLB-based page mapping.
  • To design a bandwidth-efficient replacement policy that minimizes unnecessary data and metadata movement to both in-package and off-package DRAM.
  • To simplify TLB coherence and enable efficient large-page support (2 MB) through a lazy, batch-update mechanism with a hardware Tag Buffer.
  • To achieve high bandwidth efficiency without sacrificing access latency, especially in bandwidth-constrained, memory-bound workloads.

Proposed method

  • Uses PTEs and TLBs to store DRAM cache presence information, eliminating the need for separate tag storage and reducing tag lookup traffic.
  • Employs a hardware-managed frequency-based replacement (FBR) policy that caches only hot pages to reduce replacement traffic.
  • Applies sampling to frequency counter updates—reading/writing only a fraction of memory accesses—to minimize bandwidth overhead while preserving prediction accuracy.
  • Introduces a Tag Buffer at the memory controller to track real-time mapping changes and trigger batch updates to page tables and TLBs only when the buffer is full.
  • Uses a lazy TLB coherence mechanism that defers page table and TLB updates until buffer overflow, amortizing the cost and simplifying consistency.
  • Supports 2 MB pages efficiently by reducing replacement overhead through the bandwidth-aware FBR policy and sampling.

Experimental results

Research questions

  • RQ1Can a DRAM cache design achieve high bandwidth efficiency for both in-package and off-package DRAM without degrading access latency?
  • RQ2How can tag lookup and metadata update traffic be eliminated or minimized in a page-granularity DRAM cache?
  • RQ3Can a frequency-based replacement policy be made bandwidth-efficient through sampling and hardware support?
  • RQ4How can TLB coherence be simplified in a PTE/TLB-based DRAM cache to enable efficient replacement without incurring high overhead?
  • RQ5To what extent can large pages (2 MB) be efficiently supported in a bandwidth-optimized DRAM cache?

Key findings

  • Banshee reduces in-package DRAM traffic by 35.8% compared to the best prior design (Alloy Cache), significantly improving bandwidth efficiency.
  • Banshee achieves a 15.0% performance improvement over Alloy Cache, the best-performing baseline, under bandwidth-constrained conditions.
  • Sampling frequency counters at a rate of 10% or less increases miss rate by only a small margin while making counter update traffic negligible.
  • The 4-way associative design of Banshee achieves 30.9% miss rate, with diminishing returns beyond four ways, justifying it as the default configuration.
  • Banshee enables efficient 2 MB page support, overcoming the high replacement overhead that plagues traditional page-based cache designs.
  • The lazy TLB coherence mechanism with hardware Tag Buffer reduces the cost of maintaining consistency, enabling scalable and efficient replacement.

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.