Introduction
As processor core counts continue to climb, the amount of Last-Level Cache (LLC) available to each core has hit a plateau. Data compression is a natural solution to squeeze more capacity out of existing hardware, but it has historically come with a frustrating trade-off: the "Tag Area Overhead."
In a new research study, architects from Kyungpook National University, IBM, and UBC propose Touché, a clever architectural framework that achieves near-ideal compression benefits with zero additional tag area.
The Problem: The "Tag Tax"
In a standard cache, every data block needs a "tag" (an address identifier) so the system knows what is stored there. If compression is used to fit multiple blocks into the space of one, the system suddenly requires multiple tags instead of one. Historically, architects have handled this in two flawed ways:
- Arbitrary Placement: Provisioning enough tags for the maximum possible number of compressed blocks. This can increase the tag array area by a staggering 3.7x.
- Superblocks: Restricting compression to neighboring (contiguous) memory blocks that share one tag. This saves space (1.35x area) but is inefficient if data is not perfectly contiguous.
The goal of Touché is to achieve the flexibility of arbitrary placement while maintaining the area footprint of a standard, uncompressed cache (1x area).
The Touché Framework
The Touché framework consists of three primary hardware components designed to mitigate metadata overhead:
- SIGN (Signature) Engine: Instead of storing a full 29-bit tag in the tag array, Touché stores a shortened 9-bit signature. This allows up to three signatures to fit into the space originally reserved for a single tag.
- TADA (Tag Appended Data): Because 9-bit signatures can have "collisions" (false positives), the full tag is appended to the compressed data itself in the data array. The system only checks this full tag if a signature match occurs.
- SMARK (Superblock Marker): To handle cases where four contiguous blocks can be compressed together, Touché uses a unique 16-bit marker in the tag entry to identify them, allowing even higher density.
Crucially, the authors include a Dynamic Touché policy. Accessing the data array to resolve signature collisions adds latency. Touché monitors average memory latency and only enables compression when the benefit of a higher hit rate outweighs the penalty of collision checks.
Methodology and Evaluation
The researchers evaluated Touché using a trace-based simulator (extending USIMM) against 29 memory-intensive SPEC CPU2006 workloads. They tested both individual benchmarks and twelve 4-threaded mixed workloads to simulate real-world multi-core pressure on the LLC.
Key Insights
- Repurposing States: Standard caches use "Valid" and "Dirty" bits. Touché repurposes the "impossible" state (invalid and dirty) as a flag to indicate that a line contains compressed data.
- Metadata Migration: By moving the "heavy" tag metadata into the empty space created by compression in the data array, the "light" tag array remains small.
- Orthogonality: Touché is a management framework, not a new compression algorithm. It works seamlessly with existing algorithms like Base-Delta-Immediate (BDI) or Frequent Pattern Compression (FPC).
Results
Touché achieved an average 12% speedup across workloads, coming remarkably close to the 13% speedup of an "ideal" (but physically impossible) zero-overhead scheme. The LLC hit rate increased by 6% points on average.
Notably, the gcc benchmark saw a massive 91% speedup. This occurred because Touché increased the effective cache capacity enough that gcc's entire working set fit in the LLC, reducing its miss rate from 45% to just 5%. Unlike previous state-of-the-art methods like YACC (which requires 1.35x tag area), Touché requires zero additional tag area compared to a baseline uncompressed cache.
Conclusion
Touché demonstrates that the "Tag Tax" is not an inevitability of cache compression. By intelligently managing signatures and migrating metadata into compressed data slots, it provides the performance of arbitrary block placement with the area efficiency of a standard cache.
Summary updated