Dynamic Cache Allocation for SLC Ping-Pong Reduction

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing cache allocation methods in electronic devices suffer from low cache hit rates and increased power consumption due to cache ping-pong effects, particularly in system-level caches like SLC, which are smaller than main memory and experience frequent data flushing and retrieval, leading to inefficient data access.

Innovation Solution

A dynamic cache allocation method that determines candidate memory buffers based on usage frequency, size, and refresh parameters to dynamically lock and flush cache areas, optimizing cache usage and reducing ping-pong effects by selecting buffers with high refresh frequencies for caching.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If cache allocation is performed without considering usage frequency, then cache allocation is simple, but cache hit rate is low

Engineering Contradiction:
Improvecache hit rateVSAvoidcache allocation complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent changes the parameter of cache allocation from static to dynamic by introducing usage frequency as a variable. The system monitors and calculates usage frequency of memory buffers and adjusts cache allocation accordingly, transforming the allocation strategy from a fixed approach to an adaptive one that responds to actual access patterns.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The patent implements a feedback mechanism where the system continuously monitors memory buffer usage frequency and uses this information to adjust cache allocation decisions. The usage frequency data feeds back into the allocation algorithm, creating a closed-loop system that learns from past access patterns and optimizes future allocations.

Inventive Principle:
Principle #23Feedback

2Measurement precision

If cache allocation is performed frequently to adapt to usage patterns, then cache hit rate improves, but power consumption increases

Engineering Contradiction:
Improvecache hit rateVSAvoidpower consumption
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The patent introduces dynamic adaptation to cache allocation by using usage frequency as a decision criterion. Instead of static allocation or overly frequent re-allocation, the system dynamically adjusts cache locking based on actual buffer access patterns, allocating cache resources more intelligently to reduce unnecessary operations.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The patent applies partial action by selectively locking only those memory buffers that meet the usage frequency threshold, rather than locking all buffers or performing full cache re-allocation. This partial approach reduces the overall system overhead and power consumption while still capturing the benefits of adaptive caching for frequently accessed data.

Inventive Principle:
Principle #16Partial or excessive action

3Measurement precision

If system-level cache size is increased to reduce flushing, then cache hit rate improves, but device size and cost increase

Engineering Contradiction:
Improvecache hit rateVSAvoidcache size
Core Design Contradiction:
Measurement precisionVSVolume of stationary object

Solution Approach 1:

The patent changes the allocation strategy parameter from static to dynamic based on usage frequency. By monitoring how often memory buffers are accessed and adjusting cache allocation accordingly, the system maximizes the utility of the available cache size, ensuring that frequently accessed data resides in cache while minimizing the need for larger cache capacity.

Inventive Principle:
Principle #35Parameter changes

4Reliability

If memory buffer data is frequently flushed to main memory, then memory consistency is maintained, but access speed decreases

Engineering Contradiction:
Improvememory consistencyVSAvoiddata access speed
Core Design Contradiction:
ReliabilityVSSpeed

Solution Approach 1:

The patent applies local quality by differentiating between memory buffers based on their usage frequency characteristics. Frequently accessed buffers receive special treatment through cache locking, while less frequently accessed buffers follow the standard flush-to-main-memory protocol. This localized optimization maintains memory consistency for all buffers while speeding up access for the critical subset.

Inventive Principle:
Principle #3Local quality

Data Source

PatentUS20260017197A1Cache allocation method and apparatus, and electronic device
Publication Date: 2026.01.15 SMARTER SILICON (SHANGHAI) TECH CO LTD
  • US20260017197A1 patent drawing
  • US20260017197A1 patent drawing
  • US20260017197A1 patent drawing

AI summary

A cache allocation method includes: determining multiple candidate memory buffers; determining a target memory buffer among the multiple candidate memory buffers whose attribute information meets a preset requirement, wherein the attribute information is related to a usage frequency of corresponding candidate memory buffer; and locking a corresponding cache area within a cache for the target memory buffer to cache data in the target memory buffer.