Set-Associative Cache Replacement for Equal-Priority Victim Selection

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing cache replacement policies in set associative caches often lead to performance limitations due to cache access conflicts when selecting victim cache entries, particularly in workloads where multiple cache entries have equal priority for eviction, leading to parallel accesses targeting the same cache way and reducing overall performance.

Innovation Solution

Implement a set-specific selection criterion for selecting victim cache entries based on a preferred way that differs between sets, using cache replacement selection values to favor eviction from specific ways within each set, reducing the likelihood of cache conflicts and enabling parallel access.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If a conventional cache replacement policy is used to select victim cache entries, then the cache can maintain simple replacement logic, but cache access conflicts increase and performance deteriorates

Engineering Contradiction:
Improvecache performanceVSAvoidreplacement policy complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent applies local quality by assigning different preferred ways to different sets within the cache. Each set has a designated preferred way that is favored during victim selection, creating localized differentiation without requiring complex global policies. This resolves the contradiction by introducing targeted complexity only where needed (in set-specific preferred way assignment) while maintaining simplicity in the overall replacement mechanism.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent changes the parameter of victim selection criteria by introducing set-specific preferred way indicators. Instead of using a uniform replacement policy across all cache sets, the system modifies the selection parameters to favor specific ways within each set, thereby reducing conflicts and improving performance without requiring complete policy redesign.

Inventive Principle:
Principle #35Parameter changes

2Productivity

If multiple cache entries with equal priority are selected for eviction, then the replacement policy remains simple, but parallel access conflicts increase

Engineering Contradiction:
Improveparallel access efficiencyVSAvoidvictim selection simplicity
Core Design Contradiction:
ProductivityVSEase of operation

Solution Approach 1:

The patent resolves this contradiction by introducing local differentiation through set-specific preferred ways. When multiple entries have equal priority, the system doesn't treat them uniformly but instead applies local quality preferences within each set to break ties, enabling parallel accesses to target different ways and avoiding conflicts while maintaining simple equal-priority handling.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent introduces asymmetry by designating specific ways as preferred for each set, creating an asymmetric selection bias that breaks symmetry among equal-priority entries. This asymmetric preference structure enables parallel accesses to naturally distribute across different ways, improving efficiency without complicating the victim selection process.

Inventive Principle:
Principle #4Asymmetry

3Productivity

If the same cache way is targeted for multiple parallel accesses, then the replacement policy is straightforward, but access conflicts reduce system performance

Engineering Contradiction:
Improvesystem efficiencyVSAvoidaccess conflicts
Core Design Contradiction:
ProductivityVSObject-affected harmful factors

Solution Approach 1:

The patent addresses this contradiction by implementing local quality through set-specific preferred way designations. This creates localized preferences that guide parallel accesses away from conflicting ways within each set, thereby reducing access conflicts and improving system efficiency without requiring complex conflict resolution mechanisms.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The patent applies preliminary action by pre-establishing preferred way designations for each set before cache replacements occur. This preliminary configuration guides the victim selection process to favor ways that are less likely to cause conflicts during parallel accesses, proactively preventing conflicts rather than reacting to them.

Inventive Principle:
Principle #10Preliminary action

Data Source

PatentUS20260017209A1Cache replacement control
Publication Date: 2026.01.15 ARM LTD
  • US20260017209A1 patent drawing
  • US20260017209A1 patent drawing
  • US20260017209A1 patent drawing

AI summary

An apparatus comprises a set associative cache, and cache replacement control circuitry to select, for a given set of the set associative cache, a victim cache entry to be replaced with a new cache entry. The victim cache entry is selected based on cache replacement selection values indicative of a relative priority for selection as the victim cache entry. In response to identifying a plurality of highest victim priority cache entries having equal cache replacement selection values indicative of equal highest priority to be selected as the victim cache entry, the cache replacement control circuitry is configured to select the victim cache entry based on a set-specific selection criterion which favours selection of a victim cache entry belonging to a preferred way for the given set, wherein the preferred way differs between at least two sets of the set associative cache.