A Cache Energy Optimization Technique for STT-RAM Last Level Cache

Sparsh Mittal · DOI

TL;DR

This paper introduces SMART, a dynamic cache reconfiguration technique for STT-RAM last-level caches (LLCs). By intelligently adjusting the active cache size, SMART significantly reduces energy consumption while minimizing performance loss, offering a promising solution for energy-efficient future processors.

What Problem Does This Paper Address?

As processors evolve, last-level caches (LLCs) are growing in size to compensate for memory bandwidth limitations. However, traditional SRAM-based caches consume a substantial amount of energy, primarily due to leakage. Emerging non-volatile memory technologies like STT-RAM offer lower leakage and higher density, making them attractive for LLCs. The challenge with STT-RAM lies in its higher write latency and energy consumption, which can negate its leakage benefits. This paper tackles the problem of optimizing STT-RAM LLCs for energy efficiency without sacrificing performance, addressing the trade-offs between leakage, write latency, and overall energy consumption.

Methods

The core of the proposed solution is the SMART (STT-RAM cache reconfiguration) technique. SMART dynamically adjusts the active cache size by reconfiguring the STT-RAM LLC. This is achieved through a cache coloring scheme, which divides the cache into multiple "bins" or colors. By mapping memory regions to a subset of these colors, the remaining cache colors can be effectively turned off, reducing leakage energy.

To decide which cache configuration to use, SMART employs dynamic profiling. It uses multiple profiling units to estimate the miss-rate for different cache sizes at runtime. This information, combined with a CPI stack technique to estimate execution time, allows SMART to predict the performance and energy consumption of various configurations.

A crucial aspect of SMART is its trading-off of STT-RAM's non-volatility for performance. The authors select a retention time of 1 second for STT-RAM, which offers a significantly lower write latency compared to the typical multi-year retention, while still avoiding the need for frequent DRAM-style refreshes.

The reconfiguration decisions are made periodically at the end of large intervals (e.g., 10 million instructions) to amortize the overhead of reconfiguration. The algorithm selects candidate configurations that meet certain criteria (e.g., minimum active colors to avoid thrashing, limited number of changes per interval) and then chooses the configuration that offers the minimum energy consumption while staying within a performance loss threshold (set at 2.5% in their experiments).

Datasets

The evaluation was performed using the SPEC2006 benchmark suite with reference inputs. The simulations were conducted using the Sniper x86-64 simulator. No new benchmarks were introduced; instead, existing, widely-used benchmarks were employed to assess the technique's effectiveness across a range of workloads.

Key Insights and Ideas

  • Dynamic Cache Sizing is Key: The paper highlights that applications have varying cache needs. Dynamically adjusting the cache size to match the current workload's requirements, rather than over-provisioning for the worst case, is a powerful strategy for energy saving.
  • STT-RAM's Sweet Spot: By carefully selecting the STT-RAM retention time (1 second in this case), the authors demonstrate a way to achieve a good balance between reduced write latency and avoiding refresh overhead, which is critical for practical STT-RAM LLCs.
  • Cache Coloring for Granularity: The cache coloring scheme provides a flexible and efficient way to reconfigure the cache, offering a larger granularity than set or way-based methods, making it easier to implement and manage.
  • Performance Threshold is Crucial: SMART's ability to maintain performance within a defined limit (2.5% loss) is vital. This ensures that energy savings don't come at the cost of a significant performance hit, making the technique practical for real-world systems.
  • Holistic Energy Consideration: The energy model considers both L2 cache and main memory energy, preventing a scenario where saving energy in one component leads to increased consumption in another.

Key Results

  • Compared to a baseline 4MB STT-RAM LLC, the SMART technique saves 21.8% energy while incurring only a 1.7% loss in performance.
  • Compared to a 1MB SRAM LLC (which occupies a similar chip area), the SMART technique offers significant energy savings (nearly 100% less energy than SRAM, with the STT-RAM baseline itself being much more energy-efficient than SRAM).
  • The average increase in MPKI (misses per kilo-instructions) for SMART is a mere 0.33, indicating minimal impact on off-chip traffic.
  • The ActiveRatio (fraction of cache active) for SMART averages 48.4%, meaning the technique effectively turns off nearly half the cache.
  • For some benchmarks, SMART achieves substantial energy savings, with nearly 50% energy saving for five benchmarks and over 30% for nine benchmarks.

Limitations and Future Work

  • Interval Length: The paper acknowledges that the energy saving algorithm runs after a large interval (10M instructions). While this amortizes overhead, it might mean missing opportunities for finer-grained energy savings within shorter phases of an application.
  • Parameter Tuning: The aggressiveness of SMART is controlled by parameters like $\lambda$, $Q$, and $C_{low}$. The paper discusses the trade-offs of tuning these parameters but doesn't explore an automated or adaptive way to find optimal values for diverse workloads.
  • Future Work: The authors suggest further evaluating SMART for different STT-RAM cache design parameters and synergistically integrating it with other energy-saving techniques to achieve even greater energy efficiency. They also aim to explore its application to L3 caches and other non-volatile memory technologies.

Summary updated

Abstract

Last level caches (LLCs) occupy a large chip-area and there size is expected to grow further to offset the limitations of memory bandwidth and speed. Due to high leakage consumption of SRAM device, caches designed with SRAM consume large amount of energy. To address this, use of emerging technologies such as spin torque transfer RAM (STT-RAM) has been investigated which have lower leakage power dissipation. However, the high write latency and power of it may lead to large energy consumption which present challenges in its use. In this report, we propose a cache reconfiguration based technique for improving the energy efficiency of STT-RAM based LLCs. Our technique dynamically adjusts the active cache size to reduce the cache leakage energy consumption with minimum performance loss. We choose a suitable value of STT-RAM retention time for avoiding refresh overhead and gaining performance. Single-core simulations have been performed using SPEC2006 benchmarks and Sniper x86-64 simulator. The results show that while, compared to an STT-RAM LLC of similar area, an SRAM LLC incurs nearly 100% loss in energy and 7.3% loss in performance; our technique using STT-RAM cache saves 21.8% energy and incurs only 1.7% loss in performance.
BibTeX
@misc{mittal2013cache,
  author = {Sparsh Mittal},
  title = {{A Cache Energy Optimization Technique for STT-RAM Last Level Cache}},
  year = {2013},
  eprint = {1312.2207},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1312.2207},
}
Figure