HoLiSwap: Reducing Wire Energy in L1 Caches

Yatish Turakhia, Subhasis Das, Tor M. Aamodt, William J. Dally

TL;DR

This paper introduces HoLiSwap, a novel cache organization that reduces energy consumption in L1 caches by dynamically migrating frequently accessed ("hot") cache lines to the cache way physically closest to the processor. This approach significantly cuts down on wire energy, a major contributor to overall cache power, with minimal impact on performance and no increase in miss rates.

What Problem Does This Paper Address?

Modern processors are increasingly bottlenecked by data movement, especially within the memory hierarchy. L1 caches, the fastest and closest memory to the CPU, consume a substantial portion of this energy, with wire energy being a significant fraction of the total L1 cache energy. The challenge is to reduce this wire energy without negatively impacting cache performance (miss rates, latency) or increasing the chip's area. Existing solutions often focus on reducing SRAM access energy, but this paper targets the often-overlooked wire energy component.

Methods

HoLiSwap is built on two key observations:

  1. Hot Lines: A very small percentage of cache lines (<3%) account for a large majority (>60%) of L1 cache accesses.
  2. Wire Energy Asymmetry: The energy required to access data from the cache way nearest to the processor is significantly lower (up to 6x) than from the farthest way.

HoLiSwap leverages these observations by dynamically identifying "hot" cache lines using simple counters (epoch and hit counters) and migrating them to the nearest physical cache way (Way 0). To manage counter overhead, it uses logarithmic counters. The paper also discusses how HoLiSwap can simplify way-prediction mechanisms by allowing a static prediction of Way 0, as it becomes the most frequently accessed way.

Datasets

The paper evaluates HoLiSwap using the Moby benchmark suite, which consists of 10 Android applications representing popular mobile workloads. They simulate 10 million instructions for each benchmark.

Key Insights and Ideas

  • The Power of "Hot" Lines: The paper quantifies the significant impact of a small set of frequently accessed cache lines, highlighting them as a prime target for optimization.
  • Exploiting Physical Proximity: The substantial energy difference between accessing cache ways based on their physical distance from the processor is a crucial insight that HoLiSwap effectively exploits.
  • Wire Energy as a Target: By focusing on wire energy, HoLiSwap addresses a significant, yet often less-explored, component of L1 cache power consumption.
  • Simplifying Way Prediction: HoLiSwap's migration strategy naturally leads to a simplified and efficient static way-predictor, reducing implementation complexity.

Key Results

  • HoLiSwap achieves up to 44% improvement in L1 cache wire energy and 1.82% saving in overall system energy.
  • These energy savings are achieved with no impact on the cache miss rate and a negligible performance drop (0.13%).
  • The method is effective across different L1-D cache designs, including sequential and parallel lookup mechanisms, and can be combined with filter caches or way prediction.
  • For the SEQUENTIAL design, HoLiSwap saves 41.1% in the wire component. For PARALLEL, it saves 44.0% in the wire component, leading to a 12.1% overall energy improvement.
  • The static way-predictor used with HoLiSwap achieves an average accuracy of 67.8%, which is lower than a more complex baseline predictor but offers significant energy savings with lower implementation cost.

Limitations and Future Work

  • Performance Degradation: While generally negligible, a small performance degradation (<0.13%) is observed due to cache port blocking during swaps. This can be higher in specific configurations (e.g., PREDICTION design with 0.3% drop).
  • Epoch Length Sensitivity: The paper shows that the effectiveness of HoLiSwap is sensitive to the epoch length (E). Too small an E leads to redundant swaps, while too large an E delays hot line identification. The authors found E=256 to offer the best energy-delay product.
  • Cache Size Impact: Energy savings from HoLiSwap decrease with smaller cache sizes (e.g., 9.5% for 16KB vs. 27.8% for 32KB) due to reduced wire energy variation between ways. Conversely, larger caches with greater variation (e.g., 64KB) show increased savings (34.3%).
  • Future Work: The paper suggests that HoLiSwap can be combined with other techniques like filter caches or way prediction, and its effectiveness on L1-I caches is also explored, indicating potential for broader application. The authors also note that the out-of-order execution in processors helps hide some of the memory latency introduced by swaps.

Summary updated

Abstract

This paper describes HoLiSwap a method to reduce L1 cache wire energy, a significant fraction of total cache energy, by swapping hot lines to the cache way nearest to the processor. We observe that (i) a small fraction (<3%) of cache lines (hot lines) serve over 60% of the L1 cache accesses and (ii) the difference in wire energy between the nearest and farthest cache subarray can be over 6$\times$. Our method exploits this difference in wire energy to dynamically identify hot lines and swap them to the nearest physical way in a set-associative L1 cache. This provides up to 44% improvement in the wire energy (1.82% saving in overall system energy) with no impact on the cache miss rate and 0.13% performance drop. We also show that HoLiSwap can simplify way-prediction.
BibTeX
@misc{turakhia2017holiswap,
  author = {Yatish Turakhia and Subhasis Das and Tor M. Aamodt and William J. Dally},
  title = {{HoLiSwap: Reducing Wire Energy in L1 Caches}},
  year = {2017},
  eprint = {1701.03878},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1701.03878},
}

Loading related content...

Figure