[Paper Review] Using Cache-coloring to Mitigate Inter-set Write Variation in Non-volatile Caches
This paper proposes a software-controlled cache-coloring technique to mitigate inter-set write variation in non-volatile last-level caches (LLCs), using dynamic remapping of physical page groups to cache sets based on write traffic profiling. Simulations show a 4.20× average improvement in cache lifetime with minimal performance overhead, making STT-RAM and similar non-volatile caches viable for large-scale, energy-efficient processors.
In recent years, researchers have explored use of non-volatile devices such as STT-RAM (spin torque transfer RAM) for designing on-chip caches, since they provide high density and consume low leakage power. A common limitation of all non-volatile devices is their limited write endurance. Further, since existing cache management policies are write-variation unaware, excessive writes to a few blocks may lead to a quick failure of the whole cache. We propose an architectural technique for wear-leveling of non-volatile last level caches (LLCs). Our technique uses cache-coloring approach which adds a software-controlled mapping layer between groups of physical pages and cache sets. Periodically the mapping is altered to ensure that write-traffic can be spread uniformly to different sets of the cache to achieve wear-leveling. Simulations performed with an x86-64 simulator and SPEC2006 benchmarks show that our technique reduces the worst-case writes to cache blocks and thus improves the cache lifetime by 4.07X.
Motivation & Objective
- To address the limited write endurance of non-volatile memory (NVM) devices like STT-RAM in on-chip last-level caches (LLCs).
- To mitigate inter-set write non-uniformity, which causes premature failure of heavily written cache sets.
- To design a lightweight, software-controlled wear-leveling technique suitable for real processors with minimal hardware overhead.
- To improve cache lifetime without significantly degrading performance or energy efficiency.
Proposed method
- Introduces a cache-coloring abstraction that maps groups of physical pages (memory regions) to cache sets using a software-controlled mapping layer.
- Periodically profiles write traffic per cache color (group of sets) to identify the most and least utilized colors.
- Dynamically remaps a subset of colors to redistribute write traffic toward underutilized cache sets, achieving wear-leveling.
- Uses coarse-grain remapping at the color level (e.g., 64 colors in a 16-way, 4MB cache) rather than per-set, reducing overhead.
- Employs dynamic profiling instead of offline analysis, enabling adaptability to varying workloads.
- Can be integrated with other techniques targeting intra-set write non-uniformity or write reduction.
Experimental results
Research questions
- RQ1Can dynamic cache-coloring remapping effectively reduce inter-set write variation in non-volatile LLCs?
- RQ2How much improvement in cache lifetime can be achieved using this wear-leveling technique?
- RQ3What is the performance and energy overhead of the proposed technique in real-world workloads?
- RQ4Can the technique be implemented with minimal hardware support and remain effective across diverse workloads?
- RQ5How does the technique perform under varying write intensities and access patterns?
Key findings
- The proposed technique improves average cache lifetime by 4.20× across SPEC2006 benchmarks, with a maximum improvement of 20.3× for the povray workload.
- The average performance loss is only 4% (relative performance of 0.96×), indicating minimal impact on application execution.
- Energy consumption increases by an average of 9.42%, but this is considered acceptable given the critical improvement in endurance.
- Workloads with high standard deviation in write access distribution (e.g., povray, gem5) show the greatest lifetime gains, confirming the method’s effectiveness under high write variation.
- The technique is most effective when inter-set write variation is high; applications with already uniform write patterns show limited improvement.
- The method is scalable and compatible with other wear-leveling and write-reduction techniques, enabling synergistic lifetime extension.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.