Cache data popularity management method and system for counting access frequency based on probability
A technology for accessing frequency and caching data. It is used in electrical digital data processing, memory systems, computing, etc. It can solve problems such as the surge in storage demand, achieve wide application prospects, save occupation and CPU computing, and highlight the effects of substantive features.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0075] Such as figure 1 As shown, the present invention provides a cache data heat management method based on probability counting access frequency, including the following steps:
[0076] S1. The data in the cache is set to be stored in units of data blocks, and a heat statistics data structure is set in the data blocks, and the heat statistics data structure includes access time record bits and access frequency record bits;
[0077] S2. When the data block in the cache is accessed, record the current access time of the data block, count the access frequency of the data block based on the probability, and update the access frequency and access time of the data block in the heat statistics data structure;
[0078] S3. When there is a new cache request, judge whether the remaining space of the cache reaches the set threshold, and when the cache space reaches the set threshold, randomly select a set number of data blocks from the cache, and then select from the selected data blo...
Embodiment 2
[0080] Such as figure 2 As shown, the present invention provides a cache data heat management method based on probability counting access frequency, including the following steps:
[0081] S1. The data in the cache is set to be stored in units of data blocks, and a heat statistics data structure is set in the data blocks, and the heat statistics data structure includes access time record bits and access frequency record bits;
[0082] Set the access time record bit in the popularity statistics structure to Mbit, and the access frequency record bit to Nbit; the access time record bit in the heat statistics structure to 24bit, and the access frequency record bit to 8bit;
[0083] S2. When the data block in the cache is accessed, record the current access time of the data block, count the access frequency of the data block based on the probability, and update the access frequency and access time of the data block in the heat statistics data structure; the specific steps are as f...
Embodiment 3
[0107] Such as image 3 As shown, the present invention provides a cache data heat management system that counts access frequency based on probability, including:
[0108] The heat statistics structure setting module 1 is used to set the data in the cache to store in units of data blocks, and set the heat statistics data structure in the data block, the heat statistics data structure includes access time record bits and access frequency record bits; set In the heat statistics structure, the access time record bit is Mbit, and the access frequency record bit is Nbit;
[0109] The access frequency probability statistics module 2 is used to record the current access time of the data block when the data block in the cache is accessed, count the access frequency of the data block based on the probability, and update the access frequency and access time of the data block in the heat statistics data structure ; Access frequency probability statistics module 2 includes:
[0110] The a...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com