Compression-Aware Cache Prefetching Using Metadata Thresholds

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing cache systems face challenges in efficiently prefetching data based on compression levels and metadata, leading to suboptimal cache performance and increased latency in memory access.

Innovation Solution

A method and processing device that prefetch data into a cache memory based on the compression of first data and other data, using metadata to determine whether the total compressed size of the data meets a threshold for prefetching.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Speed

If data is prefetched into cache memory without considering compression levels, then cache access speed is improved, but cache memory is wasted storing uncompressed data that does not benefit from compression

Engineering Contradiction:
Improvecache access speedVSAvoidcache memory utilization
Core Design Contradiction:
SpeedVSQuantity of substance

Solution Approach 1:

The patent changes the parameter of data compression level by checking metadata compression indicators before prefetching. The system determines whether to prefetch data based on compression parameters stored in metadata, thereby optimizing cache memory utilization by avoiding prefetching of already-compressed data while maintaining fast access for compressed data that benefits from compression.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent performs preliminary action by checking compression metadata before prefetching data into cache. The system evaluates compression levels in advance using metadata compression indicators, and only prefetches data that would benefit from compression, thereby preventing waste of cache memory while maintaining the speed benefits of prefetching for appropriate data.

Inventive Principle:
Principle #10Preliminary action

2Quantity of substance

If compression metadata is checked for every prefetch operation, then cache memory utilization is optimized, but processing overhead increases

Engineering Contradiction:
Improvecache memory utilizationVSAvoidprefetch processing complexity
Core Design Contradiction:
Quantity of substanceVSDevice complexity

Solution Approach 1:

The patent uses copying by storing compression indicators in metadata that can be quickly referenced without re-compressing or re-analyzing data. The metadata contains pre-computed compression information that is copied and checked during prefetch operations, reducing processing overhead while maintaining optimized cache memory utilization decisions.

Inventive Principle:
Principle #26Copying

3Loss of time

If uncompressed data is prefetched, then cache access latency is reduced, but bandwidth is wasted transferring data that cannot be compressed

Engineering Contradiction:
Improvecache access latencyVSAvoidmemory bandwidth consumption
Core Design Contradiction:
Loss of timeVSLoss of energy

Solution Approach 1:

The patent changes the parameter of data selection by using compression metadata to determine which data to prefetch. The system checks compression indicators in metadata and only prefetches data that would benefit from compression, thereby reducing memory bandwidth consumption for unnecessary data transfers while maintaining reduced cache access latency for appropriately selected data.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent implements self-service by using metadata compression indicators that automatically indicate whether data is suitable for compression-based prefetching. The metadata itself provides the information needed to make prefetching decisions, eliminating the need for complex analysis and enabling the system to self-optimize bandwidth usage based on inherent data properties.

Inventive Principle:
Principle #25Self-service

Data Source

PatentUS12242384B2Compression aware prefetch
Publication Date: 2025.03.04 ADVANCED MICRO DEVICES INC
  • US12242384B2 patent drawing
  • US12242384B2 patent drawing
  • US12242384B2 patent drawing

AI summary

Methods, devices, and systems for prefetching data. First data is loaded from a first memory location. The first data in cached in a cache memory. Other data is prefetched to the cache memory based on a compression of the first data and a compression of the other data. In some implementations, the compression of the first data and the compression of the other data are determined based on metadata associated with the first data and metadata associated with the other data. In some implementations, the other data is prefetched to the cache memory based on a total of a compressed size of the first data and a compressed size of the other data being less than a threshold size. In some implementations, the other data is not prefetched to the cache memory based on the other data being uncompressed.