Task-Level Cache Management for Urgent Data Protection
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current cache management systems in electronic devices often face a trade-off between processing performance and cache performance due to inadequate allocation of resources, leading to potential eviction of urgent tasks' data from the cache.
Innovation Solution
A method and apparatus for task-level cache management that involves checking operations to identify risky tasks that may evict cached data from urgent tasks, with the option to temporarily limit cache access permission for processor cores to prevent eviction, ensuring that cache eviction does not occur during the execution of such tasks.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Reliability
If cache is allocated based on access frequency only, then cache performance is improved, but processing performance of urgent tasks deteriorates
Solution Approach 1:
The system performs checking operations on tasks before they run to identify risky tasks that may evict cached data of urgent tasks. This preliminary identification allows the system to take preventive actions before cache eviction occurs, resolving the contradiction by proactively protecting cache performance while allowing non-risky tasks to proceed normally
Solution Approach 2:
The patent introduces a task-level cache management mechanism as an intermediary layer between the cache system and tasks. This intermediary performs checking operations and selectively limits cache access permission for risky tasks, thereby mediating between cache performance requirements and processing performance needs without directly modifying either the cache hardware or task execution logic
2Reliability
If cache access permission is limited for risky tasks, then cache eviction of urgent tasks is prevented, but processing performance of risky tasks deteriorates
Solution Approach 1:
The system applies cache access limitation selectively only to risky tasks identified through checking operations, rather than uniformly limiting all tasks. This local application of quality control ensures that only specific tasks affecting urgent task cache performance are constrained, while other tasks maintain full cache access and processing performance
Solution Approach 2:
The system applies cache access limitation partially - only when checking operations identify a task as risky. This partial action approach avoids excessive limitation that would degrade overall processing performance, while still providing sufficient protection for cache performance when needed
Data Source
AI summary
A method and an apparatus for performing task-level cache management in an electronic device are provided. The method may be applied to a processing circuit of the electronic device, and may include: before a task of a plurality of tasks runs on a processor core, performing at least one checking operation on the task to generate at least one checking result, wherein the at least one checking result indicates whether the task is a risky task with risk of evicting cached data of an urgent task from a cache, and the cache is dedicated to a set of processor cores including the processor core; and according to the at least one checking result, determining whether to temporarily limit cache access permission of the processor core during a time period in which the task runs on the processor core, for preventing cache eviction of the cache due to the task.


