Prefetching Forecast Models for Cache Response Latency

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Current storage policies, such as LRU, lead to delays and slower response times due to limited storage capacity, necessitating the retrieval of information from remote sources, which can be avoided by prefetching data based on historical use and real-time signals.

Innovation Solution

Implementing a system that uses forecast models to predict when to prefetch information by analyzing historical use patterns and trends, incorporating real-time signals, and distributing operations among multiple servers, with configurable thresholds and time-to-live settings for cached data.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If information is stored locally to reduce response times, then response speed is improved, but storage capacity is limited requiring eviction of least recently used information

Engineering Contradiction:
Improveresponse timeVSAvoidstorage capacity
Core Design Contradiction:
SpeedVSQuantity of substance

Solution Approach 1:

The system performs preliminary actions by prefetching information into the cache before it is actually requested. Forecast models analyze historical use patterns and real-time signals to predict future requests, allowing the system to proactively load data into local storage ahead of time, thus avoiding later retrieval delays from remote sources

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The cache management system transitions from static LRU eviction policies to dynamic, adaptive prefetching strategies. The system continuously learns from historical data and real-time signals, adjusting which information to retain or evict based on predicted future usage patterns rather than solely on past access times

Inventive Principle:
Principle #15Dynamics

2Quantity of substance

If LRU storage policy is implemented to manage limited storage capacity, then storage efficiency is improved, but response times increase due to forced retrieval from remote sources

Engineering Contradiction:
Improvestorage efficiencyVSAvoidresponse delay
Core Design Contradiction:
Quantity of substanceVSLoss of time

Solution Approach 1:

Instead of waiting for cache misses to occur under LRU policy, the system performs preliminary prefetching actions by predicting which items will be needed soon and loading them into cache proactively, thereby preventing future cache misses and avoiding remote retrieval delays

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system implements feedback mechanisms where forecast models continuously analyze cache performance data, historical usage patterns, and real-time signals to refine predictions. This feedback loop enables the system to learn from past performance and improve future prefetching accuracy, reducing unnecessary evictions and improving response times

Inventive Principle:
Principle #23Feedback

3Reliability

If prefetching is performed based on historical use patterns, then cache hit ratio is improved, but system complexity increases due to forecast models and data analysis

Engineering Contradiction:
Improvecache hit ratioVSAvoidsystem complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system segments the prefetching problem by analyzing historical data at multiple granularities - per-category trends and per-key patterns. This segmentation allows the forecast models to process data in manageable chunks and apply different analysis strategies to different data types, reducing overall system complexity while maintaining high cache hit ratios

Inventive Principle:
Principle #1Segmentation

Data Source

PatentUS11341097B2Prefetching based on historical use and real-time signals
Publication Date: 2022.05.24 MICROSOFT TECHNOLOGY LICENSING LLC
  • US11341097B2 patent drawing
  • US11341097B2 patent drawing
  • US11341097B2 patent drawing

AI summary

Methods, systems and computer program products are provided for prefetching based on historical use and real-time signals. Forecast models may be configured to forecast whether to prefetch information (e.g. keys responsive to queries) for future time intervals based on historical use and internal or external signals that may influence forecasts, such as prevailing conditions. Historical use of keys may be analyzed for patterns and trends with multiple seasonalities per category and/or per key. Time series data and forecasts may be indexed by cache categories and time intervals. Forecast models may be trainable, optimizable, configurable and/or auto-correcting on a per-category and/or a per-key basis. Forecast precision indicators, confidence indicators and configurable thresholds may be used to optimize performance. Operations may be distributed among multiple servers. Tasks may be time-distributed by offsets. Cached information may be assigned a time to live (TTL) independent of other cached information.