Dynamic Cache Eviction Policy Selection via Reinforced Learning

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional cache eviction policies, such as FIFO, LRU, and LFU, often fail to achieve high cache utilization as they are fixed and do not adapt to dynamic workloads, potentially evicting frequently accessed data and struggling to balance data retention and new data entry.

Innovation Solution

A dynamic cache management scheme that uses reinforced online learning to select the most suitable eviction policy from multiple policies based on parameters, dividing the cache into a primary and secondary cache to record evicted data and adjust parameters, thereby optimizing the selection of eviction policies for better cache hit rates and access performance.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Adaptability or versatility

If a fixed eviction policy (FIFO, LRU, or LFU) is used, then the cache management is simple, but the cache utilization is low and cannot adapt to dynamic workloads

Engineering Contradiction:
Improvecache adaptabilityVSAvoideviction policy complexity
Core Design Contradiction:
Adaptability or versatilityVSDevice complexity

Solution Approach 1:

The patent implements dynamic eviction policy selection by continuously monitoring cache performance metrics (hit rates, access patterns) and adjusting the eviction strategy in real-time based on current workload characteristics. The system transitions from static fixed policies to dynamic adaptive policies that respond to changing data access patterns, thereby improving cache adaptability while managing complexity through automated feedback mechanisms.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system changes the parameters of the eviction policy by adjusting weights and priorities associated with different eviction strategies (FIFO, LRU, LFU) based on observed workload patterns. By dynamically modifying these parameters rather than changing the entire policy structure, the system achieves adaptability while controlling the complexity of the eviction mechanism.

Inventive Principle:
Principle #35Parameter changes

2Productivity

If a single eviction policy is applied, then the implementation is simple, but it is difficult to achieve high cache utilization across different scenarios

Engineering Contradiction:
Improvecache utilizationVSAvoidpolicy flexibility
Core Design Contradiction:
ProductivityVSAdaptability or versatility

Solution Approach 1:

The patent creates a universal cache management system that can handle multiple different workload scenarios by implementing a framework that supports multiple eviction policies (FIFO, LRU, LFU) and dynamically selects the most appropriate one. This multi-functional approach allows the same cache structure to adapt to various access patterns and workload types, thereby achieving high cache utilization across diverse scenarios while maintaining implementation simplicity through a unified management interface.

Inventive Principle:
Principle #6Universality (Multi-functionality)

3Speed

If frequent data access patterns change, then the cache needs to adapt quickly, but fixed policies cannot respond to workload changes

Engineering Contradiction:
Improveresponse speed to workload changesVSAvoiddynamic adjustment complexity
Core Design Contradiction:
SpeedVSDevice complexity

Solution Approach 1:

The patent implements a feedback mechanism that continuously monitors cache hit rates, access frequencies, and workload characteristics, then uses this information to dynamically adjust the eviction policy. The feedback loop enables the system to detect changes in data access patterns and respond by selecting more appropriate eviction strategies, thereby achieving fast adaptation to workload changes while managing complexity through automated decision-making based on predefined performance thresholds and metrics.

Inventive Principle:
Principle #23Feedback

Data Source

PatentUS11593268B2Method, electronic device and computer program product for managing cache
Publication Date: 2023.02.28 EMC IP HLDG CO LLC
  • US11593268B2 patent drawing
  • US11593268B2 patent drawing
  • US11593268B2 patent drawing

AI summary

Techniques for cache management involve accessing, when a first data block to be accessed is missing in a first cache, the first data block from a storage device storing the first data block; selecting, when the first cache is full and based on a plurality of parameters associated with a plurality of eviction policies, an eviction policy for evicting a data block in the first cache from the plurality of eviction policies, the plurality of parameters indicating corresponding possibilities that the plurality of eviction policies are selected; evicting a second data block in the first cache to a second cache based on the selected eviction policy, the second cache being configured to record the data block evicted from the first cache; and caching the accessed first data block in the first cache. Such techniques can improve the cache hit rate, thereby improving the access performance of a system.