Skip to main content
QUICK REVIEW

[Paper Review] Enabling Efficient Dynamic Resizing of Large DRAM Caches via A Hardware Consistent Hashing Mechanism

Kevin K. Chang, Gabriel H. Loh|arXiv (Cornell University)|Feb 1, 2016
Caching and Content DeliveryComputer Science32 references5 citations
TL;DR

This paper proposes CRUNCH, a hardware-efficient data remapping scheme inspired by consistent hashing to enable dynamic resizing of large die-stacked DRAM caches. By remapping only sets from powered-down banks to active ones, CRUNCH achieves low transition latency and high load balancing, enabling significant energy savings without performance degradation during cache resizing.

ABSTRACT

Die-stacked DRAM has been proposed for use as a large, high-bandwidth, last-level cache with hundreds or thousands of megabytes of capacity. Not all workloads (or phases) can productively utilize this much cache space, however. Unfortunately, the unused (or under-used) cache continues to consume power due to leakage in the peripheral circuitry and periodic DRAM refresh. Dynamically adjusting the available DRAM cache capacity could largely eliminate this energy overhead. However, the current proposed DRAM cache organization introduces new challenges for dynamic cache resizing. The organization differs from a conventional SRAM cache organization because it places entire cache sets and their tags within a single bank to reduce on-chip area and power overhead. Hence, resizing a DRAM cache requires remapping sets from the powered-down banks to active banks. In this paper, we propose CRUNCH (Cache Resizing Using Native Consistent Hashing), a hardware data remapping scheme inspired by consistent hashing, an algorithm originally proposed to uniformly and dynamically distribute Internet traffic across a changing population of web servers. CRUNCH provides a load-balanced remapping of data from the powered-down banks alone to the active banks, without requiring sets from all banks to be remapped, unlike naive schemes to achieve load balancing. CRUNCH remaps only sets from the powered-down banks, so it achieves this load balancing with low bank power-up/down transition latencies. CRUNCH's combination of good load balancing and low transition latencies provides a substrate to enable efficient DRAM cache resizing.

Motivation & Objective

  • Address the challenge of remapping data from powered-down DRAM cache banks to active banks during dynamic cache resizing.
  • Overcome the performance and energy overheads of naive remapping schemes that either create hotspots or require full data migration.
  • Enable energy-efficient DRAM caching in power-constrained systems by dynamically adjusting active bank count based on workload demands.
  • Provide a low-latency, load-balanced solution for DRAM cache resizing that is practical for large, die-stacked cache architectures.
  • Introduce a novel hardware mechanism tailored to the unique organization of DRAM caches, where entire sets are mapped to single banks.

Proposed method

  • Adapt the consistent hashing algorithm—originally used for distributed web load balancing—to remap cache sets from powered-down banks to active banks in a load-balanced manner.
  • Map each cache set to a position on a virtual hash ring, where banks are also placed, ensuring that only sets from powered-down banks are remapped during resizing.
  • Use a native hardware consistent hashing mechanism to minimize remapping overhead and avoid re-mapping sets from active banks.
  • Implement a bank power-up/down transition protocol that triggers only the remapping of sets from inactive banks, reducing transition latency and energy.
  • Design a hardware-aware data structure to store hash ring mappings and bank state information directly in the cache controller.
  • Ensure backward compatibility with existing DRAM cache organizations by preserving the single-bank-per-set mapping while enabling dynamic bank management.

Experimental results

Research questions

  • RQ1How can data remapping in DRAM caches be made efficient during dynamic resizing when entire sets are mapped to single banks?
  • RQ2Can consistent hashing be adapted into a hardware mechanism to minimize remapping overhead and maintain load balance during cache resizing?
  • RQ3What is the trade-off between transition latency, energy consumption, and steady-state performance in DRAM cache resizing schemes?
  • RQ4How does CRUNCH compare to naive remapping schemes in terms of performance and energy efficiency during cache resizing?
  • RQ5Can a hardware-based consistent hashing mechanism achieve both low transition cost and good load balancing in large DRAM caches?

Key findings

  • CRUNCH achieves load balancing comparable to a full-data remapping scheme that uses modulo-k hashing, distributing sets uniformly across active banks.
  • CRUNCH reduces transition latency and energy by remapping only sets from powered-down banks, avoiding the need to migrate data from all banks.
  • The mechanism enables fast bank power-up/down transitions with minimal performance degradation during cache resizing.
  • CRUNCH outperforms both a low-overhead remapping scheme (which creates hotspots) and a load-balanced scheme (which incurs high migration cost), achieving the best of both worlds.
  • The proposed scheme is practical for large die-stacked DRAM caches and enables significant energy savings by dynamically reducing active bank count during underutilized workloads.
  • By avoiding full cache reorganization, CRUNCH maintains high system performance in steady-state operation even after multiple resizing events.

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.