Adaptive Cache Replacement with Dynamic Leader Set Scaling

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current cache replacement policies are not adaptive and fail to dynamically adjust to changing access patterns, leading to inefficiencies in cache management, as they either assume temporal locality or do not adapt to changes in the working set, resulting in suboptimal performance.

Innovation Solution

A system that dynamically scales the number of cache sets designated as leader sets, associating them with different replacement policies, and monitors their effectiveness to predict and adapt cache line replacements, switching between policies based on performance metrics to optimize cache management.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If a static cache replacement policy (e.g., LRU, LIP, bi-modal, RRIP) is used, then the cache management is simple and predictable, but the cache performance is suboptimal when access patterns change

Engineering Contradiction:
Improvecache performanceVSAvoidcache management complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The patent implements dynamic cache replacement by transitioning from static policies to a system that monitors access patterns and adapts replacement decisions in real-time. The cache replacement unit dynamically selects between different replacement policies (LRU, LIP, bi-modal, RRIP) based on current working set characteristics, allowing the system to optimize performance for different access patterns while managing complexity through automated adaptation.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system changes the parameter of replacement policy selection based on detected access patterns. By monitoring whether the working set exhibits temporal locality or spatial locality, the system dynamically adjusts which replacement policy is applied, changing the behavioral parameters of cache management to match current workload characteristics rather than using a fixed policy.

Inventive Principle:
Principle #35Parameter changes

2Productivity

If the cache size is increased to reduce cache misses, then cache hit rate improves, but the cost and memory usage increase

Engineering Contradiction:
Improvecache hit rateVSAvoidcache memory size
Core Design Contradiction:
ProductivityVSQuantity of substance

Solution Approach 1:

Instead of changing the physical size of the cache, the system changes the behavioral parameters of cache management by dynamically selecting replacement policies. This allows the same cache memory to operate more efficiently by adapting its replacement strategy to match current access patterns, effectively increasing cache hit rate without increasing physical memory capacity.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The system implements feedback mechanisms that monitor cache performance and access patterns, using this information to dynamically adjust replacement decisions. The cache replacement unit continuously evaluates which policy is performing best and adjusts accordingly, creating a closed-loop system that optimizes cache utilization without requiring additional memory resources.

Inventive Principle:
Principle #23Feedback

3Adaptability or versatility

If multiple replacement policies are maintained simultaneously for all cache sets, then adaptability to different access patterns improves, but the complexity of cache management increases

Engineering Contradiction:
Improveadaptability to access patternsVSAvoidcache management complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent applies local quality by allowing different replacement policies to be applied to different cache sets or regions based on their specific access patterns. Rather than forcing a single global policy or maintaining all policies uniformly across the entire cache, the system selectively applies appropriate policies to specific cache sets, achieving adaptability while managing complexity through localized policy application.

Inventive Principle:
Principle #3Local quality

Solution Approach 2:

The cache is segmented into different regions or sets that can be managed with different replacement policies. The cache replacement unit divides the cache management task by applying LRU, LIP, bi-modal, or RRIP policies to specific segments based on their access pattern characteristics, allowing adaptability without requiring the entire cache to manage all policies simultaneously.

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS10360160B2System and method for adaptive cache replacement with dynamic scaling of leader sets
Publication Date: 2019.07.23 SAMSUNG ELECTRONICS CO LTD
  • US10360160B2 patent drawing
  • US10360160B2 patent drawing
  • US10360160B2 patent drawing

AI summary

According to one general aspect, an apparatus may include a cache and a cache replacement unit. The cache may be arranged in a plurality of cache sets each configured to store data. A number of cache sets are designated as leader cache sets and each leader cache set is associated with a first replacement policy or a second replacement policy. The cache replacement unit may be configured to monitor an effectiveness of the first replacement policy and, at least, the second replacement policy to accurately predict cache line replacement. The cache replacement unit may be configured to select the first replacement policy or the second replacement policy to be a dominant replacement policy. The cache replacement unit may be configured to dynamically scale the number of cache sets that are designated as leader cache sets based at least in part upon the effectiveness of the dominant replacement policy.