NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Annex cache: a cache assist to implement selective caching

Lizy Kurian John, Tao Li, Akila SubramanianMicroprocess. Microsystems 1999

TL;DR

This paper introduces the "annex cache," a novel cache assist designed to improve the performance of direct-mapped caches by implementing selective caching. By acting as a "qualifying station" for data, the annex cache reduces conflict misses and unnecessary swaps, leading to significantly better performance than conventional caches and comparable results to victim caches.

What Problem Does This Paper Address?

Modern high-performance processors are pushing clock speeds to gigahertz levels, making it challenging to design large, highly associative caches that can keep up with the processor's access times. Direct-mapped caches offer fast hit times but suffer from a high number of conflict misses due to their lack of associativity. Conventional caching mechanisms also tend to be "blind" to data locality, forcing all references through the cache, which can lead to frequently used data being evicted by rarely used data, thus reducing overall cache effectiveness. This paper addresses the problem of improving direct-mapped cache performance by selectively caching data based on demonstrated locality, thereby reducing conflict misses and improving hit rates.

Methods

The core innovation is the "annex cache," which functions as a secondary, on-chip cache alongside the primary direct-mapped cache. Unlike traditional victim caches, the annex cache allows direct access to its entries, bypassing the main cache. The key mechanism is a "selective caching" or "cache exclusion" scheme:

  • Entry Qualification: Data first enters the annex cache. It only gets swapped into the main cache if it has been referenced twice after its conflicting main cache block was last referenced. This "inertia" ensures that only data demonstrating locality gets promoted to the main cache.
  • Bypassing: If a reference hits in the annex cache and the conflicting main cache entry has low priority, or if the annex cache entry itself has low priority, the data can be directly fed to the processor, bypassing the main cache.
  • Priority Bit: Each cache block has a priority bit to manage the promotion and eviction process.
  • Reduced Swapping: The annex cache aims to eliminate continuous swapping between the main and assist caches, which can be a performance bottleneck in victim caches. Swaps only occur when an annex cache entry proves its worth through repeated access.

Datasets

The paper uses two types of datasets for evaluation:

  • Synthetic Reference Patterns: A set of simple, illustrative reference patterns (e.g., (AB)¹⁰, (A¹⁰B¹⁰)¹⁰) are used to demonstrate the theoretical behavior of the annex cache compared to conventional and victim caches.
  • SPEC Benchmarks: Extensive trace-driven simulations were performed using programs from the SPEC92 suite (e.g., compress, espresso, doduc, ear, alvinn, tomcatv). Traces were generated using the pixie tool on a DEC5000 workstation. An "interleaved" trace was also created to simulate multiprogramming environments.

Key Insights and Ideas

  • Locality as a Prerequisite: The fundamental idea is that data should earn its place in the main cache by demonstrating locality, rather than being blindly admitted. The annex cache acts as a gatekeeper for this qualification process.
  • Reducing "Blind" Evictions: By preventing low-usage items from causing conflict misses in the main cache, the annex cache significantly reduces unnecessary evictions and subsequent misses.
  • The Cost of Swapping: The paper highlights that while victim caches can reduce misses, the frequent swapping between the main and victim caches can incur significant overhead, especially if the data path isn't wide enough. The annex cache's design aims to minimize these swaps.
  • Instruction Cache Advantage: The authors hypothesize and demonstrate that selective caching is particularly beneficial for instruction caches, where there are often many more conflicting items than a victim cache can effectively manage.
  • Inclusion Property Violation: Like victim caches, the annex cache violates the inclusion property (where data present in a lower-level cache must also be present in a higher-level cache). This is a trade-off for performance gains.

Key Results

  • Superior to Conventional Caches: Annex caches consistently outperform conventional direct-mapped caches across various benchmarks and cache sizes.
  • Comparable to Victim Caches: The annex cache performs comparably to victim caches, and in some cases, it is significantly better. For instance, in synthetic sequences, the annex cache achieves similar miss rates to victim caches but with zero swaps, leading to better overall access times.
  • Reduced Swaps: A key advantage is the drastic reduction in swaps. For the (AB)¹⁰ sequence, annex caches achieve 0% swaps compared to 90% for victim caches, while maintaining the same miss rate.
  • Performance Improvement: Figures 3, 5, and 6 show that annex caches (especially with 16-block sizes) offer substantial improvements in access time and miss rates over direct-mapped and even 2-way set-associative caches.
  • Cache Size Matters: The effectiveness of the annex cache is more pronounced at lower cache sizes. For smaller annex cache sizes (4 blocks), performance can degrade, especially in larger main caches, due to conflicts within the annex cache itself.

Limitations and Future Work

  • Small Annex Cache Performance: The paper notes that the performance of annex caches can degrade when the annex cache size is very small (e.g., 4 blocks), particularly in larger main caches. This is attributed to conflicts within the annex cache itself, preventing references from reaching the main cache.
  • No Dramatic Improvement Over Victim Caches: While annex caches are generally better or comparable, the improvement over victim caches isn't always dramatic, especially in data caches.
  • Future Work: The authors suggest that combining cache exclusion with victim caching is a promising avenue for performance improvement. Further research could explore optimal annex cache sizes and configurations for different workloads. The paper also implies that the "inertia" mechanism could be further tuned.

Summary updated

BibTeX
@article{john1999annex,
  author = {Lizy Kurian John and Tao Li and Akila Subramanian},
  title = {{Annex cache: a cache assist to implement selective caching}},
  journal = {Microprocess. Microsystems},
  year = {1999},
  doi = {10.1016/s0141-9331(99)00048-4},
}

Loading related content...

Figure